Jump to content
Macro Express Forums

Rename And Save Ie Images


KeyBored

Recommended Posts

Hi All,

 

I noticed that some websites containing images use the same filename for all images. For example, instead of different filenames such as image1.jpg, image2.jpg, etc., the website names all of their images with the same filename, such as "untitled.bmp". It's tedious to manually change the filename every time I want to save another image.

 

The macro would work as follows: I right-click on an image and choose "Save Picture As...". The dialogue box appears "Save Picture". The macro would detect identical filenames already saved and automatically assign a new name before saving the image.

 

Thanx,

KeyBored

Link to comment
Share on other sites

And your question is..... :huh:

 

Assuming if you are asking if this can be done it can. I have a subroutine that takes a file name and path and check to see if it's unique. If it isn't it adds a number on the end until the file name is unique. Pretty simple.

Link to comment
Share on other sites

And your question is..... :huh:

 

Assuming if you are asking if this can be done it can. I have a subroutine that takes a file name and path and check to see if it's unique. If it isn't it adds a number on the end until the file name is unique. Pretty simple.

Cory:

 

Please provide the script for your subroutine.

 

Regards,

KeyBored

Link to comment
Share on other sites

OK, now try my link. In the beginning I had a more lengthy way of generating the padded number then I thougth of a quick and dirty means that worked a lot better. Enjoy!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...