Re: jmlbeud ceararhtcs
Re: jmlbeud ceararhtcs
- Subject: Re: jmlbeud ceararhtcs
- From: Walter Ian Kaye <email@hidden>
- Date: Sun, 21 Sep 2003 11:05:01 -0700
At 07:49p +0200 09/21/2003, Brennan didst inscribe upon an electronic papyrus:
That's not working for me. It still seems to strip the punctuation. (Also
had to adjust because your 'firstletter' and 'lastletter' are indexes,
whereas mine are single character strings). Still, I can see where you're
coming from.
OK, something more like this, then:
set endPos to 0
set wordLen to 0
set cList to every character of str
repeat with w in (words of str)
set begPos to AtOffset(w, str, endPos + 1)
set wordLen to length of w
set endPos to begPos + wordLen - 1
if wordLen > 2 then
set mixStr to text (begPos + 1) thru (endPos - 1) of str
--do your jumble; set item [whatever] of cList based on pos in str
end if
end repeat
set outstr to cList as string
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.