Mac::AppleScript - Perl extension to execute applescript commands on OS X
use Mac::AppleScript qw(RunAppleScript); RunAppleScript(qq(tell application "Finder"\nactivate\nend tell)) or die "Didn't work!";
Simple interface to the OSA scripting stuff.
This is beta only--the code is very chatty when things fail, and no meaningful error message is returned to the program yet.
None by default.
Dan Sugalski, dan@sidhe.org
Chunks of the code came from Apple Tech Notes, though that'll be cleaned out soon.
perl(1).
To install Mac::AppleScript, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mac::AppleScript
CPAN shell
perl -MCPAN -e shell install Mac::AppleScript
For more information on module installation, please visit the detailed CPAN module installation guide.