Re: making a dialog to stop a loop and quit script
Re: making a dialog to stop a loop and quit script
- Subject: Re: making a dialog to stop a loop and quit script
- From: Matthew Smith <email@hidden>
- Date: Wed, 03 Jan 2007 13:44:42 +1100
- Thread-topic: making a dialog to stop a loop and quit script
on 03/01/2007 13:30, kelmandor at email@hidden wrote:
> hi, i wrote an alarm applescript that turns up the volume in itunes
> for 15 minutes to make me wake up. the problem is that when i run the
> script i have to let it run for the full 15 minutes. what i would
> like to do is make a dialog box that is on for the whole time the
> script is running and if i press the button it will quit the loop and/
> or the script. i cant seem to understand how to do that while i
> searched the documentation. thanks in advance for any help with this.
> from what i tried when i make the dialog box it sits and waits for my
> input. i want my program to continue executing. it might just be
> easier to make the dialog replace the terminating value in my loop,
> but my real problem is just continuing execution.
Are you actually doing anything in the loop other than making the script run
for 15 minutes? If you're not you could replace it with a display dialog
like:
display dialog "Wake Up!!!" buttons "Silence" default button "Silence"
giving up after 900
The "giving up after" means it will only display and wait for that number of
seconds before continuing on with the script.
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden