I can’t seem to succeed getting the URL of a current Safari page. I want to build a shortcut that would send the page that’s open on iPhone to the Mac by executing SSH script in the “Run SSH script” action in Shortcuts for iOS. No matter how I set the shortcut’s global input (“Accepts Safari pages”, “Accepts URL”) or locally through the usage of variables (as “Url”, as “Text”) or with the action “Get Details of Safari page” (with its output set to “Page URL”), no output is produced.
Is there a way to get the URL of a current page like it’s possible in Automator or with AppleScript?
Model: MacBook Pro
Browser: Safari 9537.86.7
Operating System: macOS 10.9