Jump to content

alex.agat

Member
  • Posts

    11
  • Joined

  • Last visited

Everything posted by alex.agat

  1. As in the week of the year? Please give me an example and I'm more than happy to make this for you.
  2. 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.
  3. 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
  4. Not sure - I'm not familiar with how to adapt this. Hopefully somebody else can help out here.
  5. Even though I am certainly more comfortable in PHP, since I started my original script in AppleScript I thought why not continue down that path. I have updated my original script to include the +num and -num functionality requested above. Here ya go: http://cl.ly/3w0O0p3Q3j0X
  6. Done: http://www.alfredforum.com/topic/2168-show-date-and-time-in-large-type/
  7. 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
  8. Got it for posting to a notification - now its just displaying full screen using command+L -- set today to current date set dateAsString to "" as string set wd to (weekday of today) as string set m to (month of today) as string set dm to (day of today) as string set dm_int to (day of today) as integer set dm_suffix to "" as string set y to (year of today) as string if (dm_int = 1) or (dm_int = 21) or (dm_int = 31) then set dm_suffix to "st" else if (dm_int = 2) or (dm_int = 22) then set dm_suffix to "nd" else if (dm_int = 3) or (dm_int = 23) then set dm_suffix to "rd" else set dm_suffix to "th" end if set dateAsString to dateAsString & wd set dateAsString to dateAsString & " " set dateAsString to dateAsString & m set dateAsString to dateAsString & " " set dateAsString to dateAsString & dm set dateAsString to dateAsString & dm_suffix set dateAsString to dateAsString & ", " set dateAsString to dateAsString & y return dateAsString
  9. Playing around, even getting it to show in a notification would be acceptable (but not ideal). So far I have: on alfred_script(q) return "" + (current date) + "" end alfred_script with a notification displaying the result, but it's blank.
  10. Hi all, Just downloaded Alfred! I want to create the following / know if its possible. 1. Type Alfred shortcut 2. Type 'datetime' as a shortcut 3. The workflow automatically calculates the current datetime (hopefully something I can control the formatting of on the backend) and displays it in the alfred hover window. 4. I have the option of going full screen (if this step though has to happen automatically it would be fine) Any help is appreciated!! Thanks Alex
×
×
  • Create New...