Re: Add Droplet functionality to Applet...
Re: Add Droplet functionality to Applet...
- Subject: Re: Add Droplet functionality to Applet...
- From: Tim Bumgarner <email@hidden>
- Date: Mon, 5 Jan 2004 14:54:44 -0500
Hi Matthew,
You need to make sure you open your MainMenu.nib, select the File's
Owner icon (which represents the application) and go to the AppleScript
inspector panel and check the "open" event handler. Until that it is
done, the event handler won't execute. That is true for any event
handlers within Studio. Simply having the event handler in the script
is enough, the event handler has to be hooked up to the object in
Interface Builder.
Tim Bumgarner
AppleScript Engineering
On Jan 5, 2004, at 1:40 PM, Matthew Broms wrote:
Thanks for the reply and link to droplets, Gary. I looked over the
whole
page and I'm still a bit confused since it appears that this is
exactly what
I am doing, yet it still doesn't work. Here's my code:
on open these_items
processUpdates(these_items)
end open
on processUpdates(theFilePath)
display dialog "I'm updating --> theFilePath = " & theFilePath as
string
end processUpdates
Nothing to complex here. What's confusing me isn't necessarily that
my code
is wrong, but after compiling an applet and having Xcode "reveal in
Finder"
the applet still doesn't highlight when I drag a text document on top
of it
(as did my simple little test droplet below). I'm OK trying to debug
the
thing, but I can't get it to even trigger the event and launch the
applet/droplet. I've even put in an 'on idle' handler in an effort to
mimic
what the assistant sets a project up with (had no effect).
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: Gary Lists <email@hidden>
Date: Mon, 05 Jan 2004 12:16:21 -0500
To: AppleScript Users <email@hidden>
Subject: Re: Add Droplet functionality to Applet...
Matthew Broms wrote [01-05-04 10:49 AM]:
Can this be done - can an Applet also be a Droplet?
Matt
Hi Matt. Sure it can. You're on the right track with 'on open', so
it must
be a matter of what you have in that handler. It won't be exactly
the same
as your 'on run' handler (or the main script if you didn't include 'on
run').
Here is a short page from Apple where the droplet shell is shown.
You can
add your specific code as needed.
<http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.09.htm>
Best,
--
Gary
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.