• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text - change case [Erratum 2]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Text - change case (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Text - change case [Erratum]
  • Next by Date: printing to a file through applescript
  • Previous by thread: Re: Text - change case [Erratum]
  • Next by thread: Re: Text - change case
  • Index(es):
    • Date
    • Thread