This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
action:Execute_a_Swift_Script [2016/09/13 22:08] peternlewis |
action:Execute_a_Swift_Script [2016/09/13 22:08] peternlewis |
||
---|---|---|---|
Line 40: | Line 40: | ||
let myString = "the Value" | let myString = "the Value" | ||
- | NSAppleScript(source: "tell application \"Keyboard Maestro Engine\" to setvariable \"fromSwift\" to \"\(myString)\"")? | + | NSAppleScript(source: "tell application \"Keyboard Maestro Engine\" to setvariable \"fromSwift\" to \"\(myString)\"")?.executeAndReturnError(nil) |
- | .executeAndReturnError(nil) | + | |
</code> | </code> | ||