• 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: kill switch for script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kill switch for script


  • Subject: Re: kill switch for script
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 17 Jul 2002 14:00:24 -0400
  • Organization: [very little]

> Date: Wed, 17 Jul 2002 08:26:29 -0700
> From: <email@hidden>
> To: email@hidden
> Subject: kill switch for script
>
> Hi all,
>
> I've got a question:
>
> I have a script that is running in a continual loop (repeat while). The script
> is doing everthing it's supposed to do but I have no way of stopping it. Does
> anyone know of an OSAX to kill a script or a way to script modifier keys so
> that at the end of the loop I could make an IF statement that looked for
> certain keys (i.e. - control+option+command+Q)being pressed and then would quit
> the script?
>
> Any help here would be much appreciated!

I like the "keys pressed" command from Jon's Commands:

repeat
-- do something
if (keys pressed) contains {"Option"} then exit repeat
end repeat

The "input state" command from Akua Sweets will give you similar control.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[7/17/02 1:59:58 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: kill switch for script
      • From: bryan <email@hidden>
  • Prev by Date: Fwd: Hey ! option-double-click reveals attachments!
  • Next by Date: Re: Hey ! option-double-click reveals attachments!
  • Previous by thread: RE: kill switch for script
  • Next by thread: Re: kill switch for script
  • Index(es):
    • Date
    • Thread