Re: Rep: ignoring hyphens and white space not working in text item delimiters?
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: deivy petrescu <email@hidden>
- Date: Tue, 10 Jun 2008 11:53:28 -0400
On Jun 10, 2008, at 11:32, KOENIG Yvan wrote:
If I understood him correctly, the OP was hoping that given the
ignoring instruction, its script would replace e-mail by email.
Yvan KOENIG (from FRANCE mardi 10 juin 2008 17:30:00)
Oops, I made typos.
I wanted to type:
its script would replace e-mail by E-Mail.
Yvan KOENIG (from FRANCE mardi 10 juin 2008 17:32:51)
You are right, he was. But the way the script was written it would
never happen.
Either he changes:
ignoring hyphens
set text item delimiters to "email"
to ignoring hyphens
set text item delimiters to "e-mail"
Or, he changes or add "e-mail" to his original myText declaration.
Try the following
set myText to "Yvan"
set AppleScript's text item delimiters to "KOENIG"
set myText to every text item of myText
set text item delimiters to "K"
set myText to myText as text
-->"Yvan"
myText has only one text item so TID does not do anything
Deivy
_______________________________________________
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