INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Add user tag data when importing -- how?  (Read 1467 times)

Mike48

  • World Citizen
  • ***
  • Posts: 214
Add user tag data when importing -- how?
« on: September 17, 2014, 02:45:52 am »

I want to insert a calculated value into a (user-added) library field (tag) when material is imported.

Specifically, into the ImportWeek tag, I want to insert the computed value

=formatdate([date imported,0],%Y%W)

Is there a way to automate this?

Thanks!
Mike
Logged

connersw

  • Citizen of the Universe
  • *****
  • Posts: 661
Re: Add user tag data when importing -- how?
« Reply #1 on: September 17, 2014, 07:36:30 am »

Perhaps I'm misunderstanding and over simplifying, but you just need to make your newly created Field based on Calculated data. 

Tools -> Options -> Library & Folders -> Manage Library Fields -> Add New Field. 

Under data, choose the Calculated data radio button and paste your expression into the box. -> OK
Logged

Mike48

  • World Citizen
  • ***
  • Posts: 214
Re: Add user tag data when importing -- how?
« Reply #2 on: September 17, 2014, 04:45:21 pm »

Thanks, Connor, that would work *except* I want the new tag data stored in the music file, and (at least with MC 19, which I'm using until 20 is a month or two older), that can't be done with calculated values.

I want to store it with the file so programs other than MC can access it.

I seem to remember some way to do this when importing, but I could not find it.

Mike
Logged

connersw

  • Citizen of the Universe
  • *****
  • Posts: 661
Re: Add user tag data when importing -- how?
« Reply #3 on: September 17, 2014, 05:39:48 pm »

I'm not so sure about that if you have Tools -> Options -> General -> Importing & Tagging -> Update tags when file info changes checked.  I have never tested it though.  I think the bigger issue is that you are creating a user-defined Field, and most other programs are not going to recognize that Field.

If you want to do it on Import, you could do Tools -> Options -> Configure auto-import.  Select the Folder (or Folders) that you are watching and click Edit.  Next to the Apply these tags box, select Add -> Custom.  Choose the Import Week Field that you created from the drop down, and then paste your expression into the Value box.  Like I wrote though, I'm still not sure that this will solve your problem if other programs cannot locate that custom Field.
Logged

Mike48

  • World Citizen
  • ***
  • Posts: 214
Re: Add user tag data when importing -- how?
« Reply #4 on: September 17, 2014, 10:40:17 pm »

Ah, thanks!  Clicking on the folder was the step I never thought of.
Logged
Pages: [1]   Go Up