in reply to perl sending Apple events?

Raw Apple Events are not that friendly to work with. You'll probably be better off using AppleScript. There's a command-line utility called osascript that might be the most direct route you could take.

#!/usr/bin/perl -w
`osascript -e 'say "All glory to the hypno-toad!" using "Zarvox"'`;

Quoting can get a bit hairy, and AppleScript has many problems, but it is the most direct way of getting access to UI elements, etc., under OS X.

BCE
--Your punctuation skills are insufficient!

Replies are listed 'Best First'.
Re^2: perl sending Apple events?
by john_oshea (Priest) on Oct 26, 2005 at 10:04 UTC
    This gets my vote for the 2005 "Best line of AppleScript" prize