Re: quitting an applet
Re: quitting an applet
>
did this compile? it would not for me under scripter and scriptdebugger
>
>
>
-- hcir
>
>
> On run
>
> loop forever
>
> loop
>
> end loop
>
> delay 3
>
> end loop
>
> end
>
sorry it was "pseudo" code. I was writing the email on a different
computer than I was writing the script so I couldn't just cut some in so
I just kind of winged it. :(
what I have actually tried was something like this;
repeat
if (x is true)
repeat
delay 0.5
end repeat
end if
if some property is false then return
delay 3
end repeat
and I would add stuff inside either loop, like a property that I wanted
to be able to set from the outside. What I finally did was to add this
inside one of the loops:
tell application "FileMaker Pro 5"
if (cell "_gQuit" of database "TestAS.fp5") = "stop" then return
end tell
since I want to be able to quit the AS from the FMP database just set a
global to anything and when you want it to stop set it to stop. I will
set the stop value using a script so I don't have to worry about typing.
But I am still an interested scripter. Can I force a script closed from
another script? I tried whatever ways I could think of to change a
property from outside, but maybe I don't understand scope in applescript..
Doug
Doug Rowe
Robyte Consulting
1825 Elizabeth Pl
Jacksonville, FL 32205
904-389-8474
email: dhrowe**@mindspring.com
Cross Platform Computers, Networks and Workflow
The stars block SPAM. Get rid of them to reply.