Re: Order of items dropped on droplet
Re: Order of items dropped on droplet
- Subject: Re: Order of items dropped on droplet
- From: Christopher Nebel <email@hidden>
- Date: Sun, 21 Mar 2004 12:59:48 -0800
On Mar 21, 2004, at 12:05 PM, Brennan wrote:
I'm curious about the order of items in the list fed to the 'open'
handler by the Finder. Sometimes this can be quite important (consider
a droplet which concatenates files, for example).
The ordering of items in a single drop operation is not defined. You
could work out what it was for any given configuration, but it could
change depending on the Finder version, kind of disk you're using,
phase of the moon, etc.
If you actually care about the ordering, you're going to need some
other way. The spatial ordering you mention is clever, but fairly
obscure. More common solutions are making people drop the files one at
a time, or, if there is a fixed number (such as FileMerge's "old" and
"new" files), having a window with wells you can drop the files into.
(Obviously, this requires something like AppleScript Studio.) And, of
course, you can always sort the files yourself.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.