View Full Version : Modifying date of downloaded files
dtruett1
2007-03-06, 06:31 AM
In the release notes, it states, "Modified date of downloaded files can now reflect when it was downloaded, controlled by the OWDownloadsKeepOriginalDate preference, which defaults to false."
I would VERY much like to do this. Where can I set this? I tried OW Prefs-nothing there. I opened OmniWeb 5 Bookmarks.http with Text Edit and couldn't find it. I opened com.omnigroup.OmniWeb5.plist to no avail.
How can I set this? Thanks.
The reason you can't find it is probably because it hasn't been modified at all to create it. You probably need to enter in Terminal (the application):
defaults write com.omnigroup.OmniWeb5 OWDownloadsKeepOriginalDate -bool True
Forrest
2007-03-06, 01:10 PM
You need to quit OW before you do that. Then relaunch when done.
dtruett1
2007-03-06, 03:52 PM
I haven't gotten into Terminal yet, although despite that I'm fairly tech-literate. Just type it in at the prompt, exactly as in the post, including a space?
Of course I'll do a complete backup first. Thanks for the advice.
You need to quit OW before you do that. Then relaunch when done.
Personally, I would copy and paste - that way you won't introduce any typos (unless I've made them myself ;) ...btw, I have just copy/pasted the "OWDownloadsKeepOriginalDate" from your original post so I would double check that this is completely correct first).
So: 1. Check that entry is correct. 2. Copy/paste to a terminal window and press enter to perform the action. 3. Relaunch OmniWeb and test whether or not it is working.
troyb
2007-03-06, 05:59 PM
OWDownloadsKeepOriginalDate is correct as is the string above. Pasting it into a terminal window should do the trick.
Also, the file you're editing by doing this is here:
~/Library/Preferences/com.omnigroup.OmniWeb5.plist
dtruett1
2007-03-07, 05:27 AM
I'm backing up my boot drive now. Interesting that when I open that .plist I can't find the string, as the release notes state, "OWDownloadsKeepOriginalDate preference, which defaults to false" I would thus expect to find that string with false, but there is no such string. I'll try it tonight. Thanks.
OWDownloadsKeepOriginalDate is correct as is the string above. Pasting it into a terminal window should do the trick.
Also, the file you're editing by doing this is here:
~/Library/Preferences/com.omnigroup.OmniWeb5.plist
troyb
2007-03-07, 03:31 PM
The behavior defaults to False internally. You can override the setting by adding a true value to the preference file.
dtruett1
2007-03-07, 05:46 PM
I'm going to try it through Terminal tonight. When I open the ~/Library/Preferences/com.omnigroup.OmniWeb5.plist (where ~ is my user folder, and do a search for that text string, it isn't there. I just thought I would see the string and could substitute true for false. Wish me luck.
The behavior defaults to False internally. You can override the setting by adding a true value to the preference file.
dtruett1
2007-03-08, 06:34 AM
Went into Terminal and did the above. Restarted twice. Tried downloading a PDF this morning, and the modification date is two months ago. Sigh.
troyb
2007-03-08, 10:45 AM
With that preference set to true it should reflect that two month old date. If you were to change it to false (or leave it set at the default behavior) then it will reflect the downloaded date.
In other words, if you wanted the download date you shouldn't have to do anything. Or am I misunderstanding something?
zottel
2007-03-08, 03:54 PM
What do you mean by "restarted"? Did you type the above into the terminal and then restarted OW? OW must not be started _while_ you run defaults in the terminal.
dtruett1
2007-03-08, 08:11 PM
I guess I must not have been clear enough in my original post. What I want is for downloads to reflect the date they were downloaded, not the date that whoever created them last modified them. It sounds as though I should have done nothing at all.
In answer to the above question, no, I did not restart OW. I restarted the Mac after the Terminal session.
With that preference set to true it should reflect that two month old date. If you were to change it to false (or leave it set at the default behavior) then it will reflect the downloaded date.
In other words, if you wanted the download date you shouldn't have to do anything. Or am I misunderstanding something?
troyb
2007-03-09, 02:47 PM
I guess I must not have been clear enough in my original post. What I want is for downloads to reflect the date they were downloaded, not the date that whoever created them last modified them. It sounds as though I should have done nothing at all.
In answer to the above question, no, I did not restart OW. I restarted the Mac after the Terminal session.
Yeah, so you can restore the default setting by opening that terminal back up and running the same command but with a false instead of true statement:
defaults write com.omnigroup.OmniWeb5 OWDownloadsKeepOriginalDate -bool False
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.