|
|
Use iCal to set a response reminder for a Mail message
OK, I managed to put it together today, so you might have some fun over the weekend.
Notes: The search for the file is rather slow, I have no idea why is mdfind so slow on my machine considering it should search in index, but probably this can be fixed somehow, at the moment it takes on my machine about 5-10 seconds to find the file, and you will have absolutely no visual feedback that something is going on, unless you monitor your CPU or disk activity. A nice progress bar, or instant search would be nice. As I'm still wandering how to open an email file from AS, to give you a working code, the place where the files should open is just displaying a dialog with a file path. But as soon as you figure out how to open the file, just replace 3 lines of code and you are done. Here is the script, at the end I will paste the usage....
Usual disclamer apply!!!
Usage: Save the file in the "~/Library/Scripts/Mail Scripts", you can then invoke it thru the script menu. I named it MailCalV7___ctl-e.app, in Jaguar this would let you invoke it with ctrl-e in the Mail, in Tiger I'm not sure if this works. There are 3 ways to use it: - create event: this will find the unique ID of the selected mail message and create a new event in iCal taking the mail subject as the title of the event, and the current date and time as the date and time of the event, it will also add string "MMID" and the ID of the message in the Notes of the event, where the MMID stands for Mail Message ID. Then it will take you to the event so that you can modify the date time and add some more comments - get id: the idea is to get the ID of the selected message which is a followup to an already created event, copy it into the clipboard and take you to the iCal. Then you can find the event you want to update, select the notes and hit ctrl-v to paste the new MMID, then you can add comments as followup notes to the event - open message with ID: this is when you want to actually see the content of the mail message you are referring to in the even notes. You check in the event which MMID you want to see, then start this script, select the option to open a message with ID, enter the ID manually, (sorry for bullets, I dont' know of any other way to enter text) and once you hit OK the mail message should appear. At this moment this will just show a dialog with a message path. Have fun, Zsolt
Use iCal to set a response reminder for a Mail message
To avoid the delay caused by shell script mdfind, I found the following script much faster in producing a URL of the selected mail message, identified as variable theURL, to hand off to iCal.
Use iCal to set a response reminder for a Mail message
I do not seem to have any delay on my Mac using the mdfind, but i will try you script out,, cheers
also here is a way to jump to the event of the selected email. that zmagyar was
but using these bits the script will now make the event reminder with a working I will write it up soon, as I am sure others will, to their preferred version.
--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|