Re: Template for Debugging "on Open..." Handler
Re: Template for Debugging "on Open..." Handler
- Subject: Re: Template for Debugging "on Open..." Handler
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 18 Mar 2004 19:35:05 -0500
At 4:38 PM -0500 3/18/04, Grimm, Kenneth wrote:
To all:
Many, many moons ago someone posted sample code for a template to use when
writing an "On Open..." applet that allowed the script to run without the
"close, drop something, open, edit, lather rinse repeat" dance.
For the life of me I can't find it now that I need it.
I think it had an "On run" component in which you choose the file or folder,
then that got passed to the "On Open" or something like that. You could
develop your applet/droplet in the editor by just running it. It gave a
similar functionality as Script Debugger's invoking open handler.
Help!
Ken Grimm
Ken,
I do not know what you saw... this is what I use for my "on open" scripts:
<script>
on open
run
end open
on run
tell application "Finder" to set l to selection
--your code in here...
end run
</script>
I save them just like that.
--
Regards
Saudagues
Deivy
http://www.dicas.com
_______________________________________________
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.