The code (below) works. I can use a shortcut in Chrome to send the title and URL of the current tab to Notes. But I want the URL in Notes to be so I can click on it and go to the webpage. How do I do this?
tell application "Google Chrome"
if it is running then
-- Get the URL and title of the active tab
set currentURL to URL of active tab of front window
set currentTitle to title of active tab of front window
-- Create the note content
set noteContent to currentURL
-- Send to Notes app
tell application "Notes"
tell account "Google"
tell folder "Links"
make new note with properties {name:currentTitle, body:noteContent}
end tell
end tell
end tell
else
display alert "Chrome is not running"
end if
end tell