I'm trying to create a macro that copies a SimpleNote note to the clipboard, splits the title from the body of the note, creates a new plain text TXT file with the body as the body, and then prompts me to save the file with the first paragraph of the note (the title) inserted as the filename. I'm not having much luck.
Below is what I have so far, adapting this Evernote macro (and a bunch of disabled alternate method attempts). Copy happens, TextEdit creates a new document, pastes in the body, but then stops; nothing is saved. If I set the save document line to "save document 1 in "/Users/pariah1/Desktop/TEST DOC.txt"" I'm given the error "the document "Untitled 4" could not be exported as "TEST DOC.txt". You don't have permission."
Since we have no prompt here, you have to pre-set the desired parent folder in the green action (replacing my example path).
As with the original macro, there aren’t any error checks, e.g. for filename-incompatible characters. But usually these get converted to compatible replacement chars. If not, you’d have to separate title/content and add some filtering for the title.
Checking my understanding: The forward slash between the two variables "%Variable%Local Parent Folder%/%Variable%Local Line%.txt" is saying write each variable parsed by the "For each" action to the variable Local Parent Folder which is a pathway that is set in the first action. Yes? Or is there a clearer way to understand this?
Yes, the Local Parent Folder variable (set in the green action) must contain the path of your desired parent folder.
Then, the complete path (which is the parent path + the last path component aka filename) is composed in the Write action, for each clipboard line. The slash separates path components, as usual. (If you prefer, you could also add a slash at the end of your parent path (green action) and remove the slash from the Write action.)