• 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: Dave Balderstone <email@hidden>
  • Date: Mon, 25 Aug 2003 22:59:53 -0600

On Monday, August 25, 2003, at 09:15 PM, Natalie Lambert wrote:

I know this is going to need a repeat function but I'm
a little unclear on the adding spaces bit since I
haven't scripted in a while.

set heading to "cars"
set x to count characters of heading
--> 4
set the_diff to 20 - x
--> 16
if the_diff is greater than 0 then
repeat with i from 1 to the_diff
set heading to heading & " "
end repeat
else
-- deal with heading longer than 20 if necc
end if
set final_count to count characters of heading
--> 20

djb
_______________________________________________
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.

References: 
 >adding spaces (From: Natalie Lambert <email@hidden>)

  • 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