Re: Problem with text items and german umlauts
Re: Problem with text items and german umlauts
- Subject: Re: Problem with text items and german umlauts
- From: kai <email@hidden>
- Date: Tue, 04 Nov 2003 00:32:16 +0000
on Mon, 03 Nov 2003 20:28:59 +0100, Daniel Blanken wrote:
>
A very simple problem, but I just can't find the solution to it...
>
>
I've got a script that gets a file's name and is supposed to replace the
>
german umlauts with their 7-Bit ASCII counterparts ("D" is replaced with
>
"Ae", for example).
>
>
My Problem: When splitting the original file name into single characters the
>
script sorta "splits" the umlauts themselves. If the file name itself is a
>
single d for example, the command "every character of name of (info for..."
>
returns {"a","("} instead of {"d"}. Any ideas on how to make it return the
>
{"d"}?
You might try coercing the name to plain text, Daniel:
--=============================
set f to alias "path:to:file"
set {text:t} to (info for f)'s name as text
t's characters
--=============================
(Depending on what you're doing, you may need to coerce your eventual
results back to Unicode text.)
---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.