Re: External Program Control from within Cocoa App
Re: External Program Control from within Cocoa App
- Subject: Re: External Program Control from within Cocoa App
- From: Matt Neuburg <email@hidden>
- Date: Mon, 03 Nov 2008 07:55:46 -0800
- Thread-topic: External Program Control from within Cocoa App
On Sun, 02 Nov 2008 17:25:01 -0500, Ronald Ramdhan <email@hidden>
said:
>Hey Everyone,
> I am working on a project where I would like to control external
>programs from within my Cocoa Application. For example, the ability to
>control a program like PowerPoint from within my code.
>
> Is there anyway to do this programmatically without the use of Apple
>Script?
Certainly. You can do it with Objective-C (through the Scripting Bridge), or
Ruby, or Python, or raw Apple events... or...
What you *can't* do it without it Apple *events*. AppleScript is just a
language. But Apple events are the system-level interapplication
communication mechanism on Mac. Since this is the mechanism in existence
when PowerPoint was written, it is the mechanism to which PowerPoint
conforms. Apple events, however, are language-neutral; they don't care how
you created and sent them.
See Appendix B of my book (and my online article about replacing AppleScript
with Ruby) for more info about that. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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