• 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. slow repeat function with large folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re. slow repeat function with large folders


  • Subject: Re. slow repeat function with large folders
  • From: Hans-Gerd claßen <email@hidden>
  • Date: Tue, 19 Jun 2012 11:15:31 +0200

Hi,

setting labels and getting selected items from a window is "finder"-work which is slow …

So I guess setting the labels will be the part slowing down the script.

There may be a chance speeding up if leaving the finder whenever possible; also calling system events spends some time …

one thing that may also improve the speed: you can set labels to a list of files:
…
if optionKeyDown then
set the label index of the front window's items to myLabelIndex
else
--repeat with eachItem in (selected_Items)
--works for my lion-machine:
set the label index of selected_Items to myLabelIndex
--end repeat
end if
…

try to avoid finder created file list (slow!). For example if all the files in the window (folder) should be processed you could use standard editions to list, create aliases etc.

Hope it'll be of some help
 _______________________________________________
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: Re. slow repeat function with large folders
      • From: Robert Poland <email@hidden>
  • Prev by Date: Re: carbon copy cloner
  • Next by Date: Re: Re. slow repeat function with large folders
  • Previous by thread: Re: carbon copy cloner
  • Next by thread: Re: Re. slow repeat function with large folders
  • Index(es):
    • Date
    • Thread