Re: Calling a handler from inside a handler
Re: Calling a handler from inside a handler
- Subject: Re: Calling a handler from inside a handler
- From: Romy Opena <email@hidden>
- Date: Tue, 15 Nov 2005 00:02:36 -0800 (PST)
Hi,
Excuse me but I am confused by the code snippet to demo this.
I don't see Handler 2 being called within Handler 1 or vice versa.
All I see is both handlers being called from within the same Tell
block.
Am I missing anything?
Thanks for any further explanation.
Romy Opena
--- email@hidden wrote:
> 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
Romeo T. Opena, PhD
Managing Director/Plant Breeder
ARCH Seed (Thailand) Co., Ltd.
138 Moo 2, Tambon Samrongmai
Lahansai, Buriram
THAILAND 31170
Mobile phone: 66-1-881-2374
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.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