Re: Unicode text and paths
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