Re: Handlers
Re: Handlers
- Subject: Re: Handlers
- From: Shane Stanley <email@hidden>
- Date: Sat, 28 Apr 2001 21:28:31 +1000
On 28/4/01 9:17 PM +1000, Robert Poland, email@hidden, wrote:
>
As usual when the big Handler discussion was going on I didn't have a
>
use for it - now I have a problem. When the handler is called it acts
>
as if it isn't, it just goes on by. I have looked in "The TAO of
>
ASpplescript", "Applescript Handbook" and on the web. I think I'm
>
doing as the examples seem to show.
>
>
Example, in part;
>
>
tell application "Finder"
>
if not (folder "name of disk" of disk "Ram Disk" exists) then
>
My creatIt --or just creatIt
>
end if
>
>
on creatIt ()
>
beep 4
>
-- create file
>
end createIt
Try this:
tell application "Finder"
if not (folder "name of disk" of disk "Ram Disk" exists) then
my creatIt() --or just creatIt
end if
end tell
on creatIt()
beep 4
-- create file
end creatIt
--
Shane Stanley, email@hidden
References: | |
| >Handlers (From: Robert Poland <email@hidden>) |