opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 19 January 2006 • 12:38AM -0500

Re: Problem with tell application "Finder" get exists...
by has

REPLY TO AUTHOR
 
REPLY TO GROUP




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      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.