• 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: Script Speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Speed


  • Subject: Re: Script Speed
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 10 Nov 2012 09:01:48 +1100

On 10/11/2012, at 8:50 AM, Paul Abney <email@hidden> wrote:

> Yes, I mean as a script application. On my small test file, SD5 finishes in 5 seconds, even with debugging on. Saving as an application, then running that application on the same file takes 47 seconds.

That's normal behavior -- the basic AppleScript applet shell isn't particularly efficient.

You can usually get more speed using a script object. So your script becomes like this:

script whatever
-- your existing code goes in her
end script

run script whatever

You may need to keep any properties before the script object -- I can't remember off-hand.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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: Script Speed
      • From: Paul Abney <email@hidden>
References: 
 >Script Speed (From: Paul Abney <email@hidden>)
 >Re: Script Speed (From: Shane Stanley <email@hidden>)
 >Re: Script Speed (From: Paul Abney <email@hidden>)

  • Prev by Date: Re: Script Speed
  • Next by Date: Re: Script Speed
  • Previous by thread: Re: Script Speed
  • Next by thread: Re: Script Speed
  • Index(es):
    • Date
    • Thread