• 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: 1 to 001 & the duplicate command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: 1 to 001 & the duplicate command (From: Bill Hoffman <email@hidden>)

  • Prev by Date: Re: 1 to 001 & the duplicate command
  • Next by Date: Re: Write a prefs file
  • Previous by thread: Re: 1 to 001 & the duplicate command
  • Next by thread: Re: 1 to 001 & the duplicate command
  • Index(es):
    • Date
    • Thread