• 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: 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

;


  • Prev by Date: Re: scripting Photoshop
  • Next by Date: Logging Events
  • Previous by thread: Re: Does AppleScript have arrays within the language?
  • Next by thread: Re: Does AppleScript have arrays within the language?
  • Index(es):
    • Date
    • Thread