Re: Finder error problem?
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