• 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: adding spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding spaces


  • Subject: Re: adding spaces
  • From: Tim Mansour <email@hidden>
  • Date: Tue, 26 Aug 2003 17:12:34 +1000

I need to take a piece of data and ensure it is a
specific character length. If the number of charaters
are less than those required then I need to fill the
rest with spaces

Actually, you don't need any kind of repeat. Assuming you want the spaces at the end, all you need is:

set headText to text 1 thru 20 of (headText & " ")

... and put (at least) 20 spaces between the quotes.

--
Tim Mansour <email@hidden>
_______________________________________________
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.

  • Prev by Date: Re: adding spaces
  • Next by Date: Re: adding spaces
  • Previous by thread: Re: adding spaces
  • Next by thread: Re: adding spaces
  • Index(es):
    • Date
    • Thread