Delete custom metadata fields

Would these scripts presumably still work with Big Sur? I don’t know code and was wondering if @pete31 (or someone) could perhaps walk me through these steps due to a hangup I’m experiencing. My workflow:

  1. Installed “List and Record Tools” per developer’s instructions
  2. Open a new AppleScript window. So as not to confuse the first script from the second, I named the first one Part-1 before I pasted-in Pete’s first script. Running it gives me this:

Encouraging! So let’s say I now choose/select “mdoclc” (third from bottom in my list) because I know for certain I have roughly 10 records in my entire database in which I assigned, manually, some alphanumeric (single-line) text in this custom metadata field. I then click OK. But now what? (I have been able to ascertain, by clicking OK, I get mdoclc and nothing more/less in my clipboard. Is that all the first script is supposed to do?)

The problem I’m having, is what I’m supposed to do next. i.e. I don’t understand what this means:

Identifiers are not deduplicated as this can be done in a text editor, e.g. BBEdit Text > Process Duplicate Lines.

Perhaps normal behavior; when I paste your second script into a new AppleScript window and click the little hammer icon, I get an error:

My goal is just to see all instances of my custom metadata field called OCLC before I vaporize it once and for all. I presume your second script is supposed to get me there, but I can’t determine what I’m doing wrong. Any guidance would be great. Thanks!

1 Like