• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Remote Script Server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Remote Script Server
      • From: Wayne Melrose <email@hidden>
References: 
 >Re: Remote Script Server (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Converting Pictures via AppleScript?
  • Next by Date: Re: Libraries and effiency
  • Previous by thread: Re: Remote Script Server
  • Next by thread: Re: Remote Script Server
  • Index(es):
    • Date
    • Thread