This content has been marked as final. Show 4 replies
Since you refer to Finder windows I'll guess you're running this on a Mac.
The following is the result of the command you string together:
"open /Volumes/'D'/'\Macromedia\Director MX 2004\My Folder'/"
which looks wrong.
The single quotes shouldn't be there, or perhaps rather the entire path
should be surrounded by a pair of single/double quotes.
Also, be careful that you know what you're doing when using backslashes
to create a posix path. Can you start with a valid HFS-type path and use
shell_hfs2posix() and compare that to your posix path?
As you are running a PC, my substitution function won't work as I'm substituting the ":" from a mac formatted path to a "/" , i.e. "Volumes:Users:_Shared:My Application:My Folder" to "/Volumes/Users/_Shared/My Application/My Folder"
I was quoting each bit of the path as I read in another post that this was recommended as I had spaces in my path... but I didn't know about shell_hfs2posix(). That would have saved loads of head scratching, thank you... and as a result I got it to work.
> I was quoting each bit of the path as I read in another post that this was
> recommended as I had spaces in my path...
It seems to me that spaces are delimited with a back slash, so that
Applications/Director MX 2004/
Applications/Director\ MX\ 2004/
and you shouldn't need quote marks in your path string anywhere.
But you have it working for you already, so that's good.
you know, that you do not need shell xtra to reveal a folder in the finder?
try in the message window:
open the_path with "Finder.app"