AppleScript.setScript() | This page was last modified over 30 day(s) ago and has 0 comment(s)
|
Back to AppleScript Class Summary |
![]() |
The AppleScript Class has been deprecated in Zinc 4.0. It is included for legacy support but is no longer maintained and maybe removed completely in a future 4.x update. |
Availability |
Mac OSX |
Usage |
mdm.AppleScript.setScript(script:String):Void |
Parameters |
script:String - Contains the AppleScript to be set |
Returns |
Nothing |
Description |
Sets the AppleScript function to be executed when AppleScript.run() is called. |
Notes |
This command will not actually execute the script, it will only declare it. You must compile and run the AppleScript to execute it. |
Example Code |
//Below is an example of a simple AppleScript: tell application "Finder" empty trash end tell //To set this Script: mdm.AppleScript.setScript('tell application "Finder"\rempty trash\rend tell'); |
mdm.AppleScript Class Example Downloads |
No Example Downloads Available |
![]() |
Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here |
After Logging In, Click Here to Refresh This Page |