crazyjack9 Posted June 9 Share Posted June 9 Hey everyone! I'm trying to create a workflow in Alfred that allows me to quickly open a specific webpage with a URL that includes the current date as an argument (yyyymmdd). For example, if today is May 4th, 2023, I want to be able to type "breaktime" and have Alfred open the browser with the URL "someurl.com/20230504". Link to comment
vitor Posted June 9 Share Posted June 9 Welcome @crazyjack9, Connect a Keyword to an Arg and Vars with Argument set to to {date:YYYYMMdd} (learn more about dynamic placeholders) then to an Open URL with URL set to https://someurl.com/{query}. For an interactive tutorial on making a workflow, see the Getting Started Guide. Link to comment
crazyjack9 Posted June 10 Author Share Posted June 10 5 hours ago, vitor said: Welcome @crazyjack9, Connect a Keyword to an Arg and Vars with Argument set to to {date:YYYYMMdd} (learn more about dynamic placeholders) then to an Open URL with URL set to https://someurl.com/{query}. For an interactive tutorial on making a workflow, see the Getting Started Guide. Thanks Vitor! Another question. Why {date:YYYYMMdd - 1d} does not return what i expect? How do i get yesterday date? and why MM and not mm? Link to comment
vitor Posted June 10 Share Posted June 10 5 minutes ago, crazyjack9 said: Why {date:YYYYMMdd - 1d} does not return what i expect? The arithmetic has to be before the colon: {date -1d:YYYYMMdd}. Otherwise it’s interpreted as part of the format. 5 minutes ago, crazyjack9 said: why MM and not mm? Lowercase m means minutes, not month. 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