• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Posix path and High Ascii Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posix path and High Ascii Characters


  • Subject: Re: Posix path and High Ascii Characters
  • From: John Delacour <email@hidden>
  • Date: Tue, 10 Sep 2002 20:28:13 +0100

[ encoded "UNICODE-2-0-UTF-7" ]

At 10:03 pm -0700 9/9/02, Christopher Nebel wrote:


2. None of these work when talking with Terminal, unfortunately :

set thePath to POSIX path of "U:Users:ac:Desktop:photos e'te'"
tell application "Terminal"
activate
do script "cd " & quoted form of thePath in window frontmost
end tell

Or
tell ...
do script ("echo " & quoted form of thePath) in window frontmost

Works fine for me, but it requires that the Terminal be set to
UTF-8. Did you change yours to MacRoman?

Chris,

Here is the result of dragging a file into a variable in the Terminal
(with window set to UTF-8.


[eremita:~] jd% set
FILE=/Users/jd/e+AscC3Q-te+AscC3QAA-
[eremita:~] jd% echo $FILE
/Users/jd/e+AscC3Q-te+AscC3QAA-
[eremita:~] jd% open $FILE
2002-09-10 20:03:15.835 open[2247]
No such file:
/Users/jd/e\\303te\\303


so $FILE is e<#255><#253>

or, in octal, e\173\171

I get a beep when I drag the file, as well I might!

Can you explain how this matches your claim that things are OK in 10.2?

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Posix path and High Ascii Characters (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: iCal is out, in your iDisk
  • Next by Date: Re: port error (targeting)
  • Previous by thread: Re: Posix path and High Ascii Characters
  • Next by thread: Re: Posix path and High Ascii Characters
  • Index(es):
    • Date
    • Thread