String of variable has a space - how do I escape spaces?
Solution 1:
How about
set a to choose folder with prompt "Select your Time Machine backup:"
set p to quoted form of POSIX path of result
This will produce a string with the full path in single quotes: '/path/to/Conners Mac'
.