• 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: Coercing alias with foreign characters to Unicode text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Mon, 10 Oct 2005 00:01:04 -0700
  • Thread-topic: Coercing alias with foreign characters to Unicode text

Title: Re: Coercing alias with foreign characters to Unicode text
On 10/9/05 11:41 PM, "Martin Fuhrer" <email@hidden> wrote:

Thanks for the suggestions, everyone.  They work well for me.  Hopefully Unicode support in Applescript can be straightened out soon so we won't have to deal with messy workarounds.

As a side-note, it is interesting that coercing the Unicode text path back to an alias is finicky as well, if the path contains one of the problematic foreign characters.


  set myAlias to (choose file)
  tell application "Finder"
    set myPath to (file myAlias) as Unicode text
  end tell

set newAlias to myPath as alias

produces an Applescript error: Can't make "eˇsˇcˇrˇzˇ.jpg" into type alias.  But the following line works:

set newAlias to alias myPath

I've always used the former style to create aliases, and I thought the latter style was equivalent to the former. Perhaps this is not the case?


in some version of AS – somewhere between AS 1.5 and 1.8.3 (OS 9 to 10.1) - 'alias myPath' had serious problems so people got into the habit of using 'myPath as alias', which worked fine. This was during the same period that the text path for alias appeared always in Geneva 12 pt (apparently to represent Unicode, or something), anyway, somewhere around AS 1.9 (OS 10.2) 'alias myPath' got fixed. apparently, in AS 1.10 (OS 10.4) it's the only one that works properly with these diacritics, so we'd better choose that version for now (until the next bug appears).

--
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

References: 
 >Re: Coercing alias with foreign characters to Unicode text (From: Martin Fuhrer <email@hidden>)

  • Prev by Date: Re: Coercing alias with foreign characters to Unicode text
  • Next by Date: User Agent name of "URL Access Scripting"
  • Previous by thread: Re: Coercing alias with foreign characters to Unicode text
  • Next by thread: recursion depth
  • Index(es):
    • Date
    • Thread