in reply to Mac::Carbon et.c on Mac OS X 10.8
I honestly don't know why they shipped these modules with Mountain Lion. As far as I can tell, they have not been updated for a few years (Possibly since Tiger) and were not included in the last few versions of OSX for what I can assume are those very reasons you mentioned. At least with Mac::Carbon the documentation states there are significant portions of the Carbon API that are unavailable to programs on Mac OSX (See 64-Bit Perl section). Quickly looking at Mac::Glue seems to indicate some conflicts as well.
If you're looking to work with the Finder and other applications on the Mac, I would stick with AppleScript and combine it with Perl shell scripts. You can call one from the other. They pair well together from what I remember. Check out the Mac Developer library on how http://developer.apple.com/library/mac/#technotes/tn2065/_index.html as well as Oreilly's AppleScript The Definitive Guide has some, dated, but good examples if you sift through them. If you'll be working often this way, it may be worth a few bucks for you to get the excellent ScriptDebugger which takes a lot of the headaches out of grokking each software's particular flavor of AppleScript.
I don't want to discourage you from a separate install of Perl. That's not a bad idea and often recommended but I don't think it will help you with this particular issue. To download and maintain a separate install on the Mac, I use Macports.
Good luck :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Mac::Carbon et.c on Mac OS X 10.8
by kwalker (Acolyte) on Feb 23, 2013 at 02:07 UTC | |
by luis.roca (Deacon) on Feb 23, 2013 at 04:13 UTC |