Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > basic applescript help

basic applescript help
Thread Tools
mdc
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Nov 24, 2004, 08:39 AM
 
i have mail.app rule that will make the mail icon bounce in the dock whenever i get any mail.
this works fine since i click on the icon, open mail and read the email.

the problem occurs when mail is the active application. i have to click the mail icon again to stop it from bouncing, even though i am using the program. no big hassle, but still.

i would like to make an applescript along the lines of.

if mail is not the active application
bounce the icon in the dock
end if
else

so if mail is the active app, do nothing. i like applescript but i really need to find some website or book that will help me learn the language.

thank you

.edit.
ok, i have made a script that will check if mail is the frontmost app or not, and i have gotten the ifs and elses in there. but i can not figure out how to make it bounce the icon in the dock.
(Last edited by mdc; Nov 24, 2004 at 03:03 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2