Re: Droplet
Re: Droplet
- Subject: Re: Droplet
- From: Luther Fuller <email@hidden>
- Date: Wed, 5 Apr 2006 20:41:01 -0500
Title: Re: Droplet
Michelle Steiner asked
...
when
you drop a group of icons on a droplet, you get a list of aliases. How
do you determine which aliases are to files and which are to folders?
I can't figure that out.
yet another variant
...
on open dropList
try
tell application "Finder"
repeat with folderRef in
dropList
if (class of item folderRef) is folder then
-- do your stuff here
end if
end repeat
end tell
on error errText number
errNr
if errNr = -128 then
return
else if errNr = -2700 then
errText
else
"Error = " &
errNr & return & errText
end if
display dialog the result buttons {"OK"} default button
1
end try
end open
_______________________________________________
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