Re: Set Selection with a list of items
Re: Set Selection with a list of items
- Subject: Re: Set Selection with a list of items
- From: Irwin Poche <email@hidden>
- Date: Sat, 06 Oct 2001 15:46:43 -0500
Michelle,
Yes, what you have is simple and will do what I described.
But what I'm after is an approach that will show me things I hadn't
previously considered. Displaying the folders in question and selecting
what I already know I'm interested in is what I want to accomplish. I'll
also see labels and comments which I use all the time.
To simplify where I'm now stuck is just to get the "--select all of them" to
work however its done, a via a single command or a loop.
tell application "Finder"
--set theItems to "Note Pad File" --this works
set theItems to {"Note Pad File", "Scrapbook File"}
set theFolder to "TiBook:System Folder"
open folder theFolder
if class of theItems is list then
--select all of them
else
select item theItems of folder theFolder
end if
end tell