Re: Problem with tell application "Finder" get exists...
Re: Problem with tell application "Finder" get exists...
- Subject: Re: Problem with tell application "Finder" get exists...
- From: has <email@hidden>
- Date: Wed, 18 Jan 2006 16:38:54 +0000
Brad Gourley wrote:
>But when I do...
>
>tell application "Finder" to get exists "shotName_0001.tif" -- add an extra 0 to the capture number
>
>the result is also true. Even though the literal file name in the Finder only has two zeros in the capture number.
It's a bug. Likely an unintended side-effect of the recently added behaviour that enables Finder to ignore leading zeros when displaying numbered files in order. File a report on it.
>Anyone have any ideas how I can get an accurate result? I need to get a result of false for the second query.
tell application "Finder" to "shotName_0001.tif" is in name of every file
Bearing in mind, of course, that the containment test here is subject to AS's own considering/ignoring rules. Or use System Events, which still does it right (though it's not without other problems).
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden