• 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
ignoring hyphens and white space not working in text item delimiters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ignoring hyphens and white space not working in text item delimiters?


  • Subject: ignoring hyphens and white space not working in text item delimiters?
  • From: Detlef Schulz <email@hidden>
  • Date: Tue, 10 Jun 2008 16:41:52 +0200

Hello,

working with the text item delimmiters I appreciated that they respect considering and ignoring attributes, except for hyphens and white space:

set myText to "e-mail"
ignoring hyphens
set text item delimiters to "email"
set myText to every text item of myText
set text item delimiters to "E-Mail"
set myText to myText as text
end ignoring -- Result: "e-mail"

The result should be "E-Mail".
The same happens with ignoring white space.

Am I doing something wrong as case and diacriticals work perfectly?

set myText to "Liberté, Liberte"
ignoring diacriticals
set text item delimiters to "Liberté"
set myText to every text item of myText
set text item delimiters to "Freedom"
set myText to myText as text
end ignoring --Result: "Freedom, Freedom"


Detlef Schulz

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: ignoring hyphens and white space not working in text item delimiters?
      • From: deivy petrescu <email@hidden>
  • Prev by Date: Re: AppleScript to reflect status in dock icon
  • Next by Date: Re: AppleScript to reflect status in dock icon
  • Previous by thread: Re: AppleScript to reflect status in dock icon
  • Next by thread: Re: ignoring hyphens and white space not working in text item delimiters?
  • Index(es):
    • Date
    • Thread