FileName

Bryan
05/31/2006 07:00 am
I see in the FileCopies section of the project properties that you can have multiple copies saved as you like.

My question, if I'm downloading www.aserver.com/image1.gif, can I make the image1.gif become 2006053115_Image1.gif.

Basically a year, month, day, time prefix.

Thanks for a great product.
Bryan
Oleg Chernavin
05/31/2006 08:50 am
Well, you can do this only if you update the downloaded .gif file - its previous version will be renamed.

Best regards,
Oleg Chernavin
MP Staff
Bryan
05/31/2006 09:29 am
> Well, you can do this only if you update the downloaded .gif file - its previous version will be renamed.
>
> Best regards,
> Oleg Chernavin
> MP Staff

Oleg,
Thanks for your answer. This would be a valuable added option (for me anyway :)
If you ever get board and wonder what next... then maybe this could be added.

Thanks again.
Bryan
Oleg Chernavin
05/31/2006 09:54 am
You can use URL Substitutes for that.

Oleg.
Bryan
05/31/2006 08:49 pm
> You can use URL Substitutes for that.
>
> Oleg.

I'm not sure what you mean. Can you please explain or provide a reference?
Thanks!
Bryan
Oleg Chernavin
06/01/2006 02:24 am
For example, the following rule should work in Properties - Advanced - URL Substitutes:

URL:
image*.gif
Replace:
image
With:
{:0day}{:0month}{:year}-image

Oleg.
Bryan
06/01/2006 05:04 pm
> For example, the following rule should work in Properties - Advanced - URL Substitutes:
>
> URL:
> image*.gif
> Replace:
> image
> With:
> {:0day}{:0month}{:year}-image
>
> Oleg.

Oleg,
From my tests, URL substitutes only work by changing the url to download, not the filename of the downloaded file. For example, I want to rename the downloaded file "file1.gif" to 2006053112_Filename.gif

Is this possible?
Thanks!
Bryan
Oleg Chernavin
06/02/2006 05:42 am
You need to uncheck the rule. This means that only filenames will change, not the URLs that Offline Explorer downloads.

Oleg.
Bryan
06/03/2006 08:04 am
> You need to uncheck the rule. This means that only filenames will change, not the URLs that Offline Explorer downloads.
>
> Oleg.

I think I'm still bad at explaining what I'm trying to do:

The url and file name that I'm downloading will never change. I want the file that is downloaded to be changed (file name) after it is downloaded. From File1.gif to 2006060215_File.gif (this change will occur only after the download... basically a renaming procedure when the download is complete.

Thanks!
Bryan
Oleg Chernavin
06/03/2006 08:23 am
Yes, this is what I am talking about - uncheck the rule and it will work only after the original (unchanged) URL will be loaded - the file will be renamed.

Oleg.
Bryan
06/05/2006 09:17 pm
> Yes, this is what I am talking about - uncheck the rule and it will work only after the original (unchanged) URL will be loaded - the file will be renamed.
>
> Oleg

Oleg,

Thanks for your help. Your tip works great.

Is there any way to make the year 4 digits? 2006 instead of 06?

I'm using {:year} currently.

Regards,
Bryan
Oleg Chernavin
06/06/2006 02:05 am
Yes, use {:longyear}. You can read about all URL Macros in the Help file.

Oleg.
Bryan
06/19/2006 12:16 am
Hello Oleg,

Did this change with the release of 4.3.2421?

Because now no matter if I check or uncheck the rule in the URL substitutions, OE Pro tries to substitue the request and comes back with 404 Not Found.

Previously if I left the rule unchecked, it would only modify the downloaded file name (which is what I want).

Thanks!
Bryan



> > Yes, this is what I am talking about - uncheck the rule and it will work only after the original (unchanged) URL will be loaded - the file will be renamed.
> >
> > Oleg
>
> Oleg,
>
> Thanks for your help. Your tip works great.
>
> Is there any way to make the year 4 digits? 2006 instead of 06?
>
> I'm using {:year} currently.
>
> Regards,
> Bryan
Bryan
06/19/2006 12:21 am
Oleg,

Here are the details for the above post:

URL: http://www.srh.noaa.gov/ridge/Conus/RadarImg/centgrtlakes_radaronly.gif
Replace: centgrtlakes_radaronly.gif
With: US Cent Great Lakes/{:longyear}_{:0month)_{:0day}_{:0hour){:0minute)_Cent Great Lakes.gif

Basically forcing the new file name and into a new folder with date info in front of the file name....

I've added the rule and uncheck the checkbox.

Bryan
Oleg Chernavin
06/19/2006 01:20 pm
I think, this happens because the Web page on yor disk contains the changed filename - you have to redownload the site.

Oleg.
Bryan
06/19/2006 09:34 pm
> I think, this happens because the Web page on yor disk contains the changed filename - you have to redownload the site.
>
> Oleg.

Oleg, as far as I can tell, I'm doing what I previously did. I've copied my project and posted here. Can you see why it is not downloading and renaming the downloaded image?

Thanks!
Bryan

[Object]
OEVersion=Pro 4.3.0.2421
Type=0
IID=7032
Caption=Radar - US Cent Great Lakes
URL=http://www.srh.noaa.gov/ridge/Conus/RadarImg/centgrtlakes_radaronly.gif
Lev=1
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
CheckSize=True
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdftgz
FTUDef.Exts=jscssssivbsdtdxslswfclass
FTText.B=xoxooo
FTImages.B=ooxooo
FTVideo.B=xoxooo
FTAudio.B=xoxooo
FTArchive.B=xoxooo
FTUDef.B=xoxooo
FTOther.B=xoxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,0,3,0
RProt=127
LastStart=210:35:110:125:252:252:226:64:
LastEnd=42:68:114:125:252:252:226:64:
S400=1
SLast=404
LFiles=1
LSize=243
Substs=http://www.srh.noaa.gov/ridge/Conus/RadarImg/centgrtlakes_radaronly.gif centgrtlakes_radaronly.gif US_Cent_Great_Lakes/{:longyear}_{:0month)_{:0day}_{:0hour){:0minute)_CentGreatLakes.gif
ImgDim=0,0,0,0
PrevURL=http://www.srh.noaa.gov/ridge/Conus/RadarImg/US_Cent_Great_Lakes/2006_06_
Oleg Chernavin
06/20/2006 06:58 am
This is simple to fix - change all ) symbols in the rule to }:

US_Cent_Great_Lakes/{:longyear}_{:0month}_{:0day}_{:0hour}{:0minute}_CentGreatLakes.gif

Oleg.