Jump to content
Acidham

Apple Reminders

Recommended Posts

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 tomorrownext 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 by Acidham

Share this post


Link to post

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'

Share this post


Link to post

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

Share this post


Link to post

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 by kmarchand

Share this post


Link to post

Interesting, I am on el capt beta. Means apple changed something on date and time handling. I assume you fixed the WF yourself?

Edited by Acidham

Share this post


Link to post

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?

Share this post


Link to post

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 by Acidham

Share this post


Link to post

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

Share this post


Link to post

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?

Share this post


Link to post

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 by Acidham

Share this post


Link to post

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?

Share this post


Link to post

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?

Share this post


Link to post

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 

Share this post


Link to post

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 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...