• 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: Martin Fuhrer <email@hidden>
  • Date: Mon, 10 Oct 2005 00:41:49 -0600

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?

Martin

P.S. Emmanuel - I'm running OS X 10.4.2.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Coercing alias with foreign characters to Unicode text
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Coercing alias with foreign characters to Unicode text (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: recursion depth
  • Next by Date: Re: Coercing alias with foreign characters to Unicode text
  • Previous by thread: Re: Coercing alias with foreign characters to Unicode text
  • Next by thread: Re: Coercing alias with foreign characters to Unicode text
  • Index(es):
    • Date
    • Thread