Cog/Application/ScriptAdditions.h
Christopher Snowhill b63a076e21 Add more automation commands and properties
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>
2022-02-21 21:52:09 -08:00

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 */