Re: Shell script does not run
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