• 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: "Grimm, Kenneth" <email@hidden>
  • Date: Fri, 19 Mar 2004 18:36:00 -0500

Thank you Richard, Steve, Deivy, Peter, et al. That was what I was looking
for!

Ken
> ----------
> From: Richard Morton
> Sent: Thursday, March 18, 2004 7:05 PM
> To: ASUsers List
> Subject: Re: Template for Debugging "on Open..." Handler
> Message Flag: Follow up
> Flag Status: Flagged
>
> On 19 Mar 2004, at 8:38 AM, Grimm, Kenneth wrote:
> > Many, many moons ago someone posted sample code for a template to use
> > when
> > writing an "On Open..." applet ...
> >
> > ...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!
>
> OK! ;-)
>
> The 'open' handler takes a list of aliases, so this does the job:
>
> on run
> set fileList to choose file with multiple selections allowed
> if class of fileList is not list then set fileList to fileList as
> list
> -- in case of single selection
> open fileList
> end run
>
> Alternatively, if you already have a list of files you're testing with,
> just do something like this:
>
> on run
> set testFiles to {alias "blah", alias "bleh", [...]}
> open testFiles
> end run
>
> As always, the explicit 'run' declaration is optional.
>
> Cheers,
>
> Choosy Bacca
> _______________________________________________
> 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.


  • Prev by Date: Re: [OT] Re: Hat bug.
  • Next by Date: Re: To .jpg or not
  • Previous by thread: Re: Template for Debugging "on Open..." Handler
  • Next by thread: osascript crashed and burned getting raw source of huge email attachments
  • Index(es):
    • Date
    • Thread