• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Template for Debugging "on Open..." Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Template for Debugging "on Open..." Handler (From: "Grimm, Kenneth" <email@hidden>)

  • Prev by Date: Memory tests
  • Next by Date: Re: Template for Debugging "on Open..." Handler
  • Previous by thread: Template for Debugging "on Open..." Handler
  • Next by thread: Re: Template for Debugging "on Open..." Handler
  • Index(es):
    • Date
    • Thread