Is there a preference or other way to have Script Debugger always paste the HFS/POSIX paths for directories to include a subsequent colon or forward slash? We do a lot of path building and almost always require those in our paths. Pasting as alias includes them but we’re usually not working with aliases so that preceding “alias” would be just as much of a pain to remove. Just a small improvement that would be nice.
So when you do that, the resulting quoted path is selected. You can then run this script:
tell application id "com.latenightsw.ScriptDebugger8" -- Script Debugger.app
tell document 1
set selRange to selection as point
set theSel to selection as text
if theSel contains ":" and character -2 of theSel is not ":" then
set theSel to (text 1 thru -2 of theSel & ":\"")
set selection to theSel
set item 2 of selRange to (item 2 of selRange) + 1
set selection to selRange
else if theSel contains "/" and character -2 of theSel is not "/" then
set theSel to (text 1 thru -2 of theSel & "/\"")
set selection to theSel
set item 2 of selRange to (item 2 of selRange) + 1
set selection to selRange
end if
end tell
end tell