Experimental applescript support
This commit is contained in:
1 parent
d9a4f56fc4
commit
57f2fe2560
9 files changed
+237
-28
No files matched your search
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// SBQueueScriptCommand.m
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 02/02/17.
|
||||
//
|
||||
//
|
||||
|
||||
#import "SBQueueScriptCommand.h"
|
||||
#import "SBQueueController.h"
|
||||
|
||||
@implementation SBQueueScriptCommand
|
||||
|
||||
- (id)performDefaultImplementation
|
||||
{
|
||||
NSArray<NSURL *> *args = [self directParameter];
|
||||
|
||||
[SBQueueController.sharedManager addItemsFromURLs:args atIndex:0];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation SBQueueStartScriptCommand
|
||||
|
||||
- (id)performDefaultImplementation
|
||||
{
|
||||
[SBQueueController.sharedManager start:self];
|
||||
[self suspendExecution];
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation SBQueueStopScriptCommand
|
||||
|
||||
- (id)performDefaultImplementation
|
||||
{
|
||||
[SBQueueController.sharedManager stop:self];
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user