Re: adding spaces
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>) |