• 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: Help with find text command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with find text command


  • Subject: Re: Help with find text command
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 01 Aug 2007 17:01:02 -0700
  • Thread-topic: Help with find text command

No need for shell scripting or RegEx on this one, William, here's a pure
AppleScript solution that could get you started.



set OhMyWord to every word of myText
Set newNumbers to {}
repeat with thisWord in OhMyWord
    if the (count of thisWord) = 10 then
        try
            set thisWord to thisWord as integer
            --do routine to convert 10 digit number to 13 digit number
            Set the end of newNumbers to thirteenDigitNumber
        end try
    end if
end repeat
Return newNumbers
HTH,

ES
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Help with find text command
      • From: "Wallace, William" <email@hidden>
    • Re: Help with find text command
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Help with find text command
  • Next by Date: Re: Network volume considerations when working with files?
  • Previous by thread: Re: Help with find text command
  • Next by thread: Re: Help with find text command
  • Index(es):
    • Date
    • Thread