• 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: Finder string oddity solved?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder string oddity solved?


  • Subject: Re: Finder string oddity solved?
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Fri, 27 Dec 2002 20:24:01 -0600

text items of foo_name
--> {"", "", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ",
"R", "e", "t", "r", "e", "a", "t"}

The first text item is replaced by two null characters.

But
set foo_name to "Advance and Retreat"
text items of foo_name
--> {"A", "d", "v", "a", "n", "c", "e", " ", "a", "n", "d", " ", "R",
"e", "t", "r", "e", "a", "t"}

More research on my part shows that it is wholly NOT a good idea to use text items with Unicode text when the text item delimiter is an empty string ( "" ). Also, by suggestion from Chris Nebel on another issue, using "characters of" rather than "text items of" works correctly.


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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: Finder Oddity
  • Next by Date: Re: Need help with script
  • Previous by thread: Re: Finder Oddity
  • Next by thread: BUG: Store script Perversity
  • Index(es):
    • Date
    • Thread