Re: Add Droplet functionality to Applet...
Re: Add Droplet functionality to Applet...
- Subject: Re: Add Droplet functionality to Applet...
- From: Matthew Broms <email@hidden>
- Date: Mon, 05 Jan 2004 13:40:39 -0500
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.