I tried a while ago to create a simple AppleScript to do a repetitive task that I’d like to see built in, but that Eric is reluctant to build into the program (not a criticism. I understand priorities and a reluctance to build every little request into the program — in fact warned against it.) I couldn’t seem to do it, and it seems to me that every writer needs it.
So, I’m wondering if someone can help me out:
Very simple, two actions.
Circumstances (in case someone has a better solution to my proposed actions):
I get a brainstorm and create a list, dumping a bunch of words into an RTF note in DT. Now that I have my list (let’s call them topics), each on a separate line, I want to break it into separate notes, so I can write about each topic.
Presently, I position the cursor at the beginning of the second line and click Edit > Split (for which I’ve created a keystroke combination). That creates a second document titled [title of first doc 2], switches focus to it. I the position the cursor at the beginning of the second topic in the new document, and do the same thing, for the entire list. Now I have a bunch of documents, the last one is titled [title of first document 2 2 2 2 2 2 2…n]. Now I have to go to each document and select the first line, right click (there’s no menu item, which is why I can’t create a keystroke shortcut] and click “Set title as.”
What I want is a simple AppleScript, that I can create a keystroke shortcut for, that does the above for each line (topic) of my list, or the first sentence, if I’ve written a parapraph.
Maybe also a related script that captures the selected text, splits at the beginning of the selection and sets the title to the selected text. (Scrivener has this, and it’s very useful.)
META IDEA: I think I remember a proposed script exchange for just such requests. Was that ever implemented?