Re: Should Cocoa apps pass parameters to AppleScript?
Re: Should Cocoa apps pass parameters to AppleScript?
- Subject: Re: Should Cocoa apps pass parameters to AppleScript?
- From: has <email@hidden>
- Date: Mon, 14 Jan 2008 11:18:14 +0000
On 14 Jan 2008, at 01:55, Devraj Mukherjee wrote:
I have a design question. My humble Cocoa application runs bits and
pieces of AppleScript to interact with various standard applications.
It would be nice to send the AppleScript some parameters that it can
use out of my application to feed into the other apps it interacts
with.
If the AppleScript stuff is hardcoded (as opposed to being user-
supplied scripts), the simplest thing would probably be to skip
AppleScript completely and just send Apple events directly from ObjC.
For a high-level ObjC-Apple event bridge, you might consider objc-
appscript:
http://appscript.sourceforge.net/objc-appscript.html
Officially it's still alpha-ware, but it's already pretty complete and
reasonably robust, and should work on anything from Panther onwards.
If you still need to interact with AppleScripts at all there's a
sample project in the repository that shows how to do this using
appscript and NSAppleScript.
If you've any questions about it, just drop us a mail.
HTH
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden