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: Richard 23 <email@hidden>
- Date: Wed, 13 Dec 2000 22:00:54 -0800
>
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
I'd only shorten that a little bit with:
set f to choose folder
tell application "Finder"
a reference to (result's files where label index is not 0)
try
result as alias list
on error
result as alias as list
end try
end tell
set lst to result
Yeah I guess it isn't that much shorter but when you run out of
room as I often do, every character counts.
R23, who scripts as Hemingway might've if he hadn't ended it all in Idaho