Problem: Use ‘do script cd’ in Terminal to change to a folder containing non-ASCII characters.
Assume I have a folder called “Księga Chmur”, and assume I choose it when prompted. (The character is block e with ogonek, <0x0119>.) This illustrates the issue:
set a to choose folder
do shell script "cd" & space & quoted form of POSIX path of a & "; pwd"
tell application "Terminal"
do script "cd " & quoted form of POSIX path of a
end tell
Do shell script works (so it’s not a ‘POSIX path of’ problem); do script in Terminal doesn’t. Do shell uses sh; Terminal uses tcsh, but the window settings are according to http://docs.info.apple.com/article.html?artnum=152409. I can drag-and-drop in Terminal, and it works; I can copy-and-paste, and it works; but using the clipboard in AppleScript doesn’t.
Is there something I’m missing, or is it yet another of those issues which have been fixed in Tiger?
Thanks.
AppleScript: 1.9.3
Browser: Safari 312.3
Operating System: Mac OS X (10.3.9)