• 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: Calling a handler from inside a handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a handler from inside a handler


  • Subject: Re: Calling a handler from inside a handler
  • From: email@hidden
  • Date: Mon, 14 Nov 2005 07:49:51 +0000

On 14 Nov 2005, at 06:50, Brett Conlon wrote:

Hi all, 

Simply: 

Can I call a handler from within a handler, ie. a handler that is telling Photoshop to do something with a file and after doing that (still within the handler) it runs another handler that asks the Finder to create a folder alias? 

Yes.

[snip]

Here is an example for you:

tell application "Finder"
(* Insert your script Here *)
my Handler_1()
my Handler_2()
(* Rest of script *)
end tell

on Handler_1()
beep
end Handler_1

on Handler_2()
display dialog "This was run from Handler_2"
end Handler_2

Basically call the handler with "my handlername() and it should work (I haven't come across it not working yet :)

Caius Durling
http://applemacfreak.com


 _______________________________________________
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

  • Follow-Ups:
    • Re: Calling a handler from inside a handler
      • From: Romy Opena <email@hidden>
    • Re: Calling a handler from inside a handler
      • From: Brett Conlon <email@hidden>
References: 
 >Calling a handler from inside a handler (From: Brett Conlon <email@hidden>)

  • Prev by Date: Adobe InDesign applied object style
  • Next by Date: Re: Adobe InDesign placing text or picture box on a layer?
  • Previous by thread: Calling a handler from inside a handler
  • Next by thread: Re: Calling a handler from inside a handler
  • Index(es):
    • Date
    • Thread