• 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
Combining event handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Combining event handlers


  • Subject: Combining event handlers
  • From: Lee Noble <email@hidden>
  • Date: Wed, 2 Nov 2005 09:24:47 +0000

I may be wrong but I'm sure I'd seen in the dim and distant past back in OS8 that it was possible to combine handlers so you only need one block of code instead of two or more.
Basically I want the same part of the script to activate on run and on receiving files. The logical syntax in my head would look something like this:

on run; on adding folder items to actionFolder after receiving actionFile

or this

on {run,
adding folder items to actionFolder after receiving actionFile}

or this

on run,
adding folder items to actionFolder after receiving actionFile

I know none of these are correct but I hope they communicate what I want to do.
I can't find any reference to it in the help and numerous internet searches have turned up nothing but that may be because I'm calling it the wrong thing.

It may of course not be possible at all. If it is possible though I also need to know how you would end the code block.
Thanks
Lee
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: How to work with XML data using System Events?
  • Next by Date: Re: Find and replace string
  • Previous by thread: Re: Resolving Photoshop naming multi-pg PDF's when opening
  • Next by thread: Re: Combining event handlers
  • Index(es):
    • Date
    • Thread