Re: Newbie FaceSpan/Applescript question
Re: Newbie FaceSpan/Applescript question
- Subject: Re: Newbie FaceSpan/Applescript question
- From: "Arthur J Knapp" <email@hidden>
- Date: Wed, 13 Dec 2000 16:27:55 -0500
>
Date: Wed, 13 Dec 2000 14:36:49 -0500
>
From: Chad Gray <email@hidden>
>
Subject: Re: Newbie FaceSpan/Applescript question
>
Im trying to make a button in Face Span that will run the Trim
>
Characters from File Names script i download from apple.com.
>
... Can i nest On statements?
>
that is the only thing i can think of...
No. Copy the "on set_file_name(... end set_file_name" part out
of the "on hilighted... end hilighted" part, then paste it to the
very top or the very bottom of the script window.
Handlers, ("on statements"), are all typed at "the same level" as
each other. You then "call" on the handlers where needed:
on doThis()
-- do stuff
end doThis
on doThat()
-- do stuff
end doThat
on doAll()
my doThis()
my doThat()
end doAll
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
how many?
zero.
are you sure?
i counted twice.
}