alex.agat Posted April 23, 2013 Posted April 23, 2013 I find myself asking, "what's the date??" quite often while at my computer. Here's one solution using Alfred workflows. I set the keyword to "date". Shows the current date in large type on the screen. Here is the workflow. Here are some screenshots: Alfred screen view Full screen view
gzs Posted April 26, 2013 Posted April 26, 2013 Great...but why does it show day in english even on a non-english OSX? Can this workflow be adapted to localization settings somehow? Thanks!
spuder Posted April 27, 2013 Posted April 27, 2013 I started working on this exact idea, but got stuck. Thanks so much for posing this.
alex.agat Posted April 28, 2013 Author Posted April 28, 2013 Great...but why does it show day in english even on a non-english OSX? Can this workflow be adapted to localization settings somehow? Thanks! Not sure - I'm not familiar with how to adapt this. Hopefully somebody else can help out here.
alex.agat Posted April 28, 2013 Author Posted April 28, 2013 I have updated my original script to include the +num and -num functionality to show dates in the past and future given an option argument. So for example, given that today is Sunday April 28, 2013: date +3 would print: Wednesday May 1st, 2013 date -7 would print: Sunday April 21st, 2013 Here ya go: http://cl.ly/3w0O0p3Q3j0X
morten Posted April 28, 2013 Posted April 28, 2013 Could you please add a second line to the output displaying the weeknumer?
RodgerWW Posted April 28, 2013 Posted April 28, 2013 I'm very curious ... that Applescript looks so complex and long. Why not just use the terminal command: date '+%A %B %d, %Y' to output the date in the exact format you want?
alex.agat Posted April 29, 2013 Author Posted April 29, 2013 I'm very curious ... that Applescript looks so complex and long. Why not just use the terminal command: date '+%A %B %d, %Y' to output the date in the exact format you want? Yes, while this does accomplish much of what the script does, the extra lines are for particular formatting (adding the "rd" or "th" after the day number) and adding the + and - num functionality. I'm sure I could shorten it up - but I wrote it out so that I could mess around with each variable. For instance, the lines where I output the date as a string I have as 8 lines and I could easily shorten to 1 line. I just did this for formality.
alex.agat Posted April 29, 2013 Author Posted April 29, 2013 Could you please add a second line to the output displaying the weeknumer? As in the week of the year? Please give me an example and I'm more than happy to make this for you.
morten Posted April 29, 2013 Posted April 29, 2013 As in the week of the year? Please give me an example and I'm more than happy to make this for you. Today is the 29th of April and the start of week 18 which will last untill the 5th of May. Then next week is week 19 and so on and so forth
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