• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script Menu Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Script Menu Bug
      • From: Michael Grant <email@hidden>
  • Prev by Date: Re: (9.2.2) Path To...
  • Next by Date: Re: bash now default shell in 10.2; and reading files
  • Previous by thread: Re: Serial Port
  • Next by thread: Re: Script Menu Bug
  • Index(es):
    • Date
    • Thread