Re: getting the date
Re: getting the date
- Subject: Re: getting the date
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 30 Dec 2003 12:48:29 -0800
At 12:36p -0500 12/30/2003, Graff didst inscribe upon an electronic papyrus:
on ZeroPad(theNumber)
set theString to ""
if theNumber is less than 10 then set theString to "0"
set theString to theString & theNumber
return theString
end ZeroPad
You could shorten that to:
on ZeroPad(theNumber)
set theString to ""
if theNumber is less than 10 then set theString to "0"
theString & theNumber
end ZeroPad
The last result is always returned.
-boo
_______________________________________________
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.