Re: Can't drop onto my app
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