• 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: JJ <email@hidden>
  • Date: Wed, 17 Jul 2002 22:37:00 +0200

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

You can use jon's commands, which will run on both classic & X and can
detect "keys pressed"; also, you could check any special circunstance, such
as the "frontmost" property of your script...

repeat while (i am the frontmost application)
...
end

JJ
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.comm
_______________________________________________
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.

  • Prev by Date: Fwd: Re: Passing *possible* variables to a handler
  • Next by Date: Re: Stumped - How to call subscript?
  • Previous by thread: Re: kill switch for script
  • Next by thread: Finding Remote Mounted Volumes (OS X)
  • Index(es):
    • Date
    • Thread