Re: Files in a Folder
Re: Files in a Folder
- Subject: Re: Files in a Folder
- From: John W Baxter <email@hidden>
- Date: Thu, 9 Aug 2001 22:33:53 -0700
At 18:16 -0700 8/9/01, Paul Berkowitz wrote:
>
Bearing that bug in mind, it's best to do:
>
>
tell application "Finder"
>
try
>
(every file of myFolderAlias whose label index is not 0) as alias
>
list
>
on error
>
(every file of myFolderAlias whose label index is not 0) as alias
>
as list
>
end try
>
end tell
There's the potential for a small hole there: suppose a second file with
label none shows up between the try part and the on error part. Or the
existing one goes away.
Will AppleScript ever give up control between those two places (current,
past, future versions)? Dual Processor>. Mac OS X (if this is necessary
there at all when 10.1 comes out)? [And what label index does a file
created by Unix seem to have?]
In practice, the situation even if possible will be very rare. It won't
happen until you are demonstrating the wonderful new save-the-company
script to the board of directors committee.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA