diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 18:01:42 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 18:01:42 +0200 |
| commit | 153f3309127a4f9d898310224a467d11eef0f2ff (patch) | |
| tree | 786f48f0a978404fb79799ebc60cc929f59a7f0b /Captura/Scripting/RecordCommand.swift | |
| parent | 377442f2f1f0f08bc525393c9bd1c84f159c5159 (diff) | |
Attempt more AppleScript support
Diffstat (limited to 'Captura/Scripting/RecordCommand.swift')
| -rw-r--r-- | Captura/Scripting/RecordCommand.swift | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Captura/Scripting/RecordCommand.swift b/Captura/Scripting/RecordCommand.swift index 8db2656..9d25b59 100644 --- a/Captura/Scripting/RecordCommand.swift +++ b/Captura/Scripting/RecordCommand.swift @@ -3,13 +3,8 @@ import Foundation @objc(RecordCommand) class RecordCommand: NSScriptCommand { override func performDefaultImplementation() -> Any? { - print("AAAH \(self.directParameter)") - guard let args = self.directParameter as? [String: Any] else { - return nil - } - - print("AAH COMMANDS \(args)") + let args = self.directParameter as? [String: Any] ?? [:] // Here you can extract the parameters from the args dictionary and configure your settings let x = args["x"] as? Int @@ -26,8 +21,6 @@ class RecordCommand: NSScriptCommand { let autoStart = args["auto_start"] as? Bool let maxLength = args["max_length"] as? Int - print("AAH WIDTH \(width)") - var skipBackend = false if let backendString = args["backend"] as? String { if backendString == "" { |