Re: Coercing alias with foreign characters to Unicode text
Re: Coercing alias with foreign characters to Unicode text
- Subject: Re: Coercing alias with foreign characters to Unicode text
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 09 Oct 2005 10:38:11 -0700
- Thread-topic: Coercing alias with foreign characters to Unicode text
On 10/9/05 9:58 AM, "Nigel Garvey" <email@hidden>
wrote:
> I see from the Web archive that Paul B. has suggested using the Finder to
> get the name of the file and concatenating that to a Unicode coercion of
> the container folder. Fooling around with that a bit more, its seems that
> the Finder can do the entire coercion via one of its references
>
> set myAlias to (choose file)
> tell application "Finder"
> set myPath to (file myAlias) as Unicode text
> end tell
Yack. That's the one coercion (it's a sort of double-coercion since file
alias someThing must first coerce the alias) I didn't try. I tried 'myAlias
as file' and that errored.
>
> display dialog myPath
>
> The effect in Tiger is as Paul describes: the letters alternate with the
> carons in Script Editor's result window, but display correct with
> 'display dialog'. In Jaguar, it's the other way round!
Jeez. Why can't they get this stuff right...
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden