Re: 1 to 001 & the duplicate command
Re: 1 to 001 & the duplicate command
- Subject: Re: 1 to 001 & the duplicate command
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 30 May 2002 22:52:49 -0700
On 5/30/02 9:34 PM, "Bill Hoffman" <email@hidden> wrote:
>
On Thursday, May 30, 2002, at 02:06 PM, Stephen Swift wrote:
>
>
> I was just curious if there
>
> is a coercion which allows a number to have leading zeros (by default
>
> AppleScript changes 001 to 1).
>
>
>
>
set num to 1
>
set formattedNum to text -3 thru end of ("000" & num)
>
And this works just as well:
set formattedNum to text -3 thru end of ("00" & num)
--
Paul Berkowitz
_______________________________________________
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.