Re: A known feature of script menu?
Re: A known feature of script menu?
- Subject: Re: A known feature of script menu?
- From: John Delacour <email@hidden>
- Date: Sun, 6 Apr 2003 22:01:33 +0100
- Mac-eudora-version: 6.0a14
At 2:25 pm -0600 6/4/03, Doug McNutt wrote:
[Lots of questions]
The shebang must be present IN THE FIRST LINE and you must use UNIX
line endings and the script must be executable.
THERE MUST BE NO SPACES IN ANY OF THE CONTAINING FOLDER NAMES. In
other words it will work in a folder names Perl_Scripts but not in a
folder named Perl Scripts
This script will create an executable perl script in the menu.
set f to "" & (path to scripts folder) & "junk.pl" as file specification
set fU to "'" & POSIX path of f & "'"
set lf to ASCII character 10
set pScript to "#!/usr/bin/perl
$f = '/tmp/junk.txt' ;
open F, qq~>$f~ ;
print F qq~hello~ ;
`open $f`"
open for access f with write permission
set eof f to 0
repeat with p in paragraphs of pScript
if p is not "" then write p & lf to f
end repeat
close access f
do shell script "chmod 755 " & fU
-- JD
_______________________________________________
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.