Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Halp with number crunching program

Name: Anonymous 2006-11-21 20:12

I'm technically illiterate, but I've been wanting a program - that'd cycle through and open a parameter or filenames on a browser window - for a long time.
As in, "http://DSC00000.jpg ~ to ~ http://DSC00150.jpg";
The potential for this is of course vast. The key thing is that it'd have to understand that you wanna go from 0 to 150, and open those up, without manually editing the filepath myself.

How might I accomplish that, in your programing language of choice?

Name: Anonymous 2006-11-22 9:14

>>1
Why would you want that in a browser window? If you want to generate filenames, use Perl, Python, PHP, Ruby, or just about anything, then copy and paste. For example, this Python code generates filenames in the range you wanted:

for i in xrange(151):
    print 'http://DSC%05d.jpg'; % i

As for renaming files, I wrote a regular expression renamer in Perl which supports evaluation, so it does what you want, although you might not like the syntax in which you have to specify what to do. Do you want me to post it?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List