Thanks in advance for the help. I’ve searched the forums but I’m afraid my level of scripting knowledge is just not always up to what I’m seeing and would be grateful for more specific advice.
I’m trying to import and organize large PDFs of archival images (handwritten, so can’t extract useful info via OCR). Each PDF filename begins with a number string followed by an underscore—say, “123456_Records of… .” On import to the Global Inbox, I want DT to 1) move these items to my Sources database and 2) move them to a Group according to their numeric prefix in the file name (which is a unique ID for the archival series from which they came) AND if the group doesn’t exist, to create a group and then move the file. I imagine that the Group names will be only these numbers, since the rest of the file name will vary. Ideally, for the filename example above, it would end up in a Group named “123456” and any subsequent files beginning with “123456” would also end up in that group. These numeric prefixes are not always the same length, but in the file name, they will always be followed by an underscore and a string of characters (and then maybe more numbers). I tried to get chatGPT to write an Applescript but it didn’t seem to work…and I couldn’t understand enough of it to use it as a template with some edits. I imagine that because of the “create Group” action, this needs to be scripted, but perhaps it’s simple enough that it’s something that could be done in a Smart Rule with placeholders?