hoo22 7 Posted May 1, 2020 Share Posted May 1, 2020 The most frustrating feature omission of the Mac app is having no keyboard shortcut option to add a reminder to a note. (The manual cursor-based option is just so slow). Is there an AppleScript available that I can trigger with a keyboard shortcut to add a reminder? I’m not particularly technically minded, so can’t build a script myself. Ideally, I’d like a script to add a reminder with with no date, and another script to add a reminder with a date. Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 29 minutes ago, hoo22 said: s there an AppleScript available that I can trigger with a keyboard shortcut to add a reminder? Here's my reminder script My keyboard shortcut is Command Option R tell application "Evernote" set reminder time of theNote to date ((text returned of (display dialog "Reminder Date" default answer (yyyymmdd & " 8:00 am"))))end tell 1 Link to comment
hoo22 7 Posted May 1, 2020 Author Share Posted May 1, 2020 Thanks DTLOw, that's great. Do you know if there's a script that doesn't require a date input, and just creates a reminder; as I'm mostly looking to create reminders without dates. Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 8 minutes ago, hoo22 said: Do you know if there's a script that doesn't require a date input, and just creates a reminder; as I'm mostly looking to create reminders without dates. set reminder order of theNote to current date Link to comment
hoo22 7 Posted May 1, 2020 Author Share Posted May 1, 2020 I've tried your first option in Script Editor with no luck. And have no idea how to turn that into a keyboard shortcut. (See screen shot). As I said, I have no scripting knowledge, so I may be missing something obvious. As for the no-date reminder...I'm also lost. Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 18 minutes ago, hoo22 said: I've tried your first option in Script Editor with no luck. There were two variables in the scriptyyyymmdd theNote These have to be defined I use this code for the date yyyymmdd set {year:yyyy, month:mmm, day:d, weekday:dddd} to ((current date)) set dd to (text -2 thru -1 of ("0" & d as text)) set m to mmm as integer set mm to (text -2 thru -1 of ("0" & m as text)) set yyyymmdd to yyyy & "/" & mm & "/" & dd as string For theNote tell application "Evernote" to set theNotes to get selection set theNote to item 1 of theNotes Link to comment
Level 5* JMichaelTX 4,118 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 39 minutes ago, DTLow said: tell application "Evernote" set reminder time of theNote to date ((text returned of (display dialog "Reminder Date" default answer (yyyymmdd & " 8:00 am"))))end tell @DTLow, I like the idea of your script, but it won't run as is. I think you forgot to include parts of your script that define 'theNote" and "yyyymmdd". Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 21 minutes ago, hoo22 said: And have no idea how to turn that into a keyboard shortcut. (See screen shot). There is a method using Mac Services I use third party Fastcript to add keyboard shortcuts to my scripts Link to comment
Level 5* JMichaelTX 4,118 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 You guys might be interested in this simple code to get the date as an ISO formatted string: set dateISOStr to text 1 thru 10 of ((current date) as «class isot» as string) Link to comment
hoo22 7 Posted May 1, 2020 Author Share Posted May 1, 2020 Ok, so far I’m lost. I guess I was just wondering if there’s a script that I can simply download which I can get to run when I use a keyboard shortcut, without me tinkering with the script and other third party apps? I can’t over-emphasise enough that I have no experience with scripting, but have downloaded applescripts that run out of the box. Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 5 minutes ago, hoo22 said: Ok, so far I’m lost. I guess I was just wondering if there’s a script that I can simply download which I can get to run when I use a keyboard shortcut, without me tinkering with the script and other third party apps? I can’t over-emphasise enough that I have no experience with scripting, but have downloaded applescripts that run out of the box. I can advise you on writing scripts, and provide assistance when you get stuck I'm not comfortable providing "run out of the box" scripts Link to comment
Level 5* DTLow 5,744 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 39 minutes ago, JMichaelTX said: You guys might be interested in this simple code to get the date as an ISO formatted string: set dateISOStr to text 1 thru 10 of ((current date) as «class isot» as string) Thanks, I've made note of that I prefer using my own code; It allows me to deviate from ISO format (I'm a rebel) Link to comment
hoo22 7 Posted May 1, 2020 Author Share Posted May 1, 2020 8 minutes ago, DTLow said: I can advise you on writing scripts, and provide assistance when you get stuck I'm not comfortable providing complete scripts That’s fine, thanks for your help so far, but I’m not looking to spend time learning to write AppleScript through a trial and error learning process. One day when things are less busy maybe. ☺️ If anyone else is able to share a click and run AppleScript for me, then I’d love to hear from you. Link to comment
Level 5* JMichaelTX 4,118 Posted May 1, 2020 Level 5* Share Posted May 1, 2020 15 minutes ago, hoo22 said: If anyone else is able to share a click and run AppleScript for me, then I’d love to hear from you. Here's my version: set today to current date set numDays to 1 -- set to number of days in future set futureDateStr to short date string of (today + (numDays * days)) tell application "Evernote" set {oNote} to selection set reminder time of oNote to date ((text returned of (display dialog ("Evernote Note:" & return & title of oNote) default answer (futureDateStr & " 8:00 am") with title "Set Reminder Date"))) end tell something is causing this image to appear twice. Link to comment
hoo22 7 Posted May 1, 2020 Author Share Posted May 1, 2020 That's brilliant. Thanks JMichaelTX Really appreciated. I'll keep looking for non-date reminder options, but for now that date reminder script works nicely, and I've now created a shortcut for it. 😀 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