Script for tagging email addresses
Web Admin Himalayan Academy
katir at hindu.org
Sat Mar 27 16:58:01 EDT 2010
Aloha, Jim:
Brilliant, thank you.
Yes, Andre is right, one wants definitely wants href values otherwise it
can bite you later.
repeat for each line LNN in emailAddrList
put format ("<a href=\"& LNN &\"">" & LNN & "</a>") into LNNLinked
replace LNN with LNNLinked in masterList
works...
IOn 3/26/10 7:57 PM, Jim Ault wrote:
> ------- start code --------
> -- assumes a masterList variable set to all lines
> -- 1000 email addresses takes about 6 seconds on an older Mac
>
> put masterList into emailLinesOnly
> filter emailLinesOnly with "*@*"
> set the itemDel to ":"
>
> repeat for each line LNN in emailLinesOnly
> put word 1 to -1 of item 2 of LNN & tab & 0 & cr after newLines
> -- the 0 is a placeholder
> end repeat
> filter newLines without empty
> split newLines using cr and tab
> --dups have now been removed
> --sequence does not matter
> put the keys of newLines into emailAddrList
> filter emailAddrList without empty
> set the itemdel to tab
> repeat for each line LNN in emailAddrList
> replace LNN with ("<a href=" & LNN & ">" & LNN & "</a>") in
> masterList
> --handles duplicate email addresses in one replace step
> end repeat
>
> put masterList into msg
>
> ------- end code --------
>
> Jim Ault
> Las Vegas
More information about the use-livecode
mailing list