Re: When is a list not a list?
Re: When is a list not a list?
- Subject: Re: When is a list not a list?
- From: Michelle Steiner <email@hidden>
- Date: Thu, 15 Feb 2001 21:16:49 -0800
On 2/15/01 9:00 PM, Ric Phillips <email@hidden> wrote:
>
tell application "Finder"
>
set root to (choose folder)
>
repeat with thisFolder in (the name of every folder in root)
>
display dialog thisFolder
>
end repeat
>
end tell
>
>
does not bring up a sequence of dialog boxes with the names of each sub
>
folder, whereas;
But this one does:
tell application "Finder"
set root to (choose folder)
set a to name of every folder in root
repeat with thisFolder in a --((every folder in root))
display dialog thisFolder
end repeat
end tell
You have to explicitly get a list of names, not the name of lists.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------