Re: Unresolved aliases to arglist of a droplet
Re: Unresolved aliases to arglist of a droplet
- Subject: Re: Unresolved aliases to arglist of a droplet
- From: John Delacour <email@hidden>
- Date: Mon, 11 Nov 2002 17:33:02 +0000
- Mac-eudora-version: 5.3a8
At 4:29 pm -0700 9/11/02, Doug McNutt wrote:
I'm pretty sure it was impossible to pass alias files to a droplet
in OS9 but has it been repaired in OS neXt?
The finder selection works OK if the script is run as a compiled
script and I think about ignoring the dropped arglist and just
asking for the finder selection but I worry a whole lot about timing
and whether or not the selection will be valid.
There may be a better way, but you could do it like this. The odds
against the selection changing just as you let go the mouse button
are pretty long!
You can use 'kind' or 'file type'
on open droppedFiles
tell application "Finder"
set {typeList, ls} to {{}, {}}
repeat with f in (get selection)
set end of typeList to get file type of alias ("" & f)
end repeat
repeat with i from 1 to count droppedFiles
set end of ls to "" & item i of droppedFiles
set end of ls to item i of typeList
end repeat
choose from list ls
end tell
end open
JD
_______________________________________________
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.