• 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: Can't drop onto my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't drop onto my app


  • Subject: Re: Can't drop onto my app
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 22 Oct 2010 12:23:57 -0700

On Oct 22, 2010, at 12:14 PM, Steve Thompson wrote:

 get that, and I tried that, but how do I then differentiate between dropping files on the app and opening them with a dialog if you click? 

True, removing the on run handler now allows me to drop files, but now I can't select files if I simply double click the application.

You should still be able to select files.  Make sure that the code to select files is above the "on open" handler.

I just tried it, and it works for me; here's the script I used:

choose file
on open thefiles
tell application "Finder" to set foo to (get name of item 1 of thefiles)
display dialog foo
end open


-- Michelle

--
I'm at an age where I can satisfy my wants without too many guilt feelings.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Can't drop onto my app (From: Steve Thompson <email@hidden>)
 >Re: Can't drop onto my app (From: Luther Fuller <email@hidden>)
 >Re: Can't drop onto my app (From: Steve Thompson <email@hidden>)
 >Re: Can't drop onto my app (From: Michelle Steiner <email@hidden>)
 >Re: Can't drop onto my app (From: Steve Thompson <email@hidden>)
 >Re: Can't drop onto my app (From: Michelle Steiner <email@hidden>)
 >Re: Can't drop onto my app (From: Steve Thompson <email@hidden>)

  • Prev by Date: RE: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
  • Next by Date: RE: Feature request to solve a problematic AppleScript behavior with raw Apple Event codes
  • Previous by thread: Re: Can't drop onto my app
  • Next by thread: Re: Can't drop onto my app
  • Index(es):
    • Date
    • Thread