-
-
23 Feb 2003 17:04:10 UTC
- Distribution: Mac-AppleScript
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (24 / 27 / 625)
- Kwalitee
Bus factor: 0- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (3.34KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mac::AppleScript - Perl extension to execute applescript commands on OS X
SYNOPSIS
use Mac::AppleScript qw(RunAppleScript); RunAppleScript(qq(tell application "Finder"\nactivate\nend tell)) or die "Didn't work!";
DESCRIPTION
Simple interface to the OSA scripting stuff.
Returns undef on error and sets $@ to the error code. Codes are listed in the AppleScript documentation. On successful completion, this returns the output of the AppleScript command. For empty returns, like with the sample script in the SYNOPSIS, AppleScript appears to return the string "{}" ( That's an open and close squiggle bracket, without the quotes)
EXPORT
None by default.
AUTHOR
Dan Sugalski, dan@sidhe.org
Chunks of the code came from Apple Tech Notes, though that'll be cleaned out soon.
SEE ALSO
perl(1).
Module Install Instructions
To install Mac::AppleScript, copy and paste the appropriate command in to your terminal.
cpanm Mac::AppleScript
perl -MCPAN -e shell install Mac::AppleScript
For more information on module installation, please visit the detailed CPAN module installation guide.