Skip to main content

Baty.net

A blog about everything by Jack Baty 👋

Tag: AI

Asking ChatGPT to do things I used to think were fun

I’ve been testing a version of Johnny Decimal using folders and org-mode files. While doing this, I found myself frequently wanting to create a new .org file in the current (Dired) directory with the same name as the directory (long story).

In a past life, this would have been a fairly straightforward challenge. I’m not remotely fluent in (emacs) lisp, but I’ve always enjoyed learning, so I would have dug in and figured out how to write the function myself.

Renaming an item in DEVONthink to match the name of its parent group

When creating a new project folder (group) in DEVONthink, I often make use of Templates. Templates are just files in a folder somewhere that get copied into the DEVONthink database. For example, I have a project “starter” Tinderbox document named “Basic Project Template.tbx”. When inserting the template file into my DEVONthink project, it uses the same name as the original, which isn’t helpful. DEVONthink is very scriptable, so I wrote an AppleScript to rename the selected document the same as the enclosing group/folder.