I’m running into this problem where I ask the Chat LLM (ChatGPT) in this example to create a specific spreadsheet type (.csv) but I’ve also tried .tsvs too.
The file is correctly formatted – common or tab separated content - but the file is appended with a .txt extension in addition to the .csv.
- Heartbeat (AI).tsv.txt
- AI Features (AI).tsv.txt
- Audit (AI).tsv.txt
- Staging (AI).tsv.txt
I can fix it by moving the file outside of DV and changing the extension but it’s a manual process.
Is there something I can do to fix this (DV setting)?
I know LLM AI can be finicky but because it’s outputting the files in the correct structure I’m thinking it could be DT4 is adding on the file.
Any help would be greatly appreciated.
Related - How can I create a smart rule to change the extension of files in DT4?
I see I can filter for specific extensions but there are no pre-built rule to change the extension.
I would imagine there is an AppleScript I could use for this but as I”m not a coder I’ve haven’t had much success having AI write something this simple.
And when I write I get what are trivial errors.
Again any help would be appreciated.
What is your prompt?
I just ran a simple query with Claude Sonnet, specifically asking for a sheet…
Please send the file ~/Library/Application Support/DEVONthink/Chat.log to cgrunenberg - at - devon-technologies.com so that we can check whether it’s an issue of the app or of the AI’s response. Thanks!
Only the extension of plain text documents can be changed, e.g. by using a script and the name without extension property:
property pOldExtension : ".txt"
property pNewExtension : ".md"
tell application id "DNtp"
repeat with theRecord in selected records
if filename of theRecord ends with pOldExtension then set name of theRecord to (name without extension of theRecord) & pNewExtension
end repeat
end tell```