Re: Problems with an "on" handler
Re: Problems with an "on" handler
- Subject: Re: Problems with an "on" handler
- From: "Robert Seckendorf" <email@hidden>
- Date: Tue, 19 Dec 2000 18:30:20 -0800
I am trying to create an applet that will automatically copy the contents of
the folder dragged onto it to a server volume that the user names and
creates (I had to use a Scripting Addition to mount the server volume, and
create the folders). I have most of the work done, but I am having
difficulty with one little thing...
any help would be greatly appreciated. Here is the dilema...
on open client_folder
find_the_folder()
end open
on find_the_folder()
tell application "Finder"
activate
select client_stuff
end tell
end find_the_folder
if I drag a folder "client_stuff" let's say, over the applet when I call
the handler "find_the_folder(), the compiler barks "the variable
client_stuff isn't defined", which makes sense, if the handler doesn't know
about what the folder that was dragged over the applet was. However, I need
to pass that reference into the handler somehow.
any ideas?
Thanks in advance...