aboutsummaryrefslogtreecommitdiff
path: root/Captura/Scripting/RecordCommand.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Captura/Scripting/RecordCommand.swift')
-rw-r--r--Captura/Scripting/RecordCommand.swift9
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 == "" {