Lew 0 Posted July 8, 2020 Share Posted July 8, 2020 Hello... I need some assistance with an AppleScript I'm writing to create a note from a web page. I would like the script to add the URL of the web page to the note. I'm having trouble writing the line to do that. The script will reside in ~/Library/PDF Services/ to make it available as an option in the PDF dropdown menu in the print dialog. AppleScript file is attached...screenshot below. Any and all assistance will be appreciated. Lew ===== Save to Evernote.scpt Link to comment
Level 5* DTLow 5,744 Posted July 8, 2020 Level 5* Share Posted July 8, 2020 4 hours ago, Lew said: I would like the script to add the URL of the web page to the note. I'm having trouble writing the line to do that. Wow - that actually works I learned something today Changes for Add myURL to note tell application "Evernote" set theNote to create note title theName from file theFile notebook hardcodedNotebook set source URL of theNote to myURLend tell btw - You're retrieving page url from the browser. I'd also retrieve page name Link to comment
Lew 0 Posted July 8, 2020 Author Share Posted July 8, 2020 2 hours ago, DTLow said: Wow - that actually works I learned something today Thank you very much!! We both learned something. I'll take you up on your suggestion to add the page name...good idea Link to comment
Lew 0 Posted July 10, 2020 Author Share Posted July 10, 2020 With help from @DTLow I was able to complete an AppleScript that creates a note in Evernote from a webpage in Safari or Chrome in a selected notebook. It also adds the original browser URL along with the date, in the format I prefer, and page name as the note's title. The AppleScript file is attached along with a screenshot below. Hopefully this will be of value to others... Save to Evernote.scpt Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now