Re: 10.6 MacPerl - no appropriate 64-bit architecture

[email protected] (Jeremiah Foster)
Newsgroups perl.macosx
Message-ID <[email protected]>
On Aug 29, 2009, at 8:44, Gavin Brock wrote:

> On 28 Aug 2009, at 17:45, [email protected] 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.

Regards,

Jeremiah
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.