• 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: Unicode text and paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode text and paths


  • Subject: Re: Unicode text and paths
  • From: has <email@hidden>
  • Date: Thu, 2 Jun 2005 18:20:24 +0100

jj wrote:

>try
>    (someDir as text) & "file"
>    --> error if path contains Unicode characters (eg, japanese)
>on error [...]
>
>So, does it exist a smart workaround for this simple task?

Umm, any reason you're not just using:

    someDir as Unicode text & "file"

Also, if you're going to munge path strings, use POSIX paths, not HFS paths. (HFS paths aren't guaranteed to be unique.) Example:

    set someDir to choose folder
    set someFile to ((POSIX path of someDir) & "file") as POSIX file

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
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: Unicode text and paths
      • From: jj <email@hidden>
  • Prev by Date: Tiger and "open for access" ... changes?
  • Next by Date: RE: EPS to JPEG
  • Previous by thread: Tiger and "open for access" ... changes?
  • Next by thread: Re: Unicode text and paths
  • Index(es):
    • Date
    • Thread