Jump to content

blueshirt

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    blueshirt got a reaction from CarlosNZ in TimeZones - a World Clock script filter [updated to v1.7]   
    Thank you yet again for another wonderful workflow. I had issues with previous versions but 1.61 seems to fix everything. Successfully updated via Alleyoop. I love tz nameofthecity functionality. Switching from Wolfram Alpha improved accuracy, at least here.
  2. Like
    blueshirt reacted to CarlosNZ in TimeZones - a World Clock script filter [updated to v1.7]   
    Here's another little tool I've just whipped up:
     

    Get an instant list of the current time in various cities around the world. Which you can customize, of course.
     
    Main keyword: tz (for TimeZones) - this just shows the World Clock list (seen above). (Select a city for a Large Type display.) To remove a city from the list - option-select it. To add a new city - timezone add Name of City To update all cities' timezone offset information - timezone update To look up the time in a place without storing it (custom loookup), just keep typing the place name after the initial tz (eg. tz timbuktu) To move the location of your stored city list - timezone move Download v1.7a
     
    This workflow saves a list of your cities and their UTC offsets locally, so the basic world clock will display instantly. Adding new city information is done via an API call to Google Wolfram Alpha. The only downside to locally cached offsets is that there's no provision for automatically updating for Daylight Savings changes, but a manual timezone update will refresh all the cities with their current offset.
     
    Enjoy. As usual, I welcome comments, bug reports, feature requests, etc.
     
    ----
     
    28 March 2013 - UPDATE to v1.5
    Major rewrite - now uses Google Maps APIs, which should be a lot more reliable and consistent. Flag icons! Bit of eye candy, courtesy of http://www.free-country-flags.com (and managed to squeeze flags for every country in the world into just over 400k - thank you TinyPNG ) More detail retrieved and displayed, including timezone name, country, etc. When doing a full "update", a text file is saved to your Desktop summarising any changes found. General enhancement and tweaks. PLEASE NOTE: Because this version stores its data substantially different to previous versions, it will create a new timezones.txt file with default cities. However, it will attempt to save your old timezones.txt file to your Desktop, so you should be able to rebuild your previous list without too much hassle.
     
    A quick note about the flags: The workflow simply compares the retrieved name of the country and does a simple name match against the workflow's local repository of flag icons. From my testing, it's working very well, but I'd appreciate it if you'd report back if you find any countries that don't properly match a flag icon. Cheers.
     
    ----
     
    31 March 2013  - UPDATE to v1.6
    New feature: Custom lookups. Just keep typing a new place name after the tz keyword to look up the time in a place without saving it to your saved list. Added support for phyllisstein's Alleyoop auto-updater. [EXPERIMENTAL] - support for autocomplete for adding place names (timezone add). You'll need to add a keyword yourself to the script filter if you want to try it out. The reason I haven't enabled it by default is that I've found it kind of slow and I'm not sure it's actually an improvement over the current method. Let me know what you think.
    [Add a keyword to this script filter if you'd like to try it out] Novelty: Added (unofficial) Antarctica flag to flag repository. (Try tz south pole.   ) ----
     
    2 April 2013 — UPDATE to v1.61
    Small fix for Dutch (Netherlands) flag matching.  
    ----
     
    22 March 2014 — UPDATE to v1.7
    City List now always shows in the same order. (Achieved by removing “uid” parameter.) Removed Alleyoop updater. ----


    22 March 2014 — UPDATE to v1.7a
        New 256x256px icon
  3. Like
    blueshirt got a reaction from CarlosNZ in Tiny PNG workflow [Updated to v1.2]   
    Thank you for this! Works great.
  4. Like
    blueshirt reacted to CarlosNZ in Tiny PNG workflow [Updated to v1.2]   
    This workflow will take a set of PNG or JPG files and compress them using the online TinyPNG service.

    For more info on what it does to the image, see http://tinypng.com/

    Usage:

    This workflow works as either a File Action or a regular keyword process.

    Either:
    1) Select the PNG or JPG files you want processed (in Finder or Alfred), then select the "Compress with TinyPNG" File Action in Alfred.
    2) Select the PNG or JPG files you want processed in Finder, launch Alfred, then use the “tinypng" keyword.

    The processed files will be downloaded to a TinyPNG folder on your Desktop, along with a Report showing the success/failure of each file, and how much it has been compressed by.

    The process may take some time, especially if you have selected several large image files, but you will notified on completion. However, if you have Growl/growlnotify installed, you will get a per-file notification as it progresses.
     
    A Note on Heavy Usage:
     
    The TinyPNG API has a limit of 500 files per month. As you can imagine, once a few people are using the workflow substantially, this doesn't take long to reach. I have provided a default API key built-in so you can use the workflow immediately. However, if you intend to continue using it in any substantial capacity I strongly suggest you visit https://tinypng.com/developers and register for your own API key. You can jump there with the keyword “tinypng_getkey” in Alfred. Once you’ve got your key, save it into the workflow configuration with the keyword  “tinypng_config”
     
    Download v1.3
     
    Cheers,
    Carl
     
    ----
     
    28 November 2013 - updated to v1.1
    Updated to use the new TinyPNG.com API Now works as a regular Alfred keyword (with Finder selection) as well as File Action  
    19 March 2014 - updated to v1.2
    Now gives better error reporting on failures. (You’ll be able to tell if the monthly limit has been exceeded.) Consolidated processing to a single bash script. The Finder Selection script now just parses the input and sends it to the main script. (Irrelevant to user experience.) User can enter their own API key to prevent reaching the Free account limit when using a shared key. Updated icons (from TinyPNG.com)  
    6 October 2015 - updated to v1.3
        Now supports JPG files as well.  
×
×
  • Create New...