I'm building a simple macro to convert a path to use in different scenarios.
For example I'm considering 3 types:
path:to:file A
path/to/file\ A
path/to/file A
So I just want to know a few things:
1 - I noticed that all examples using :
start with the name of the volume like this:
Macintosh HD:Users:yourUserName:Desktop:My File.txt
, but when I copy a path from Finder, it starts with /Users
. Will it make a difference if I have a path like this without the volume name?
Users:yourUserName:Desktop:My File.txt
2 - The colon-delimited path is just the full path, but where the /
becomes :
, right? Even if I have spaces, all I need to do is convert /
to :
, right?
So this:
Macintosh HD/Users/yourUserName/Desktop/My File.txt
becomes this:
Macintosh HD:Users:yourUserName:Desktop:My File.txt
?
3 - For both of these versions I have to use double quotes because of the spaces (if any, of course), but for the spaced spaces, no need for that, right?
Like this:
"Macintosh HD/Users/yourUserName/Desktop/My File.txt"
"Macintosh HD:Users:yourUserName:Desktop:My File.txt"
Macintosh HD/Users/yourUserName/Desktop/My\ File.txt
4 - Can I also escape the spaces on a colon-delimited path like this?
Macintosh HD:Users:yourUserName:Desktop:My\ File.txt