I tried to do something similar in AppleScript but am stuck on how to
create Cocoa objects from within it. Here's what I tried so far:
property invocation : ""
on clicked theObject
if the name of theObject is "doSearch" then
if (invocation = "") then
set url to call method "URLWithString" of class "NSURL" with "http://localhost/Test/TestPHPScript.php
--set invocation to call method "invocationWithURL" of class
"PHPInvocation" with url
--set x to get_page_record
call method "uppercaseString" of (contents of text field
"inputField" of window "myWindow")
When I go to build the project however, I'm getting the following
Expected “into”, variable name, class name, other parameter name or
property but found “"”. (-2741)
Is it even possible to create new Cocoa objects within AppleScript and
if so, how does one go about doing it?
Thanks for any help
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden