Added commands to control playback: play, pause, stop, previous, next. Also added a spam property to PlaylistEntry, to return the formatted spam string for the playlist entry, which is currently limited to the playing item. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
19 lines
471 B
Objective-C
19 lines
471 B
Objective-C
//
|
|
// ScriptAdditions.h
|
|
// Cog
|
|
//
|
|
// Created by Christopher Snowhill on 2/21/22.
|
|
//
|
|
|
|
#ifndef ScriptAdditions_h
|
|
#define ScriptAdditions_h
|
|
|
|
@interface NSApplication (APLApplicationExtensions)
|
|
- (id)playbackStart:(NSScriptCommand *)command;
|
|
- (id)playbackPause:(NSScriptCommand *)command;
|
|
- (id)playbackStop:(NSScriptCommand *)command;
|
|
- (id)playbackPrevious:(NSScriptCommand *)command;
|
|
- (id)playbackNext:(NSScriptCommand *)command;
|
|
@end
|
|
|
|
#endif /* ScriptAdditions_h */
|