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 > Mac OS X > Applescript and Backslashes (or Spaces)

Applescript and Backslashes (or Spaces)
Thread Tools
Dedicated MacNNer
Join Date: Aug 2000
Location: Harrisonburg, VA USA
Status: Offline
Reply With Quote
Feb 6, 2006, 10:51 AM
 
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
     
Dedicated MacNNer
Join Date: Aug 2000
Location: Harrisonburg, VA USA
Status: Offline
Reply With Quote
Feb 6, 2006, 11:01 AM
 
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
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Feb 7, 2006, 12:59 PM
 
You can also escape the escape.
\\
-HI-
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:31 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2