Re: Does AppleScript have arrays within the language?
Re: Does AppleScript have arrays within the language?
- Subject: Re: Does AppleScript have arrays within the language?
- From: SemiColon <email@hidden>
- Date: Wed, 13 Dec 2000 16:45:42 -0800
At 10:59 AM -0700 12/13/00, Guy Algot wrote:
>
On 12/13/00 10:29 AM, Nick Middleweek sent:
>
On 12/13/00 10:28 AM, Paul sent:
>
>
>Thanks a lot!
>
>But how then can I do a test on "y" to see if any of the file labels are not
>
>set to 0?
>
>Thanks in advance
You can also ask the Finder to do it all at once.
set f to choose folder
tell application "Finder"
set lst to every file of contents of f whose label index is not 0
end tell
--<OR>
set f to choose folder
tell application "Finder"
try
set lst to (every file of contents of f whose label index is not 0) as alias list
on error
set lst to (every file of contents of f whose label index is not 0) as alias as list
end try
end tell
;