Re: Very slow AppleScript
Re: Very slow AppleScript
- Subject: Re: Very slow AppleScript
- From: Shane Stanley <email@hidden>
- Date: Fri, 01 Mar 2013 22:55:35 +1100
"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.
|
_______________________________________________
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