Acidham Posted February 19, 2016 Share Posted February 19, 2016 (edited) Adds reminders to Apples Reminders Inbox Syntax: rm <Title>;<due day>;<time> Following options: due day and time are empty: due day will be set to today with 3 hours from now time is empty: Reminder will be set to date provided at given time accepted date format: <day>.<months> or <day>.<months>.<year> or tomorrow, next week or <weekday> weekday e.g. "Wednesday": Reminder will be set to the next weekday accepted time format: <hours> or <hours>:<minutes> rmhelp opens quick help in Large Type http://www.packal.org/workflow/apple-reminders Edited February 21, 2016 by Acidham JJJJ 1 Link to comment
kmarchand Posted February 24, 2016 Share Posted February 24, 2016 Nice workflow! Thanks. I'm having a problem with the time not working... it gets the date right but the time is always 12:00. Here's the log; [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;tomorrow;14:00' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Thursday, February 25, 2016 at 12:00:00 AM' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;friday;09:00' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Friday, February 26, 2016 at 12:00:00 AM' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;saturday;9' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Saturday, February 27, 2016 at 12:00:00 AM' Link to comment
Acidham Posted February 25, 2016 Author Share Posted February 25, 2016 on which version of Mac OS are you? it seems that reminder does not accept the due date. Could you please try this applescript code: set queryTime to "14:00" set theDate to date string of ((current date) + (1 * days)) set DueDate to date (theDate & " " & queryTime) tell application "Reminders" tell list "Inbox" make new reminder with properties {name:"Test", remind me date:DueDate} end tell end tell Link to comment
kmarchand Posted February 25, 2016 Share Posted February 25, 2016 (edited) I'm on El Capitan (10.11.3). When I run that applescript it still creates a reminder tomorrow at 12:00. When I ran this applescript, it did create it at 9am set theDate to date string of ((current date) + (1 * days)) set DueDate to date (theDate) set time of DueDate to 60 * 60 * 9 tell application "Reminders" tell list "Inbox" make new reminder with properties {name:"Test", remind me date:DueDate} end tell end tell Edited February 25, 2016 by kmarchand Link to comment
Acidham Posted February 25, 2016 Author Share Posted February 25, 2016 (edited) Interesting, I am on el capt beta. Means apple changed something on date and time handling. I assume you fixed the WF yourself? Edited February 25, 2016 by Acidham Link to comment
kmarchand Posted February 26, 2016 Share Posted February 26, 2016 Weird. I worked something out. Thanks. Link to comment
ixium Posted March 7, 2016 Share Posted March 7, 2016 I cant get this one working when I add reminders I get no confirmation and I see no new reminders added to the "Reminders" app, any ideas? Link to comment
Acidham Posted March 7, 2016 Author Share Posted March 7, 2016 (edited) I cant get this one working when I add reminders I get no confirmation and I see no new reminders added to the "Reminders" app, any ideas? Can you try to run following apple script in Script Editor (copy&paste): set theDate to date string of ((current date) + (1 * days)) set DueDate to date (theDate) set time of DueDate to 60 * 60 * 9 tell application "Reminders" tell list "Inbox" make new reminder with properties {name:"Test", remind me date:DueDate} end tell end tell What is the output and/or result? Which Mac OS X version is in use? In addition please also run the script with Alfred Preferences → Debug Mode Edited March 7, 2016 by Acidham Link to comment
ixium Posted March 7, 2016 Share Posted March 7, 2016 error "Reminders got an error: Can’t get list \"Inbox\"." number -1728 from list "Inbox" when running in apple scripts, trying alfred now osx el captain 10.11.3 Link to comment
Acidham Posted March 7, 2016 Author Share Posted March 7, 2016 (edited) Do you have a Reminder List "Inbox"? If not, what is your standard list to create Reminders? Edited March 7, 2016 by Acidham Link to comment
ixium Posted March 7, 2016 Share Posted March 7, 2016 ok, well you just giving me that helped me figure it out. Made a new list called "inbox" and it went right in! thankyou! Link to comment
ixium Posted March 7, 2016 Share Posted March 7, 2016 great workflow, have been looking for something very simple like this to stay on top of work stuff! Link to comment
Acidham Posted March 7, 2016 Author Share Posted March 7, 2016 Thanks for pointing me to this issue. I will fix it by not hard coding the list name. I will update new version in a few minutes ヅ Link to comment
Acidham Posted March 7, 2016 Author Share Posted March 7, 2016 Fixed and updated to version 1.2: http://www.packal.org/workflow/apple-reminders Link to comment
enkia Posted March 8, 2016 Share Posted March 8, 2016 I've been looking for a workflow like this! However, I noticed that it only inserts '12:00 am' as the time. rm test;tomorrow;10:00 rm test;tomorrow;10 rm test;tomorrow;10am etc, doesn't work? Link to comment
Acidham Posted March 8, 2016 Author Share Posted March 8, 2016 Seems that you are experiencing same issue as discussed within post on February 2016 - 02:20 PM. Please try to change script Link to comment
ixium Posted March 8, 2016 Share Posted March 8, 2016 I'm also getting the 12 am thing, what script do we change and how? Link to comment
Acidham Posted March 9, 2016 Author Share Posted March 9, 2016 (edited) Please try following script first. It should create reminder at 9am: set theDate to date string of ((current date) + (1 * days)) set DueDate to date (theDate) set time of DueDate to 60 * 60 * 9 tell application "Reminders" tell list "Inbox" make new reminder with properties {name:"Test", remind me date:DueDate} end tell end tell Let me know in case the test was successful. Edited March 9, 2016 by Acidham Link to comment
ixium Posted March 9, 2016 Share Posted March 9, 2016 this worked, now what do I do to fix the workflow! Link to comment
Acidham Posted March 9, 2016 Author Share Posted March 9, 2016 For now I don't want to change the script because I will loose other features when changing it. Seems that "kmarchand" fixed it maybe he can provide the script with workaround here? Link to comment
ixium Posted March 9, 2016 Share Posted March 9, 2016 makes sense, I also dont mind upgrading to a new version of el cap, your on a newer one right? and thats why its working for you? Link to comment
Acidham Posted March 9, 2016 Author Share Posted March 9, 2016 Seems but I do not have proof of it. I am on El Capt latest beta 5 and once i developed it i was on beta 4. I am generating Due Date from a string set DueDate to date (theDate & " " & queryTime) but it seems that that older version does not accept that. Therefore kmarchand changed it to get due date (w/o time) and add it later: set time of DueDate to 60 * 60 * 9 Flipside is I need to rewrite a bunch of code to calculate e.g. 9:30 or 22:15 Link to comment
ixium Posted March 9, 2016 Share Posted March 9, 2016 yep, im sure its hectic developing one of these! Thank you for your hard work, cant wait till I can get it working Link to comment
Acidham Posted April 15, 2016 Author Share Posted April 15, 2016 Seems that you need to allow Alfred and oascript to access Reminders. System Preferences > Security & Privacy > Privacy > Reminders Link to comment
noelsaw Posted June 10, 2016 Share Posted June 10, 2016 Hello Acidham, thanks for this awesome workflow. I add "Alfred3" to the Security and Privacy preference panel but where/how do I add "oascript" please?I also noticed if Reminders app is open/running and I try to add a reminder that seems to lockup Alfred3. Thanks in advance! Seems that you need to allow Alfred and oascript to access Reminders. System Preferences > Security & Privacy > Privacy > Reminders 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