blob: 4a3f1f3897c723166b2cc4aaf50aa3b4255745b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#import "StartRecordingCommand.h"
#import <ApplicationServices/ApplicationServices.h>
NS_ASSUME_NONNULL_BEGIN
@implementation StartRecordingCommand
- (QSObject *)startRecording:(QSObject *)directObject
{
NSString *capturaURL = @"captura:?action=record";
NSURL *url = [NSURL URLWithString:capturaURL];
if (url) {
[[NSWorkspace sharedWorkspace] openURL:url];
} else {
NSLog(@"Failed to create valid URL");
}
return directObject;
}
@end
NS_ASSUME_NONNULL_END
|