This passes the clipboard contents to the script, which can easily read this input using () and then manipulate as needed. This involved creating a Shortcut as shown below: ![]() I figured I'd be a lot happier if I could get the clipboard contents (with the citation) into Python where I could then use some tools I'm a bit more comfortable with to strip the citation. I attempted to follow the solutions proposed above, but the biggest barrier was working with regular expressions passed to sed - I'm not great with regular expressions and ran out of patience. However, this was not the case when using the same solution on my other machine running Monterey. On my machine running Catalina, the solution in worked beautifully. From now on, when you want to copy your selected text in Books, just press ⌘ C and the exact text will be copied. You will see the shortcut appear in the list:Īnd you’re done. Menu Title: Copy without Citation in BooksĬlick Add.Click the + button to add a new App Shortcut.View the Shortcuts tab and select App Shortcuts on the left. Give the Quick Action a keyboard shortcut of ⌘ C in Books Thus, the workflow needs no extra action to strip the text added by Books. The “workflow receives current text in Books” setting in the workflow bypasses the clipboard-modifying behavior of Books. ![]() Name it “Copy without Citation in Books”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |