I'm trying to run an applescript from perl using MacPerl::DoAppleScript(). The script when compiled works fine as AppleScript, but I can't seem to get it to work quite right in MacPerl. And so I put it to you guru's who've tangled with MacPerl::DoAppleScript() before.
After setting $AppleScript to the script, my code goes something like... MacPerl::DoAppleScript($AppleScript, $passed_file) or die $@; ... But from this line I get the error... # Usage: MacPerl::DoAppleScript(script). ...I get the same error if I use <<END_SCRIPT rather than the variable $AppleScript, and if I get rid of the passed file I get an error (because the script is a droplet only and so it expects the file.) So what am I missing? ~wren