I have several thousand documents with the Tag “Score” (as in musical score).
Is there a way - a Smart Rule, perhaps - to export to a (simple text) file the locations (and paths) of each and every one of these scores either in DTP or the Finder, please?
There are over 4,000 tagged scores in my database distributed across several hundred Groups; I want to export the actual scores (all PDFs) in batches.
Select all the PDFs and use Menu Bar > File > Export > Files and Folders… for batch export.
PS. A very useful source of “ideas”, aside from the 300-page manual, is the menu bar command search, available in Menu Bar > Help > search field . Try searching export there.
I would suggest to @BLUEFROG that this command search be mentioned (and perhaps emphasized) in the manual. Even though it’s not a DT-only feature, it is super handy for an app with a lot of menu items. Not everyone knows they can search the menus.
You don’t need a smart rule as that’s generally intended for habitual, unattended operations.
Here is a code snippet you can use in Script Editor and run on a selection in DEVONthink, including selecting items in a smart group…
with timeout of 300 seconds
tell application id "DNtp"
if (selected records) is {} then return
set fileList to {}
repeat with theRecord in (selected records)
set theState to ""
if indexed of theRecord then set theState to " (indexed)"
copy ((get {location, filename} of theRecord & theState & linefeed) as string) to end of fileList
end repeat
create record with {name:"mksBelper Export", type:text, content:fileList as string} in incoming group
end tell
end timeout
The resulting plain text file will be in the Global Inbox.
Truth is, I’ve just bought forScore and want to import selected scores into it (from across many locations in DTP). Now I know much more exactly which to do that with.
(Ideally, being a DTP maximalist, I’d like to keep all my scores in the location which forScore uses, ~/Library/Containers/com.mgsdevelopment.forscore, and Index them in DTP there. Maybe not wise: that path appears to be an alias.)