• 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: John <email@hidden>
  • Date: Mon, 12 Nov 2012 10:22:39 -0500

Here is an interesting thread about script objects:
http://macscripter.net/viewtopic.php?id=38774


On Mon, Nov 12, 2012 at 9:19 AM, Paul Abney <email@hidden> wrote:

On Nov 9, 2012, at 4:01 PM, Shane Stanley wrote:

> 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


Thanks everyone for the help. Creating a script object worked wonderful, runs faster than ever.

Paul


 _______________________________________________
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

 _______________________________________________
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: Alex Zavatone <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>)
 >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