• 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
Reformatting a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reformatting a string


  • Subject: Reformatting a string
  • From: Angelo <email@hidden>
  • Date: Fri, 27 Jan 2012 12:07:24 -0600
  • Thread-topic: Reformatting a string

Title: Reformatting a string
I need to take a long string string of letters numbers and colons and convert it to uppercase letters w/ no colons.    
a2:fh:2f:vv:i1:q1   needs to be  A2FH2FVVI1Q1.  (the string is normally longer that this example)

I currently slap it into a new Mail document and “Transform” to uppercase and then “Find” the colons and replace with nothing.   That works OK,
but I know it’s archaic and one of you guys could craft a script in a few minutes that would take me a few hours to create.  I was thinking along the lines of a dialog box where I pasted the raw string and it produced a message box with the reformatted version, but anything would be helpful.   Is it possible to copy the string and then do the reformatting to the contents of the Clipboard so that I can just copy -> run script -> paste where it needs to go?

Thanks!
Angelo


 _______________________________________________
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: Reformatting a string
      • From: Luther Fuller <email@hidden>
    • Re: Reformatting a string
      • From: Luther Fuller <email@hidden>
    • Re: Reformatting a string
      • From: Michelle Steiner <email@hidden>
    • Re: Reformatting a string
      • From: KOENIG Yvan <email@hidden>
    • Re: Reformatting a string
      • From: Stan Cleveland <email@hidden>
    • Re: Reformatting a string
      • From: KOENIG Yvan <email@hidden>
    • Re: Reformatting a string
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: How to copy the icon of a selected item
  • Next by Date: Re: Escaping Apostrophes
  • Previous by thread: Re: Escaping Apostrophes
  • Next by thread: Re: Reformatting a string
  • Index(es):
    • Date
    • Thread