• 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: Problem with text items and german umlauts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Select some item of...
  • Next by Date: Re: Select some item of...
  • Previous by thread: Re: Problem with text items and german umlauts
  • Next by thread: Re: Problem with text items and german umlauts
  • Index(es):
    • Date
    • Thread