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

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


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


On Jun 10, 2008, at 10:41, Detlef Schulz wrote:

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".

No, it should not!
"set myText to every text item of myText" sets myText to have only one item, thus it will not use the TID.
Start your myText as "e-mail email url" and run your script.
It will result in ---> "e-mail E-Mail url" as expected.

Thanks, but that makes no difference:

set myText to "e-mail email url"
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 E-Mail url"

Of course the second occurence will be exchanged as it is a perfect match but what about the first (e-mail)?

As hyphens should be ignored I would expect that its a match as in a text comparison:

ignoring hyphens
"e-mail" = "email" -- Result: true
end ignoring


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: Rep: ignoring hyphens and white space not working in text item delimiters?
      • From: deivy petrescu <email@hidden>
References: 
 >Re: ignoring hyphens and white space not working in text item delimiters? (From: KOENIG Yvan <email@hidden>)
 >Rep: ignoring hyphens and white space not working in text item delimiters? (From: KOENIG Yvan <email@hidden>)
 >Re: Rep: ignoring hyphens and white space not working in text item delimiters? (From: deivy petrescu <email@hidden>)

  • Prev by Date: Re: Rep: ignoring hyphens and white space not working in text item delimiters?
  • Next by Date: Re: Rep: ignoring hyphens and white space not working in text item delimiters?
  • Previous by thread: Re: Rep: ignoring hyphens and white space not working in text item delimiters?
  • Next by thread: Re: Rep: ignoring hyphens and white space not working in text item delimiters?
  • Index(es):
    • Date
    • Thread