action:Execute_a_Swift_Script
**This is an old revision of the document!**
The Execute a Swift Script action executes a specified Swift script, either from a file or text.
The results of the script can be:
- Ignored.
- Displayed in a floating window.
- Displayed briefly in a Notification.
- Typed in to the current selection.
- Pasted in to the current selection.
- Saved to a variable.
- Saved to the system or a Named Clipboard.
- Asynchronously ignored — the action runs while the macro continues on.
Swift scripts can access variables by using environment variables, for example:
import Foundation println( NSProcessInfo.processInfo().environment["KMVAR_Variable_Name"]! )
action/Execute_a_Swift_Script.1436943937.txt.gz · Last modified: by peternlewis
