Experimental applescript support

This commit is contained in:
Damiano Galassi committed 2017-02-24 11:26:55 +01:00
1 parent d9a4f56fc4
commit 57f2fe2560
9 files changed
+237 -28

No files matched your search

+44
View File
@@ -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