So, for example, you could precompile an AppleScript with Script Editor, and then do:
use Mac::OSA::Simple; my $script = load_osa_script($path); my $result = $script->execute;
I've finally managed to install the modules, but when I run this:
#!/usr/bin/perl use Mac::OSA::Simple ; $path = "$ENV{HOME}/desktop/test.scpt"; open F, $path or die $! ; my $script = load_osa_script($path); my $result = $script->execute;
I get
Line 1: Can't call method "execute" on an undefined value