Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Applescript and Backslashes (or Spaces)

Applescript and Backslashes (or Spaces)
Thread Tools
grovberg
Dedicated MacNNer
Join Date: Aug 2000
Location: Harrisonburg, VA USA
Status: Offline
Reply With Quote
Feb 6, 2006, 12:51 PM
 
This may be a dumb question, but I'm lost. I'm writing a applescript that executes CLI commands. I'm using do shell script to execute this command...

cp /Volumes/VOLUME\ IDENTIFIER/VIDEO_TS/VTS_01_1.VOB /Volumes/Media/ARCHIVE.VOB

The problem is that \ after VOLUME. If I leave it in there, the script won't compile. If I leave it out, the cp command fails. I've tried throwing some extra quotes at it, but that doesn't seem to help much either.

Any suggestions?
"Make good fight."
-Mr. Miyagi
     
grovberg  (op)
Dedicated MacNNer
Join Date: Aug 2000
Location: Harrisonburg, VA USA
Status: Offline
Reply With Quote
Feb 6, 2006, 01:01 PM
 
Sigh. I seem to be doing this a lot lately. Actually the extra single quotes work just fine. I think there must have been a typo when I tried it before. Sorry.
"Make good fight."
-Mr. Miyagi
     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Feb 7, 2006, 02:59 PM
 
You can also escape the escape.
\\
-HI-
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:03 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,