Skip to content

Instantly share code, notes, and snippets.

@caldwell
Created December 14, 2012 20:56
Show Gist options
  • Save caldwell/4288596 to your computer and use it in GitHub Desktop.
Save caldwell/4288596 to your computer and use it in GitHub Desktop.
A simple function to call Applescript from Perl
sub osascript($) { system 'osascript', map { ('-e', $_) } split(/\n/, $_[0]); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment