Re: Scripts works with OSX 10.5 but not earlier because of Unicode
Re: Scripts works with OSX 10.5 but not earlier because of Unicode
- Subject: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
- From: has <email@hidden>
- Date: Fri, 11 Apr 2008 23:34:21 +0100
On 11 Apr 2008, at 21:32, Mark J. Reed wrote:
You can do AppleEvents natively from Java.
Not as such. The APIs you point to are just for handling incoming run/
open/quit events; there's nothing there for building and sending
events. You could use JNI/JNA/etc. to access the C-based Apple Event
Manager APIs, although it's all rather low-level and deeply tedious. A
high-level java-appscript bridge is on my list of things to do one of
these days, but don't hold your breath as I don't have time for any
more ports until the current ones are done and dusted.
If you're generating AS from Java, you essentially have to look at
each char in the string and if its value is > 127 output the data utxt
form.
Code generation is evil and usually the wrong solution to any given
problem. I would suggest hardcoding the logic in a compiled
AppleScript that can be run via osascript and passing any variable
data as arguments to that.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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