image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 28th, 2007, 09:32 PM
Registered User
 
Join Date: Feb 2006
Posts: 8
lirrincity is on a distinguished road
Applescript with notification message override

I'm running an applescript to close the Mail application before backup as seen below. This script is working but the dialog box is displayed with a "OK and CANCEL" tab and if nothing is clicked the action does not go forward. Is there a way to display the dialogue with the tabs or to override the need for the user to action it?

I'm going to schedule this script with Ical. I'm new to applescript so any suggestion appreciated!

Thanks!!

try
tell application "Mail"
activate
beep
display dialog "Mail application will close in 10 seconds for backup. This program will restart when the backup is completed"
delay 10
beep
quit
end tell
tell the application "Mail" to close
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:29 PM.


Mac Support® Version 3.7.0 Beta 5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.