Droplet app with AppleEvent

Jim Ault JimAultWins at yahoo.com
Tue Aug 8 10:18:23 EDT 2006


This is just a shot to help you quickly, but you might try to add the
repeating test 

MyAppName is among the processes

If true, it is now up and running.  Don't the exact way of doing this, but
hopefully this helps to with the timing.

Jim Ault
Las Vegas


On 8/8/06 6:46 AM, "Zax" <zax at tripoy.com> wrote:

> [sorry if I made double-post, I encountered mail problems]
> 
> Hello,
> 
> I would like my app made with Revolution 2.51 to react like a droplet when
> dropping files or folders on the app icon.
> I set "****" as file type and it's ok: dropping something on my app icon
> launches my app.
> 
> For testing purpose, I wrote this code in my main stack:
> 
> on appleEvent eClass,eID,eSender
>   request appleEvent data
>   answer eClass & return & "id =" && eID & return & "sender =" && eSender &
> return & "data =" && quote & it & quote
>   pass appleEvent
> end appleEvent
> 
> Everything is OK when I drop something onto the app icon *and* my app is
> *already opened*. In this case, "it" contains needed data.
> But when I drop something onto the app icon *and* my app is *not opened*,
> then my app is launched but no AppleEvent is sended :(
> Maybe because the app is not loaded, so it can't receive the AppleEvent?
> 
> So, can somebody help me? A droplet must work even the app is not launched,
> otherwise it's not really a droplet! Do I have to add something in my
> "openstack" handler? Or maybe add a "startup" handler with some special code
> in it?
> 
> Thanks in advance.





More information about the use-livecode mailing list