X-Git-Url: https://git.r.bdr.sh/rbdr/captura/blobdiff_plain/377442f2f1f0f08bc525393c9bd1c84f159c5159..cdc79b7d7c4829ba7a0371826b28f398f267c46a:/Captura/Scripting/RecordCommand.swift?ds=inline 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 == "" {