• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Applescript to ObjC program communications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript to ObjC program communications?


  • Subject: Applescript to ObjC program communications?
  • From: William Squires <email@hidden>
  • Date: Mon, 18 Jun 2012 19:03:30 -0500

  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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescript to ObjC program communications?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: updates for retina
  • Next by Date: iOS disk full?
  • Previous by thread: Re: Findbar highlighting
  • Next by thread: Re: Applescript to ObjC program communications?
  • Index(es):
    • Date
    • Thread