• 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
Re: perl in scriptmenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perl in scriptmenu


  • Subject: Re: perl in scriptmenu
  • From: John Delacour <email@hidden>
  • Date: Wed, 4 Sep 2002 05:16:09 +0100

At 3:58 pm -0700 3/9/02, Christopher Nebel wrote:
On Tuesday, September 3, 2002, at 12:33 PM, John Delacour wrote:

...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.

Did you make it executable? (I.e., chmod +x file.pl) Script Menu requires that plus the shebang line. I tried it and it works fine.

Yes, I have already said so. In fact I did 'chmod 755 f' but using '-x' makes no difference either, except that it does NOT appear to make the file executable while 755 does, so I don't understand. You say that -x will make it executable and my terminal tells me otherwise. Here is the log:

bash-2.05a$ chmod -x test3 ; ls -l
total 48
-rw-r--r-- 1 jd staff 71 Sep 3 20:56 test3

bash-2.05a$ chmod 755 test3 ; ls -l
total 48
-rwxr-xr-x 1 jd staff 71 Sep 3 20:56 test3
bash-2.05a$


To repeat, the script below, whether saved with Unix lines or Mac lines and made executable with chmod 755 (-x also tried to no effect) does not create the file in /tmp/ or anywhere else.

#!/usr/bin/perl
open F, '>/private/tmp/junk.txt'; print F "Success"; close F;

You say it works. Can someone else please try it and confirm this.

Thanks.

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: perl in scriptmenu
      • From: Reinhold Penner <email@hidden>
References: 
 >Re: (no subject) (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Help! Need to get text from OS X Mail to Tex-Edit...
  • Next by Date: Re: perl in scriptmenu
  • Previous by thread: Re: perl in scriptmenu
  • Next by thread: Re: perl in scriptmenu
  • Index(es):
    • Date
    • Thread