On Aug 29, 2009, at 8:44, Gavin Brock wrote:

On 28 Aug 2009, at 17:45, e...@apple.com wrote:

On Aug 27, 2009, at 11:15 PM, Gavin Brock wrote:

I believed that Mac::Glue was the popular "perly" way to call AppleScript, but even that claims to need "the latest Mac::Carbon distribution". Will that work on 64bit?

Please don't tell me I have to system("osascript", ...) ;-)

If you do have to drop to that level, you can use Paul Fenwick's IPC::System::Simple module. It allows you to do things like system("foo") and read the result much more easily that with perl's built in system call. You can also do 'run', 'capture', and 'runx' which are very convenient and safer than system.

Its on the CPAN and if you have the good luck of running a debian based distribution, or even are running some form of apt on your Mac box, you can install the deb libipc-system-simple-perl.



Reply via email to