Renaming images to the part numbers of the products that is in the URL

Author Message
James 02/17/2012 12:25 pm
I am downloading a site with the product images are all names are like this one (example)

ibcgetattachment_jsp@citemid=gbx6xov7pr8hxxncykya8g&label=ibe&appname=ibe&sitex=10251_3a22372_3aus&lcr123p=uo6uniusbnwak4gjowt0b13ca1557.jpg

ibcgetattachment.jsp@citemid=ywzyxfj9k3jh.atm1pcggq&label=ibe&appname=ibe&sitex=10251_3a22372_3aus&lcr123p=37kpvqg3od5yc8dqktj0558591069.jpg

ibcgetattachment.jsp@citemid=polj8ybneyudcwwqmkzdfw&lcr123p_pses=zga61968e2c4c98e38e22e1510eea4ca667a573fba65c20dddfcf6ffa14e97bc0bf6259752952850b24b390b5041bc2fea58cf7d2e539758c5.jpg

Is there a way I can replace it with a part number that is in the url http://www.example.com/OA_HTML/ProductDetail.jsp?partnumber= 8895-w &section=37740&minisite=10251

I want to rename it to 8895-w.jpg

Please explain in detail that how I can accomplish this.

Thank you in advance
James
Oleg Chernavin 02/18/2012 12:39 pm
James,

There is a way to change URLs and filenames with the Properties - Parsing - URL Substitutes feature. However it cannot use the referring page URL parts for that. If the image URL would contain the part ID, it would be possible to do.

Sorry!

Best regards,
Oleg Chernavin
MP Staff
James 02/21/2012 07:00 pm
Hi Oleg,
Ok as you can see the image name is so long and wired. is there a way to simplify the image name to be shorter.

can you please explain in detail what I need to do in URL Substitutes feature. because I am trying it and I can't get it to work...

Thanks


Oleg Chernavin 02/22/2012 07:23 am
I would offer to shorten:
ibcgetattachment.jsp@citemid=polj8ybneyudcwwqmkzdfw&lcr123p_pses=zga61968e2c4c98e38e22e1510eea4ca667a573fba65c20dddfcf6ffa14e97bc0bf6259752952850b24b390b5041bc2fea58cf7d2e539758c5.jpg
to:
ibcgetattachment.jsp@citemid=polj8ybneyudcwwqmkzdfw.jpg

Если это поможет, то нужно правило:

URL:
ibcgetattachment.jsp*.jpg
Replace:
&lcr123p*.jpg
With:
.jpg
Apply to:
Filenames

Oleg.