Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending AppleEvents



At 12:03 -0800 27/1/07, Greg Guerin <email@hidden> wrote:

(I've already tried using osascript and Runtime.exec(), by the way,
but because of the particular events I need to send osascript won't
work for me.)

Can you describe the particular events you need, and why osascript won't work?

When something seems too difficult for JNI, my first thought is often to
exec() a Process and run it as a kind of daemon intermediary...

The application doesn't have an AppleScript dictionary. I could send raw AppleEvents but apparently AppleScript only retrieves results of type '----' which won't cut it in this case - the result is an XML string of type 'xmlD', so I need to use C/C++.


I know there's been talk about it in the past so I just wondered if there were any suitable AppleEvent/JNI examples around. The example code I've got is part of a Cocoa GUI application, so I'm not sure if I can just strip out the AppleEvent stuff and put a JNI wrapper on it, or if it depends on the Cocoa application framework (for event loops or what not). I guess I just need to dive in and try it and see what happens.

-Rolf
--
Rolf Howarth
Square Box Systems Ltd
Stratford-upon-Avon UK.
http://www.squarebox.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.