• 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: "do shell script" into directory with a dot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "do shell script" into directory with a dot


  • Subject: Re: "do shell script" into directory with a dot
  • From: "Steven D. Majewski" <email@hidden>
  • Date: Thu, 24 May 2007 11:19:35 -0400


On May 24, 2007, at 11:01 AM, Doug McNutt wrote:


set scr to quoted form of "/usr/bin/perl /Volumes/Echo/ Documents/.fun/myperlcode.pl"
do shell script scr


Fails complaining  "no such file or directory"

The command works fine in a BBEdit worksheet or in Terminal.app.

Fails if presented as an osasrcipt.


I think you need to take out the "quoted form of" --
that is making the shell look for a command with the name of
'/usr/bin/perl /Volumes/Echo/Documents/.fun/myperlcode.pl'
rather than running /usr/bin/perl with the argument of: /Volumes/Echo/ Documents/.fun/myperlcode.pl


If you type 'ls .' ( including the quotes ) in Terminal.app you'll get an error too.

Although, on 10.4.x, I get a different error message:

sdm7g$ 'ls .'
-bash: ls .: command not found


-- Steve Majewski

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: "do shell script" into directory with a dot
      • From: Doug McNutt <email@hidden>
    • Re: "do shell script" into directory with a dot
      • From: "Mark J. Reed" <email@hidden>
References: 
 >"do shell script" into directory with a dot (From: Doug McNutt <email@hidden>)

  • Prev by Date: "do shell script" into directory with a dot
  • Next by Date: Re: "do shell script" into directory with a dot
  • Previous by thread: "do shell script" into directory with a dot
  • Next by thread: Re: "do shell script" into directory with a dot
  • Index(es):
    • Date
    • Thread