• 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: Finder's "exists" command ignores leading zero's in filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder's "exists" command ignores leading zero's in filename


  • Subject: Re: Finder's "exists" command ignores leading zero's in filename
  • From: Thomas Fischer <email@hidden>
  • Date: Thu, 22 May 2014 19:19:52 +0200

Hello Yvan,

Am 22.05.2014 um 17:53 schrieb koenig.yvan:


I didn't wrote that the script was unable to open a file defined by a path-string.
It's a wrong behaviour but at this time it is always accepted.

I just wrote that exists my_img would always return true because the string my_img exists.


I wanted to convince you that this is not the case.
At least on my system (10.6.8) 
exists my_img 
returns false if the file my_img doesn't exist, the same with
exists file my_img .

And it is willing and able to create a reference to this file, if it exists after possibly erasing or adding(!) some zeroes in front of the name, provided the first character of the name is a digit.

Best
THomas
 _______________________________________________
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

  • Follow-Ups:
    • Re: Finder's "exists" command ignores leading zero's in filename
      • From: "koenig.yvan" <email@hidden>
References: 
 >Finder's "exists" command ignores leading zero's in filename (From: Bert Groeneveld <email@hidden>)
 >Re: Finder's "exists" command ignores leading zero's in filename (From: "koenig.yvan" <email@hidden>)
 >Re: Finder's "exists" command ignores leading zero's in filename (From: Thomas Fischer <email@hidden>)
 >Re: Finder's "exists" command ignores leading zero's in filename (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Finder's "exists" command ignores leading zero's in filename
  • Next by Date: Re: Finder's "exists" command ignores leading zero's in filename
  • Previous by thread: Re: Finder's "exists" command ignores leading zero's in filename
  • Next by thread: Re: Finder's "exists" command ignores leading zero's in filename
  • Index(es):
    • Date
    • Thread