• 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: Very slow AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very slow AppleScript


  • Subject: Re: Very slow AppleScript
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 01 Mar 2013 22:55:35 +1100

On 01/03/2013, at 10:32 PM, Bob Stern <email@hidden> wrote:

"Choose folder" is a scripting addition command.  You should move it outside the Tell "Finder" block.

Scripting addition commands will slow down AppleScript execution if they are inside a tell statement.

While that's technically true, in the case of "choose folder" speed is not really an issue because the commands actually stop the script proceeding until the dialog is dismissed; you can't get slower than stopped. It's also one of the handful of additions that are meant to be used inside tell blocks.

I'm afraid I don't understand what the OP is getting at. But I can say that this:

# Create local variables
set SelectedFldr to alias # Target folder container
set TFItemCnt to 0 # Store the number of items in the target folder
set ItemToChange to alias # Local reference to the item to work with
# set LoopIdx to 1 # Repeat loop indice

is a pointless waste of time.

-- 
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

References: 
 >Very slow AppleScript (From: "emile.a.schwarz" <email@hidden>)
 >Re: Very slow AppleScript (From: Bob Stern <email@hidden>)

  • Prev by Date: Re: Very slow AppleScript
  • Next by Date: Re: Very slow AppleScript
  • Previous by thread: Re: Very slow AppleScript
  • Next by thread: Re: Very slow AppleScript
  • Index(es):
    • Date
    • Thread