• 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: Shell script does not run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script does not run


  • Subject: Re: Shell script does not run
  • From: kai <email@hidden>
  • Date: Wed, 25 Apr 2007 14:26:00 +0100


On 25 Apr 2007, at 12:54, Peter Baxter wrote:

I have a shell script that does not run. It works as a script in terminal very nicely, but does not work from AS. What is the problem?

tell application "Terminal"
activate
do shell script "cp -r /Volumes/BAXUSB2KEY/ /Volumes/Lacie/ BAXUSB2KEY/"
end tell


As Mark says, Peter, there's no need to direct a shell script to Terminal. You may also find that some quoting helps:

---------------

do shell script "cp -r " & quoted form of "/Volumes/BAXUSB2KEY/" & space & quoted form of "/Volumes/Lacie/BAXUSB2KEY/"

---------------

---
kai


_______________________________________________ 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: Shell script does not run
      • From: Peter Baxter <email@hidden>
    • Re: Shell script does not run
      • From: Doug McNutt <email@hidden>
References: 
 >Shell script does not run (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Simple Date-Time Format Question...
  • Next by Date: Re: Shell script does not run
  • Previous by thread: Re: Shell script does not run
  • Next by thread: Re: Shell script does not run
  • Index(es):
    • Date
    • Thread