Re: Remote Script Server
Re: Remote Script Server
- Subject: Re: Remote Script Server
- From: Shane Stanley <email@hidden>
- Date: Sat, 31 Jul 2010 10:28:02 +1000
- Thread-topic: Remote Script Server
On 30/7/10 11:30 PM, "Wayne Melrose" <email@hidden> wrote:
> I thought that "load script" actually compiles each time you call on it?
No -- you load compiled scripts.
> I have no idea about AppleScriptObjC.. Interested to know that myself.
It takes AS to another level. What's more, if you use "load script" in an
ASObjC script, the loaded script can contain ASObjC calls. This opens the
door to much more powerful and speedier libraries, and a whole lot more.
A simple example: suppose you want a handler to sort a list of strings the
way the Finder does. That's not easy in vanilla AS, but simple in ASObjC:
on sortLikeFinder(aList)
-- make NSArray from list
tell current application's NSArray to set anArray to
arrayWithArray_(aList)
-- sort and coerce back to list
return (anArray's
sortedArrayUsingSelector_("localizedStandardCompare:")) as list
end sortLikeFinder
As long as that's loaded by an ASObjC script, it works.
The downside is that it's 10.6-only.
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden