Re: NSDistributedNotifications and scripting languages
Re: NSDistributedNotifications and scripting languages
- Subject: Re: NSDistributedNotifications and scripting languages
- From: Jens Alfke <email@hidden>
- Date: Fri, 1 Aug 2008 17:58:56 -0700
On 1 Aug '08, at 3:11 PM, Recent Chaos Software wrote:
I was wondering if anyone had any ideas about sending notifications
to Cocoa applications using either Ruby, or PHP? I want to send
notifications using a cocoa application to another cocoa application
and / or send notifications from a web based application.
AppleEvents are the standard way to do this. Cocoa's scriptability
APIs make it pretty easy to implement AppleEvent/AppleScript support.
From Ruby you can use the bridge to invoke AppleScript, and from any
language you can launch an AppleScript as a separate task or use the
'osascript' tool to send raw AppleEvents.
—Jens_______________________________________________
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