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 > mail.app rule applescript

mail.app rule applescript
Thread Tools
mdc
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Sep 14, 2004, 04:50 PM
 
i created a rule in mail.app which will redirect any email that i get to my cellphone's email address. so when i am out i can get my email on my cellphone.

i was wondering if it would be possible to make an applescript that will enable and disable this rule. instead of me going into mail's preferences > rules > check/uncheck rule.

and if even more advanced. would it be possible that when i change my status to "gone out" in proteus _then_ the script runs. that would be cool.
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Sep 14, 2004, 11:32 PM
 
Simple answer: yes, AppleScript can do everything you are looking to do.

But instead of tuning another rule on or off, you have to instead perform all of the actions from the AppleScript script. I am not going to write the script for you, but here are some big hints to get you in the right direction:

Code:
tell application "Proteus" set currentStatusString to title of current status as string end tell display dialog currentStatusString
Here is a good reference to what your AppleScript handler will have to look like:
http://www.macosxhints.com/article.p...30116071118239

And you can get a list of the commands that Mail.app supports by dragging the program icon onto the "Script Editor" icon.
     
mdc  (op)
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Sep 15, 2004, 09:28 AM
 
much thanks.
     
   
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 01:14 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