From 153f3309127a4f9d898310224a467d11eef0f2ff Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 2 Aug 2023 18:01:42 +0200 Subject: Attempt more AppleScript support --- Captura/Scripting/RecordCommand.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Captura/Scripting/RecordCommand.swift') 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 == "" { -- cgit