tuqqer 1 Posted January 17, 2019 Posted January 17, 2019 Is there a faster way to set up a Reminder for a note than: 1. click on the ellipsis ... 2. Add reminder... 3. click Add Date 4. click on date in calendar. I use Reminders for almost all the notes I have (I use EN mainly has a sales tickler file, where each note is the name of a business colleague or prospect). Would love to know if there's a way to speed up setting up each Reminder.
Level 5 DTLow 5,750 Posted January 18, 2019 Level 5 Posted January 18, 2019 22 hours ago, tuqqer said: Would love to know if there's a way to speed up setting up each Reminder. I use scripting on a Mac (Applescript) For example, this is a screenshot generated with command-option-R 1
tuqqer 1 Posted January 18, 2019 Author Posted January 18, 2019 Thank you, DTLow. I'm a long-time Mac user, but never have learned to use the Script Editor. Is that script you've built something you can share?
Level 5 DTLow 5,750 Posted January 18, 2019 Level 5 Posted January 18, 2019 45 minutes ago, tuqqer said: Is that script you've built something you can share? Here's the complete script for Evernote_Reminders.scpt Explanation of the code is Identify the reminder date set reminderDate to to date ((text returned of (display dialog "Reminder Date" default answer (yyyymmdd & " 8:00 am")))) Identify the current selected notes tell application "Evernote" set theNotes to get selection Process the notes repeat with theNote in theNotes set reminder time of theNote to reminderDate end repeat end tell
mpacker 9 Posted April 6, 2019 Posted April 6, 2019 Hi DTLow Not sure if you are familiar with Hazel or not. I'm trying to add a line to set a reminder to pay a bill which is passed in from Hazel as an input attribute. After a lot of searching I was unable to find any exact examples for a noob like me to copy and paste. My current script looks like this but it does not work, this is my first attempt at modifying an existing script. Can you help? tell application "Evernote" activate (create note from file theFile notebook {"Statements"} tags {"Tag1", "Tag2", "Tag3"}) set reminder time of theNote to "Due Date" synchronize end tell This is the value which is passed to the script (embedded type) by Hazel. What am I missing in my script?
Level 5 DTLow 5,750 Posted April 6, 2019 Level 5 Posted April 6, 2019 51 minutes ago, mpacker said: My current script looks like this but it does not work, this is my first attempt at modifying an existing script. Can you help? I'm not too familiar with Hazel, but I'm seeing problems with the code For example; set reminder time of theNote to "Due Date" - theNote is not defined - a date field is being set to a text value My coding would be set dueDate to item 1 of inputAttributestell application "Evernote" activate set theNote to create note from file theFile notebook "Statements" tags {"Tag1", "Tag2", "Tag3"} set reminder time of theNote to dueDate synchronizeend tell 1
mpacker 9 Posted April 6, 2019 Posted April 6, 2019 This is awesome! I totally ignored the point about defining which input attribute. I have made a little change which sets the reminder to the day before, just in case I get too busy on that day. set dueDate to ((item 1 of inputAttributes) - 1) tell application "Evernote" activate set theNote to create note from file theFile notebook "Statements" tags {"Tag1", "Tag2", "Tag3"} set reminder time of theNote to dueDate synchronize end tell Thank you very much, this will really improve my workflow and helps me think of other things I can do with Hazel and Evernote.
Ricky Lau 0 Posted June 19, 2019 Posted June 19, 2019 On 1/19/2019 at 5:07 AM, DTLow said: Here's the complete script for Evernote_Reminders.scpt 5.58 kB · 15 downloads Explanation of the code is Identify the reminder date set reminderDate to to date ((text returned of (display dialog "Reminder Date" default answer (yyyymmdd & " 8:00 am")))) Identify the current selected notes tell application "Evernote" set theNotes to get selection Process the notes repeat with theNote in theNotes set reminder time of theNote to reminderDate end repeat end tell Thanks This is awesome, adapting your code and got it to work with Alfred.
davepha2 0 Posted July 17, 2023 Posted July 17, 2023 Using the most recent version of Evernote (I've been using with appreciation your script on my older retained version of Evernote for years!) I get: "syntax error": A property can’t go after this identifier, with "reminder time" from the script highlighted. Would you help please? [MacOs Monterey 12.2.1]
mpacker 9 Posted July 17, 2023 Posted July 17, 2023 AppleScript was never brought across to the V10 client. If you wish to keep using AppleScript you'll want to remain on the pre-10 client. Hopefully thats still able to be downloaded.
Level 5 PinkElephant 9,253 Posted July 17, 2023 Level 5 Posted July 17, 2023 We advise actively against using the legacy client since the new RTE syncing was released. Old and new sync use different data structures, and the conversion puts additional stress on system resources. Furthermore mistakes are more likely. There is no scripting in v10, and that’s it. If you rely on scripts, move to another product. Apple Script is supported by Apple Notes and Devonthink, just to name a few.
davepha2 0 Posted July 18, 2023 Posted July 18, 2023 Thanks to both mpacker & PinkElephant for responses. You are appreciated.
Mike P 3,425 Posted July 18, 2023 Posted July 18, 2023 The only way you can now script EN is to use generic text expanders/hot key software. Unfortunately the design of the input box for all dates (including reminder dates) makes adding a date very difficult to automate.
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