Workflow: get two details from safari web page

Hi everyone. I’m trying to write my first workflow. I want to highlight some text on a safari web page and run the workflow to create a new Evernote note containing the selected text and the URL that links back to the full page.

I’ve gotten everything figured out except how to get BOTH details from the safari web page passed to the script. I’m stumbling because of the “page selection” part. If I go for the link first, I wipe out the selected text. If I go for the selected text first, I can’t figure out how to access the link.

Help?

This is where magic variables really come in handy. Here’s a rough example for you:

https://www.icloud.com/shortcuts/2847275c107a4f599b5c8a8114031fa2

2 Likes

[jaw drops open and life is changed]

2 Likes