I need to replace some text,
1. I don't know what is that text.
2. I know the position of the text,
3. I don't want to change any text other than that text
eg: This is an sample text splitted with tab 10 100 10 tab
seperated line with tab (not space)
I need to replace word with position 6 ("tab") with "my name"
But i don't want to change the second word "tab"
Can we replace text with position
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Can we replace text with position
Eg: This is____an_______sample________text_______splitted with_______tab______10______100_______10_______tab
Re: Can we replace text with position
Namaste samjith,
the magic word is "itemdelimiter"
Then it is a simple as this:
...
set itemdel to TAB
put "your name" into item 6 of tText
...
Best
Klaus
the magic word is "itemdelimiter"

Then it is a simple as this:
...
set itemdel to TAB
put "your name" into item 6 of tText
...
Best
Klaus
Re: Can we replace text with position
Namaste Kiaus,
Thanks for this code,
put "your name" into item 6 of tText, that is what i want
Thanks for this code,
put "your name" into item 6 of tText, that is what i want

Re: Can we replace text with position
Yes, I know what is good for you!samjith wrote:put "your name" into item 6 of tText, that is what i want
