• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: quitting an applet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quitting an applet


  • Subject: Re: quitting an applet
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 5 Jan 2001 00:52:55 -0500

>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.


  • Prev by Date: Re: Need help stopping an applescript
  • Next by Date: Re: Resize scripting with photoshop 5.0
  • Previous by thread: quitting an applet
  • Next by thread: Re: quitting an applet
  • Index(es):
    • Date
    • Thread