• 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 error problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder error problem?


  • Subject: Re: Finder error problem?
  • From: Axel Luttgens <email@hidden>
  • Date: Mon, 6 Dec 2010 15:29:40 +0100

Le 6 déc. 2010 à 14:58, Jim Brandt a écrit :

> Does Finder have a problem correctly identifying the existence of filenames with leading zeros, or is this an AS problem?
>
> Try this example:
>
> [...]
>
> Is there a better way to check for the existence of the exact file name without jumping through hoops?
>
> [...]

Hello Jim,

Same here with 10.6...
Looks like to be a Finder problem, as if the "numeric strings" attribute were always considered with the "exists" command.

Since you're building HFS paths, you could try by replacing:

	tell application "Finder" to set found_first to exists file file_name

with:

	try
		alias file_name
		set found_first to true
	on error
		set found_first to false
	end try

HTH,
Axel

 _______________________________________________
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: 
 >Finder error problem? (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Given a POSIX Path...
  • Next by Date: Re: Finder error problem?
  • Previous by thread: Finder error problem?
  • Next by thread: Re: Finder error problem?
  • Index(es):
    • Date
    • Thread