Computing.Net > Forums > Programming > AppleScript: Start and stop script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

AppleScript: Start and stop script

Reply to Message Icon

Name: notrichatall
Date: June 8, 2009 at 16:26:16 Pacific
OS: Macintosh
Subcategory: General
Comment:

have an AppleScript that I want to just keep running.

repeat
tell application "System Events" to keystroke "x" using control down
tell application "System Events" to delay 5
end repeat

Very simple script that I'm turning into an application bundle. But I need a window or something to be open with a button to start and stop the script from running, or some other way of just stopping the script. When I run that as it is, it keeps running, even when I tell it to quit. I then have to force quit to stop it.

Is there some quick AppleScript code I can throw in there?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: AppleScript: Start and stop script

Batch file to start and stop servic www.computing.net/answers/programming/batch-file-to-start-and-stop-servic/15882.html

PhP and ACTION script www.computing.net/answers/programming/php-and-action-script/9181.html

Questions about cron and php script www.computing.net/answers/programming/questions-about-cron-and-php-script/16328.html