• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to test if a dropped item (on open) is a file or folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How to test if a dropped item (on open) is a file or folder
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: How to test if a dropped item (on open) is a file or folder (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: How to test if a dropped item (on open) is a file or folder
  • Next by Date: Re: How to test if a dropped item (on open) is a file or folder
  • Previous by thread: Re: How to test if a dropped item (on open) is a file or folder
  • Next by thread: Re: How to test if a dropped item (on open) is a file or folder
  • Index(es):
    • Date
    • Thread