And to top it off there was also a way to receive the “onscreen content” inside a shortcut, which in the case of Safari, returns the URL of the current page. I discovered that if I used a service from Safari, then it received the selected text as the input. My last option was to try to use macOS Services. GOODTASK 3 URL SCHEME HOW TOI haven’t worked out how to get the author using this method, but it wasn’t exactly reliable on iOS anyway. Because from the URL, I can make a quick GET request, and get the page title. Unfortunately, this action doesn’t work, and I’ve been told it hasn’t been working for some time.Īfter some experimenting, I realised that as long as I could have the URL and highlighted text, then I would be able to come up with something sufficient. I’d be able to detect the URL somehow, and then be able to extract any information manually. I tried a few other options that sounded promising, such as the “Get Article from Safari Reader” action that seemed to be precisely what I wanted. So, my existing solution was out the window. Turns out the Mac’s a bit more complicated, as while there’s a share menu, you can’t use it to launch a shortcut. Leaving me to add some comments to the sheet, before publishing it to my blog. From there, it extracts the title, author, and url of the article, along with formatting the selected text as a markdown blockquote (using my app, Text Case), formats it nicely, and creates a new sheet in Ulysses. It essentially uses the share menu in Safari to pass the article and the highlighted text to a shortcut. It doesn’t exactly do much, but it saves a lot of time and effort. It’s the “Link Post” shortcut that I’ve been using for quite some time on my iPad. However, one of the main shortcuts just wasn’t possible on the Mac. Since getting my new Mac a few days ago, I’ve been trying to move my iOS writing automations over.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |