Re: Running ruby (utilizing appscript) from do shell script
Re: Running ruby (utilizing appscript) from do shell script
- Subject: Re: Running ruby (utilizing appscript) from do shell script
- From: has <email@hidden>
- Date: Fri, 6 Jun 2008 13:41:20 +0100
Philip Aker wrote:
For the integration with appscript, I can find some time to at least
look for solutions to any problems that might arise from pairing these
technologies.
There shouldn't be any problem using appscript within Philip's
components to control other applications, as appscript is just an
ordinary Python/Ruby module like any other. Don't try to use appscript
to control the application that's running the script, however, as
without full integration between the Apple event bridge and the OSA
language component this will almost certainly result in you
deadlocking both script and application [1].
The closest I got to a fully integrated OSA language component is
PyOSA, which you should be able to use with care. However, please note
that aside from being an unfinished developer release (and thus
subject to the usual caveats), I have no plans to develop it further
due to the various technical challenges facing the current design. I
do have plans for a multi-language successor, but there's no ETA on
that yet as RL is really busy at the moment and I won't be starting
any major new projects until the current lot are comfortably in the can.
HTH
has
[1] OSA languages that wish to send Apple events to the host process
must do so via the OSA API. This is because the application's main
event loop - which is normally responsible for handling incoming Apple
events - cannot process new events while the OSA script is running as
both event loop and OSA language normally run on the same [main] thread.
--
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