• 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: Shane Stanley <email@hidden>
  • Date: Fri, 23 May 2014 22:36:42 +1000

On 23 May 2014, at 7:45 pm, Nigel Garvey <email@hidden> wrote:

I seem to recall encountering this problem in Jaguar or Tiger, so it's
been around for a while.

It only occurs in situations where the Finder compares names for
_equality_

Yes, it's as if the comparison is done like this:

ignoring case
considering numeric strings
"Test_00001.txt" = "Test_01.txt" --> true
end considering
end ignoring

Which is not how the Finder normally compares names.

so one of the fastest ways round it (when using the Finder)

Oxymoron? ;-)

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Finder's "exists" command ignores leading zero's in filename (From: Nigel Garvey <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