Set Selection with a list of items
Set Selection with a list of items
- Subject: Set Selection with a list of items
- From: Irwin Poche <email@hidden>
- Date: Sat, 06 Oct 2001 11:06:16 -0500
I think there must be a way to give the Finder's "set selection" statement a
list.
Given that theFolder is the string "System Folder" and theItems is {"Note
Pad File", "Scrapbook File"} then the statement
set selection of folder theFolder to theItems
gets a invalid keyform error.
The only other way I know to do this won't work either because each
iteration of this loop results in one file being selected - not all of them
repeat with afile in (theItems)
select item (afile as string) of folder theFolder
end repeat