Jump to content

Date Snippets - insert upcoming days (next Monday etc.) - updated for 12.3

Recommended Posts

Dynamic snippets to insert the date corresponding to the upcoming day.


d.nm - next Monday

d.nt - next Tuesday

d.nw - next Wednesday

d.nr - next Thursday

d.nf - next Friday

d.ns - next Saturday


So given today's date 2018-07-30, the snippets in sequence produce








d.m+ - first day of next month



And dt.n to add the next business day in prose, e.g. Tuesday, June 4, 2019




v. 1.2 

- added first day of next month

- added external triggers for M of next week and 1st of next month

- updated so snippets will paste in Alfred (using the trick here: https://www.alfredforum.com/topic/11765-snippet-triggers-triggered-in-alfred-dont-paste-to-alfred/?tab=comments#comment-61652 )


v. 1.3 2022-03-31

- updated to use Python 3 for compatibility with MacOS 12.3

Edited by dfay
Link to comment
  • 10 months later...
  • 2 months later...

Thanks. Yes, I have the powerpack and workflow installed.


One thing I noticed just now is that the snippets in the workflow didn't import with the keywords set. Once I added a keyword I was able to get the snippet to work, e.g. here => 2020-04-27. Are the keywords not supposed to be imported along with the workflow, or is there a problem somewhere?


That aside, what I'm really trying to do is use these snippet triggers within another snippet. OnceI realized this was probably the problem, I found your comment to a thread on nested snippets, which I read as saying I'll need to customize the workflow in order to get this to work. Is that still the case, as far as you know?



Link to comment
2 hours ago, sbc said:

Are the keywords not supposed to be imported along with the workflow, or is there a problem somewhere?


Alfred strips hotkeys and snippet triggers on import  to prevent surprises. You have to set your own, but once you do, Alfred will remember them and keep your changes when you update a workflow.

Link to comment
  • 8 months later...
  • 4 months later...

Hey @dfay I am just finding this workflow now - thank you! It's working great so far.


I wanted to ask if there was any reason you didn't include a snippet for Sunday (i.e. next Sunday)?



d.nm - next Monday

d.nt - next Tuesday

d.nw - next Wednesday

d.nr - next Thursday

d.nf - next Friday

d.ns - next Saturday


I personally work on Sundays and would love this to be included as well. Can you guide me through how to add that, or perhaps include that in an update if it's not too difficult?


I'm also curious if it is possible to duplicate them to include something like ;sunday in two weeks; or ;monday in two weeks; - that would be super handy. 


I'm curious if you have a guide or steps published somewhere to edit this workflow in any way? 


I've been looking for a way to enter dates dynamically like this for a while - thanks again! 

Link to comment
  • dfay changed the title to Date Snippets - insert upcoming days (next Monday etc.) - updated for 12.3
  • 7 months later...
  • 1 month later...

sorry for the very late reply. it's still not working for me.


[07:54:16.029] Date snippets[Snippet] Processing complete
[07:54:16.034] Date snippets[Snippet] Passing output '' to Arg and Vars
[07:54:16.035] Date snippets[Arg and Vars] Processing complete
[07:54:16.036] Date snippets[Arg and Vars] Passing output '0' to Run Script
[07:54:16.049] ERROR: Date snippets[Run Script] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
[07:54:16.051] Date snippets[Run Script] Processing complete
[07:54:16.051] Date snippets[Run Script] Passing output '' to Copy to Clipboard
[07:54:16.052] Date snippets[Copy to Clipboard] Processing complete
[07:54:16.053] Date snippets[Copy to Clipboard] Passing output '' to Dispatch Key Combo

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...