• 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: Files in a Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Files in a Folder
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Files in a Folder (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Post Event
  • Next by Date: Re: How do you check the equivalency of references?
  • Previous by thread: Re: Files in a Folder
  • Next by thread: Re: Files in a Folder
  • Index(es):
    • Date
    • Thread