I have an action that runs a Shortcut using my draft title. It makes sure the title is capitalized, and then translates it to Spanish, concatenates the two (so it has the form “EnglishTitle // SpanishTitle”) and adds it to the clipboard. I next run the following script to replace the existing title, with the new title.
draft.title = app.getClipboard();
draft.update();
However, the title does not change. If I replace draft.title with draft.content, it replaces my entire draft, but I can’t seem to replace only the title.
Makes sense. I have tried some things this morning, but I cannot figure out how to replace the first line of the content. Can you provides some additional help. Thanks!
Apologies, yes I’d originally had some example text in there, realised you were using the clipboard and accidentally omitted the parentheses when substituting it in. I’ll correct it above