• 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
Re: Applescript to ObjC program communications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to ObjC program communications?


  • Subject: Re: Applescript to ObjC program communications?
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 19 Jun 2012 11:43:32 +1000

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 <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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

References: 
 >Applescript to ObjC program communications? (From: William Squires <email@hidden>)

  • Prev by Date: Re: nstableview reload with animation possible?
  • Next by Date: CodeSigning with Developer ID Cert
  • Previous by thread: Applescript to ObjC program communications?
  • Next by thread: iOS disk full?
  • Index(es):
    • Date
    • Thread