• 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: Does AppleScript have arrays within the language?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Looks like a bummer
  • Next by Date: Re: How to choose a hard disk or volume?
  • Previous by thread: Re: Does AppleScript have arrays within the language?
  • Next by thread: Re: document list?
  • Index(es):
    • Date
    • Thread