• 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: Checking on the existence of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking on the existence of a file


  • Subject: Re: Checking on the existence of a file
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 28 Oct 2012 16:01:36 +0100


Le 28/10/2012 à 15:13, Luther Fuller <email@hidden> a écrit :

On Oct 28, 2012, at 8:18 AM, koenig.yvan wrote:

No.
Chris Nebel explained that checking the existence of an alias was linked to some features of the operating system which were not guaranteed to be valid in future.
My understanding is that it may be broken if Apple switch from Hfs+ to an other file system as it was rumored several time (and we may be sure that they will switch one day).

Mmmmm. I use this ...

tell application "Finder"
if (exists alias file linkName of mailboxFolder) then

very often in a script. Should I be worried?

Ask to Chris Nebel ;-)

But honestly what's the need to test if an alias exists.

tell application "Finder"
if (exists file linkName of mailboxFolder) then

will do the trick.

If you want details about Chris Nebel explanations, search in the archives.

Yvan KOENIG (VALLAURIS, France) dimanche 28 octobre 2012 16:01:29


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Checking on the existence of a file (From: Eric Robertson <email@hidden>)
 >Re: Checking on the existence of a file (From: "koenig.yvan" <email@hidden>)
 >Re: Checking on the existence of a file (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: Time anomaly
  • Previous by thread: Re: Checking on the existence of a file
  • Next by thread: Re: Checking on the existence of a file
  • Index(es):
    • Date
    • Thread