Jump to content

Caleb Grove

Member
  • Posts

    11
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Caleb Grove reacted to ipaterson in UTF-8 is not a valid value for LC_CTYPE flag; exception in Python workflows [Fixed 2.7.1 b387]   
    Any python workflow using locale.getdefaultlocale() will crash in Alfred 2.7 due to an unhandled exception. Since the python docs do not suggest that it is even possible for an exception to be thrown from that function, I do not imagine anyone wrapped this in a try block.
     
    I received some bug reports this weekend from some pre-release path folks who were seeing errors about unknown locale: UTF-8. I noticed in the release notes for the latest Alfred that the following change was made:
    • Add LC_CTYPE=UTF-8 encoding to script environment
     
    However, UTF-8 is not a valid value for this flag. Is this something that can be reverted or is there some case where it actually works? As a temporary workaround I was able to redefine LC_CTYPE in each of the bash scripts in the workflow, but hopefully that should not be necessary going forward.
    export LC_CTYPE="$(defaults read -g AppleLocale).UTF-8"
     
    Download a simple workflow that tests this bug. Type lcctype in alfred then action the result – it should show your current locale in large type but will instead fail with an exception.
  2. Like
    Caleb Grove reacted to ctwise in Using JavaScript for Automation   
    Either wait for a new release that supports it or run it using the shell 'osascript' command.
  3. Like
    Caleb Grove got a reaction from dave_the_rave in 2Do workflow   
    The problem is that 2Do has no good hooks to use, or AppleScript support (though the dev does say this is coming). However, there is URL Scheme support that allows for some interaction with other apps.
     
    I've created a very limited workflow that uses the URL Scheme to create a task. It's far from ideal, and someone with more experience and time would be able to come up with something far more powerful, but it works for me. To create a task, type "todo" followed by the title of the task, then (optionally) a list title prefixed by a ":".
     

     
    Download here.
  4. Like
    Caleb Grove reacted to mixterdee in Google Pagespeed Insights Workflow   
    Excellent. I am someone from the 'handful of people' who spends a lot of time using pagespeed insights so I would like to say thanks.
  5. Like
    Caleb Grove got a reaction from mixterdee in Google Pagespeed Insights Workflow   
    This is probably only useful for a handful of people who seem to spend a lot of time looking at Google Pagespeed Insights (like me), but I thought I'd share it nevertheless.
     
    Usage is very simple; open the site in Safari or Chrome, bring Alfred up, and type "pagespeed". It will open the results in a new tab, and is smart enough to use the browser that was on top.

    As this is my first Workflow, please let me know if you run into any bugs.
     
    Download: http://cl.ly/Rx1c
×
×
  • Create New...