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: Michelle Steiner <email@hidden>
- Date: Sat, 6 Oct 2001 10:15:28 -0700
On 10/6/01 10:02 AM, Irwin Poche <email@hidden> wrote:
>
With theFolder being "TiBook:System Folder" the
>
>
select {"Note Pad File","Scrapbook File"} of folder theFolder
>
>
results in nothing being selected.
>
>
select {alias "Note Pad File", alias "Scrapbook File"} of folder
>
theFolder
>
>
results in "File Note Pad File was not found"
This works:
tell application "Finder"
set theFolder to "dora:system folder"
select {file "panels", file "Scrapbook File"} of folder theFolder
end tell
Note that I used "file" rather than "alias" in the list. When you use
"alias" Applescript tries to resolve the alias at run time. Because you
don't specify the full path to panels in "alias: panels", the alias can
not be resolved, even though you specify the path "in of folder
thefolder".
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------