• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripts works with OSX 10.5 but not earlier because of Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Scripts works with OSX 10.5 but not earlier because of Unicode (From: Paul Taylor <email@hidden>)
 >Re: Scripts works with OSX 10.5 but not earlier because of Unicode (From: Christopher Nebel <email@hidden>)
 >Re: Scripts works with OSX 10.5 but not earlier because of Unicode (From: Paul Taylor <email@hidden>)
 >Re: Scripts works with OSX 10.5 but not earlier because of Unicode (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: When can you use the 'whose' clause (Filter)
  • Next by Date: Re: When can you use the 'whose' clause (Filter)
  • Previous by thread: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Next by thread: Re: Scripts works with OSX 10.5 but not earlier because of Unicode
  • Index(es):
    • Date
    • Thread