If you right click while in the AppleScript editor several basic forms are
available.
I took two of these to create the script at the end of this message.
The first one was Action Clauses->Timeout Clauses and the second was
Dialog Clauses->Two Button.
So this script should display a dialog box for 30 seconds. If you click yes or
do nothing then it will say quitting mail.
If you click No then it will say OK forget it then and exit
try
with timeout of 30 seconds
display dialog "Are you ready to Clean the mail Application?"
buttons {"No", "Yes"} default button 2
if the button returned of the result is "No" then
say "OK forget it then..."
return
end if
end timeout
end try
say "quitting mail"
On Jan 9, 2011, at 4:27 PM, Sarah Alawami wrote:
> Since I don't know how to do dialogues yet I'll have to poke my nose in to
> that. Is there an easier way then typing all of it by hand, besides asking
> for help of corse. I want to try and do as much as I can on my own. that's
> the best way to learn. lol!
> On Jan 9, 2011, at 10:53 AM, Jon Cohn wrote:
>
>> Yes, you can set up an apple script to run as an alarm for ical. There is a
>> runscript option in the alarm pull down menu.
>>
>> I don't know what would happen if you are not logged in when the Alarm
>> occurs. And if you are logged in and reading mail right now it would quit
>> you out of mail, so you might want to
>> add a Dialog box to the beginning of the script. Also, there is a "Launch"
>> service which might be better then ical for this type of functionality. I
>> don't know off hand, if LaunchServices are available to any Macintosh user,
>> or just the Administrator.
>>
>> Best wishes,
>>
>> Jon
>>
>>
>> Best regards,
>>
>> Jon
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "MacVisionaries" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/macvisionaries?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/macvisionaries?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/macvisionaries?hl=en.