Re: Text - change case [Erratum 2]
Re: Text - change case [Erratum 2]
- Subject: Re: Text - change case [Erratum 2]
- From: Mr Tea <email@hidden>
- Date: Thu, 19 May 2005 17:56:10 +0100
Title: Re: Text - change case [Erratum 2]
Variables in the script I posted would have argued with the OP’s variables. Here’s a slightly revised version with the problem variables changed accordingly.
set w to "USE THIS VERSION INSTEAD"
set returnString to ""
set lc to "abcdefghijklmnopqrstuvwxyz"
set counter to 0
set xWords to every word of w
repeat with aWord in xWords
set counter to counter + 1
set xWordLetters to every text item of aWord
set tempword to {text item 1 of aWord}
repeat with i from 2 to count xWordLetters
set pos to offset of (get item i of xWordLetters) in lc
set posRes to text item pos of lc
copy posRes to end of tempword
end repeat
if counter = 1 then
set returnString to returnString & tempword
else
set returnString to returnString & space & tempword
end if
end repeat
returnString --> "Use This Version Instead"
Nick
pp Mr Tea
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden