Re: How to test if a dropped item (on open) is a file or folder
Re: How to test if a dropped item (on open) is a file or folder
- Subject: Re: How to test if a dropped item (on open) is a file or folder
- From: "Spunk S. Spunk III" <email@hidden>
- Date: Wed, 03 Jul 2002 13:14:23 -0700
This works just fine for me (on X too)...
on open (filesOrFolders)
set itemOne to item 1 of filesOrFolders
if folder of (info for itemOne ) then
display dialog "You dropped a folder on me!"
else
display dialog "you dropped a file on me!"
end if
end open
Thanks,
Spunk
_______________________________________________
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.