PDA

View Full Version : Cocoa-Applescript scripting




Cojust
May 11, 2011, 04:10 AM
Hello, I am trying to understand ApplescriptObjC scripting(Is that what its called?). Is there any guide out there that starts from the basics of referring to objects? I do know some applescript but am having problems manipulating the GUI. I know that to get the contents of a text field, its "set varName to varName's stringValue() as text" but thats ALL i know as nearly all the guides ive found refer to applescript studio :mad:

Could anyone help me by telling me how to set(change) the contents of text fields and labels? And would appreciate if anyone has links to guides. Thanks :)



kainjow
May 12, 2011, 01:53 AM
Hello, I am trying to understand ApplescriptObjC scripting(Is that what its called?).
Yes, it's AppleScriptObjC.

Could anyone help me by telling me how to set(change) the contents of text fields and labels?
textField's setStringValue_("Hello World")

And would appreciate if anyone has links to guides. Thanks :)
Some guides I found:
AppleScriptObjC : The new ASS
AppleScriptObjC in Xcode Part 1 (http://macscripter.net/viewtopic.php?id=30274)
AppleScriptObjC -Getting Started Part 1 (http://www.metacafe.com/watch/4278923/applescriptobjc_getting_started_part_1_first_half/) [video]

Billy Boo Bob
May 12, 2011, 05:47 PM
Probably the best reference out there...

"AppleScriptObjC Explored" by Shane Stanley (http://www.macosxautomation.com/applescript/apps/).

Also, a nice forum (http://macscripter.net/viewforum.php?id=63) for discussion & Q/A.