Need a script to change the date in the "added" field

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Need a script to change the date in the "added" field

Re: Need a script to change the date in the "added" field

Post by ZvezdanD » Thu Sep 29, 2011 10:58 am

You could use the RegExp Find & Replace add-on and its "Assign date/time when file is created to Timestamp field" preset, just select Added in the Into combo box instead of Timestamp. However, keep in mind that sometimes the date when a file is created could be newer then the date when it is modified. For example, if you copy a file after its modification, a copied version would have newer the date created.

Re: Need a script to change the date in the "added" field

Post by freshair » Sun Sep 25, 2011 11:09 pm

Thanks! This will get me 95% the way to my goal (the other 5% contained Timestamps from edits).

The one thing I didn't know (and you clarified) is what attributes were in play. Ergo, if Timestamps are pulling from the original file property "Modified" date, I wanted to make sure I wasn't overlooking somewhere in MM a field that held the "created" date.

Re: Need a script to change the date in the "added" field

Post by nohitter151 » Sun Sep 25, 2011 10:58 pm

freshair wrote:
Eyal wrote:Try this: viewtopic.php?f=4&t=51079


OK, that works if I'm trying to replace one MM "field" with the data from another MM "field". But I've realized that I don't want to use the Timestamp field because if I ever changed file properties (like changing the type of genre), Timestamp reflects the files last modified date.

I need a script/tool that can replace the "added" field with a file system property I don't see tracked by MM, "created" date.

I'm only half-geek and I don't see anything here. Am I missing something?

Scripts don't have access to any file properties that are not accessible in MM. Anyway if you copy Timestamp to Added, it is only copied one time. If the timestamp is changed after you run the script the first time, the Added field would not also update.

Re: Need a script to change the date in the "added" field

Post by freshair » Sun Sep 25, 2011 10:54 pm

Eyal wrote:Try this: viewtopic.php?f=4&t=51079


OK, that works if I'm trying to replace one MM "field" with the data from another MM "field". But I've realized that I don't want to use the Timestamp field because if I ever changed file properties (like changing the type of genre), Timestamp reflects the files last modified date.

I need a script/tool that can replace the "added" field with a file system property I don't see tracked by MM, "created" date.

I'm only half-geek and I don't see anything here. Am I missing something?

Re: Need a script to change the date in the "added" field

Post by Eyal » Sun Sep 25, 2011 9:32 pm

Need a script to change the date in the "added" field

Post by freshair » Sun Sep 25, 2011 8:45 pm

I just rebuilt my MM library from backups after my hard drive crashed. Sadly, every date in the "Added" field for each file was reset to today's date.

Does anyone have a script that will modify the MM date used in the "added" field in my library to the "date created" field in the properties for each audio file?

Top