osascript: CFMessagePort error?
osascript: CFMessagePort error?
- Subject: osascript: CFMessagePort error?
- From: Michael Casteel <email@hidden>
- Date: Wed, 16 Feb 2005 12:22:00 -0800
I'm making an application that runs as a web service under Tomcat and
uses Applescript to control iTunes on the host Mac. Currently 10.3.7
with Developer Tools Tomcat, Java 1.4.2.
Due to an unresolved problem encountered using NSAppleScript in Java, I
have been using (via Runtime.exec()) osascript -e <scriptline> to fire
off my Applescripts. This works fine for minutes or hours, but at some
point after the server has been running a while, osascript commences
failing with the error: CFMessagePortCreateLocal failed (name =
Processes-0.209321985 error = 0). At that time, I can go to a terminal
window on the server, or log in via ssh, and run osascript interactively
with no problems. It's like some problem with the environment the server
is executing in.
I'm posting here in hopes that someone has used osascript from a
long-running application (like my server) and might have some insight to
offer.
The same problem arises whether I start Tomcat from a terminal window on
the server, or start it from an ssh session. Works fine for a while,
then stops working.
I'm worried because archive search and Google have not been fruitful.
--
Mike Casteel
email@hidden Seattle, WA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden