Re: Script Speed
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