MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: padding numbers in front of uniquely generatd names

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48305] Re: padding numbers in front of uniquely generatd names
  • From: Marcus Stollsteimer <marcus314 at yahoo.com>
  • Date: Sun, 23 May 2004 06:15:33 -0400 (EDT)
  • References: <c8muoj$a57$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Michel, Hans J.I. wrote:

> Sean:
> 
> You can try
> 
> SymbolName[Unique["plot0"]] <> ".jpg"
> 
> Please note that there is a lot of overhead using Unique. I would add the
> attribute of Unique["plot0", {Temporary}]
> 
> So
> Try
> SymbolName[Unique["plot0", {Temporary}]] <> ".jpg"

Hi,

I don't think this is doing what the OP needed:

In := f1:=SymbolName[Unique["plot0"]] <> ".jpg"
In := f1
Out:= plot01.jpg
      ...
      plot09.jpg
      plot010.jpg

the numbers are not padded.


the second doesn't seem to work at all  :-(

In := f2:=SymbolName[Unique["plot0", {Temporary}]] <> ".jpg"
In := f2
Out:= plot011.jpg
In := f2
Out:= plot011.jpg

Regards,
Marcus

-- 
Chaos in the midst of chaos isn't funny,
but chaos in the midst of order is. -- Steve Martin


  • Prev by Date: newbie problem in linux
  • Next by Date: Re: Fractal Geometry--> Levy Flights
  • Previous by thread: Re: padding numbers in front of uniquely generatd names
  • Next by thread: Re: padding numbers in front of uniquely generatd names