• 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: Set Selection with a list of items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Set Selection with a list of items
      • From: Irwin Poche <email@hidden>
  • Prev by Date: Where is Script Menu?
  • Next by Date: Re: Where is Script Menu?
  • Previous by thread: Re: Set Selection with a list of items
  • Next by thread: Re: Set Selection with a list of items
  • Index(es):
    • Date
    • Thread