On 19/06/2012, at 10:03 AM, William Squires wrote:

>  What's the best way for an applescript to send the info to my ObjC program 
> (for 10.6 or later)?

Make your application scriptable. If it's a one-off thing, methods in an 
application category exposed as an application property is the easiest way to 
go.

>  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?

That's more a question for another list, but the "perform mail action with 
messages" handler is passed a list of the messages; from there you can easily 
get the subject.

>  Thirdly, are rules in Mail.app synchronous (w/regards to calling an 
> Applescript)? i.e. will they wait for the script to finish?

I imagine they're as synchronous as any other rule action. But not all 
AppleScript commands are synchronous (most are, but some like "check for new 
mail" are not).

-- 
Shane Stanley <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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