Re: one stay open applet can't start another?
Re: one stay open applet can't start another?
- Subject: Re: one stay open applet can't start another?
- From: "Donald S. Hall" <email@hidden>
- Date: Mon, 03 Dec 2001 23:35:38 -0700
Thanks to Marc, Bill, and Jim for the replies. The problem was that I didn't
appreciate that 'run script' only invoked the run handler.
Here is my revised test script 1:
-- test script 1 ----------------------------------------------------------
global x
global other
on run
set x to 0
beep
set other to (choose file of type {"APPL"}) as text -- choose test
script 2
end run
on idle
set x to x + 1
if x = 1 then tell application other to activate -- changed line
activate me
display dialog "#1 in idle, x=" & x
beep x
if x > 3 then
quit
end if
return 15
end idle
-- end test script 1 -------------------------------------------------------
Now the second applet runs as it should. (See applescript-users digest, Vol
2 #1357 for a listing of test script 2.)
Thanks again,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden