Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
How do you run a perl script using a custom perl build from an AppleScript?by nysus (Parson) |
on May 27, 2017 at 17:54 UTC ( [id://1191380]=perlquestion: print w/replies, xml ) | Need Help?? |
nysus has asked for the wisdom of the Perl Monks concerning the following question: I'm creating commands that I can execute by voice for my Mac. In order to do this, I want to create AppleScripts that call my perl script. For example, here's an AppleScript that will call a Perl script which moves files off the Desktop and into Documents folder:
The Perl script works fine when run from the command line, but when executing the script from my AppleScript, the modules I use aren't found and I get this error:
I have perlbrew installed. The current shebang line for the perl script is #! /usr/bin/env perl. I tried adding the following line to my perl script:
Running the AppleScript now yields this horrific looking error:
Is there anything I can do to get this working?
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|