Audio Metadata Scripting Help!

Hi

Never written a script in DOpus before so I'm a bit lost and could use some guidance.

I want to write a script that does this:

For each selected file in the active lister (ideally with folder recursion)

  get the albumartist metadata entry

  if albumartist  = empty
        get the artistname metadata entry

        if artistname != empty
              set the artistname metadata entry to artistname metadata entry

I had a go at modifying this example:
gpsoft.com.au/help/opus11/i ... erface.htm

But can't seem to make it do anything.

I also checking it was even getting the albumartist name and putting it into a dialog as a test, but can't even get a dialog to show up when I select a file and click the button I have the script under.

Any code examples would be most welcome!

The reason I want to do this is because iTunes Music on the iPhone no longer lists compilation artists under the artists filter unless the album artist name is filled in, but I have thousands of music files that I think were pre-albumartist metadata so are all empty. Clearly I don't want to hand edit all of these and DOpus scripting would be perfect for this.

Cheers
Matt

Dang it, copy paste error on my pseudo code, meant to type this:

For each selected file in the active lister (ideally with folder recursion)

get the albumartist metadata entry

if albumartist = empty
      get the artistname metadata entry

      if artistname != empty
            set the albumartist metadata entry to artistname metadata entry

FFS, how do you edit a post on this board?

You need to link your account to edit posts.

Got it, thanks, and the original question? :slight_smile:

What's the code you have so far?

I was trying to modify an example script I saw, but I can't find it now, and I threw my code away because it simply didn't work!