Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An Applescript to select multiple noncontiguous items' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An Applescript to select multiple noncontiguous items
Authored by: thornrag on Oct 06, '05 03:19:21PM
I think I'll write an Applescript to select multiple noncontiguous items...

tell application "Finder"
  set selectedItems to the selected items
  repeat with each item in selectedItems
    -- whatever you wanted to do with the selected items here
  end repeat
end tell
Now just copy and paste this into Script Editor, save it as an application, then presto! You can select multiple items in the Finder, then run this script! Of course you'll have to modify it to perform your desired action... your mileage may vary! I'm new to AppleScript so bug fixes etc welcome!

[thornrag adds: the script of course doesn't actually do anything, but you could change some things to make them different. Also, it only works in the Finder, but you could spend a few hours making one for each of your applications. This technique wasn't covered in any of Apple's documentation, so sure, why not post it.]

[ Reply to This | # ]