PDA

View Full Version : Macscript



mejeharris
10-24-2014, 07:21 PM
Despite a concerted effort to find on the web the method to be used to correctly place applescript text and commands in a "Scripttorun" variable I have been unsuccessful and cannot get 'Choose from list with title" to work.

Could someone direct me on how to organise and structure the text so "Macscript" does not result in an error.

Thanks JH

mikerickson
11-14-2014, 02:06 PM
MsgBox MacScript("choose from list {""a"", ""b"", ""c""} with title ""Pick one""")Should work. I'm at work (on a Windows machine) and its untested. I'll check back when I get to my Mac.

mejeharris
11-15-2014, 02:16 PM
Thanks Mike your suggestion works fine. Is there a site giving the rules for Macsript code ?

JH

mikerickson
11-18-2014, 08:52 AM
http://macscripter.net/

is a good site for AppleScript help

https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptX/AppleScriptX.html