• 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 07:48:48 +0100

At 7:27 pm -1000 3/9/02, Reinhold Penner wrote:

#!/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.

The script above did not work. But when I changed it to a valid dir, it did work:

That is a valid directory on anyone's system ! , and I've made it clear that the script runs fine from the Terminal or from BBEdit.

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

I got a junk.txt file containing the word Success at the root of my disk.

Well, I've just run the install disk and reinstalled the menu and still it doesn't work from the menu, no matter where I try to create the file, so I remain very confused. Since the file is executable and runs in every other environment and since I've tried every variation of line endings, I can't think what else I can do.

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: Paul Berkowitz <email@hidden>
    • Re: perl in scriptmenu
      • From: Reinhold Penner <email@hidden>
References: 
 >Re: perl in scriptmenu (From: Reinhold Penner <email@hidden>)

  • Prev by Date: Re: perl in scriptmenu
  • 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