On 1/25/07, Jonathan Johnson <[EMAIL PROTECTED]> wrote:

On Jan 25, 2007, at 4:40 PM, Dennis Birch wrote:

> I've run into a problem while using the FolderItem.ShellPath method in
> a folder copy routine that uses a shell to execute a "cp -R" command.
>
> The problem occurs with a folder in the filepath that contains the
> trademark symbol (™).
>
> After executing the RB code: cmd = "cp -R " + Target.ShellPath + " " +
> dest.ShellPath
>
> the variable cmd contains: cp -R /Users/dennis/Desktop/images
> /Users/dennis/Desktop/Power\342\204\242/contents

What does the Terminal.app show you when you drag the folder into it?
For me, it shows the escape sequence "\342\204\242" which is what
you're seeing.

I dragged both folders to Terminal to replicate the command I was
attempting to execute in RB. Here's what the Terminal window shows:

cp -R /Users/dennis/Desktop/Help\ Folder/images/
/Users/dennis/Desktop/Power\342\204\242/contents/

It executes successfully from Terminal (i.e. the contents are copied).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to