Okay, here's what I'd like to do:

1) Have a Mail.app rule fire an applescript when an email triggers the rule.
2) Grab the "subject:" line and the "to:" line from the email, and send that to 
another program which I'll write

  What's the best way for an applescript to send the info to my ObjC program 
(for 10.6 or later)? The program will probably be a low-level service that 
waits on a specific port and runs in the background. It'll take the info, then 
file it into a table in an SQLite3 database. A different program will pull and 
collate the info in the DB.
  Secondly, how do I get an applescript to obtain the subject: line of an 
email, assuming Mail.app launched the applescript in question when the rule 
fired?
  Thirdly, are rules in Mail.app synchronous (w/regards to calling an 
Applescript)? i.e. will they wait for the script to finish?
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to