(no subject)
(no subject)
- Subject: (no subject)
- From: John Delacour <email@hidden>
- Date: Tue, 3 Sep 2002 20:33:54 +0100
Apologies to those who have read this unanswered question on MACSCRPT.
I read in half a dozen places that it is possible to run a perl
script from the Script Menu, but no one has yet provided me with
evidence that this is possible. I see that Chris N (see below) said
nine months ago that it was possible, so perhaps Chris or someone
else can tell me how.
This script will should create a file and will do so when run in the
shell, from BBEdit or in a shell script
#!/usr/bin/perl
open F, '>/private/tmp/junk.txt';
In Scriptmenu, provided I have the shebang line, no matter what I
name the script, the script is shown in the menu with the P icon, but
the script does not create the file or do anything. It makes no
difference whether I change line endings, change permissions or what
not. So far as I know I have done everything I possibly could to get
the thing to work and as things stand I can only assume that everyone
has simply been repeating an assertion without providing any evidence.
Please can someone provide me with evidence that a perl script can be
run from the menu, with or without a quick filck of the wrist.
JD
From the Apple site:
Introducing a Script Menu worthy of Mac OS X. This convenient
utility will launch Perl, Shell and AppleScript scripts with a quick
flick of the wrist. Power at your command, anywhere, anytime, from
within any application.
From the AppleScript Sourcebook:
Apple's Chris Nebel has reported that Script Menu will run PERL and
other scripts as well as AppleScript scripts: "Indeed they do --
"Script Menu will treat any file that begins with '#!' as a script
and try to execute it. It's a little weird about it, though -- if it
doesn't see '#!/usr/bin/perl', it executes it using /bin/sh, which
means you can't throw an arbitrary script at it. E.g., you couldn't
use a csh script by leading off with '#!/bin/csh'. This might be
construed as a feature, but I'd consider it an iffy one at best."
12/28/01
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.