Script Menu Bug
Script Menu Bug
- Subject: Script Menu Bug
- From: John Delacour <email@hidden>
- Date: Wed, 4 Sep 2002 23:04:52 +0100
I've now had a moment to investigate this bug a little further.
Inside my Scripts folder I created two sub directories named
~/Library/Scripts/space folder
~/Library/Scripts/nbsp folder
the second having a Mac no-break space between the two words. I have
not bothered trying a Unicode name.
An AppleScript script will run from any any subdirectory, space or no space.
An executable perl script will run from "nbsp folder" but not from
"space folder".
I have not tried python or shell scripts.
Two suitable scripts to test this bug follow. Each of these opens a
file in TextEdit reporting the success of the script. The perl
script must be rendered executable in the command line something like
this:
cd ; cd Library/Scripts/space\ folder ; chmod +x perltest.pl
set f to "" & (path to temporary items) & "astest.txt"
open for access file f with write permission
set eof file f to 0
write "astest succeeded" to file f
close access file f
tell app "Finder" to open file f
_____
#!/usr/bin/perl
$f = '/private/tmp/perltest.txt' ;
open F, ">$f" ;
print F 'perltest succeeded' ;
`open $f` ;
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.