Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  


Sets property value with new text.

Component Version macOS Windows Linux Server iOS SDK License
AppleScript 4.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No Free
MBS( "AppleScript.SetPropertyValue"; Script ID; Name; Value )   More


Parameter Description Example
Script ID The Id of the script you want to execute. This ID returned by the AppleScript.Compile function. 1
Name The name of the property. "MyValue"
Value The value of the property. "Hello"


Returns OK or error.


Sets property value with new text.
Lasterror is set.


Sets a property:

Set Variable [$r; Value:MBS( "Applescript.SetPropertyValue"; $scriptID; "MySubject"; AppleScript Properties::Subject)]

See also

Created 18th August 2014, last changed 31st October 2016

AppleScript.Run - Applescript.DeterminePermissionToAutomateTarget

Feedback: Report problem or ask question.

Start Chat