Jump to content

bclev

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by bclev

  1.  

    This appears to be an issue with Gatekeeper settings. To be honest, Gatekeeper is a real bugaboo. I've tried to set things up to circumvent this, but it's quite complicated. 
     
    Did this error only pop up after you added the copy to clipboard? If so, the simple reason is that there is nothing to copy. Could you remove that option and try to run the workflow as is with the debugger on and report that error?

     

    Starting debug for 'Spritzr'
    
    [INFO: alfred.workflow.trigger.action] Processing output 'alfred.workflow.action.script' with arg '(
        "/Users/xxxx/Downloads/Seven.Speed.Reading.2014.v14.3.Mac/Instructions.txt"
    )'
    [ERROR: alfred.workflow.action.script] Code 1: 11:28:09 workflow.py:1265 ERROR    'utf8' codec can't decode byte 0x92 in position 695: invalid start byte
    Traceback (most recent call last):
      File "/Users/xxxx/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.B221076E-3705-4AC6-B44F-3BDC6C817DC9/workflow/workflow.py", line 1263, in run
        func(self)
      File "spritzr.py", line 286, in main
        article = wf.decode(file_obj.read())
      File "/Users/xxxx/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.B221076E-3705-4AC6-B44F-3BDC6C817DC9/workflow/workflow.py", line 1496, in decode
        text = unicode(text, encoding)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 695: invalid start byte
    [INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.clipboard' with arg '<?xml version="1.0" encoding="utf-8"?>
    <items><item valid="no"><title>Error in workflow 'com.hackademic.spritzr'</title><subtitle>'utf8' codec can't decode byte 0x92 in position 695: invalid start byte</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items>'
    
  2. Hey Smarg,

     

    I tried to run the workflow, but I'm getting this error: (I edited out my short name)

     

    <?xml version="1.0" encoding="utf-8"?>
    <items><item valid="no"><title>Error in workflow 'com.hackademic.spritzr'</title><subtitle>[Errno 13] Permission denied: u'/Users/xxxx/Library/Application Support/Alfred 2/Workflow Data/alfred.bundler-aries/assets/utility/viewer/default/viewer.app/Contents/document.wflow'</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items>
     
    I got this error by adding a "copy to clipboard" output to the workflow when it wouldn't work. Any ideas?
    I tried the method you gave to raguay, and the bundle downloaded fine. It just will not run. 
  3. Okay. I rewrote it, and now you can find it here: http://www.packal.org/workflow/flux.

     

    Benzi's version (the initial version) was a bit more responsive because it just output options. This one will show a tiny bit of lag when you're typing because it uses a php script filter to give you the extra information / options.

     

    If you want to just disable it for an hour, use the keyword `disflux`; otherwise the keyword is `flux` still.

     

    Now you can set the temperature to just about anything you want (well, between 1000 and 27000K), which is outside of the range Flux will let you do in its GUI (3400 to 6500). And I've included some nice presets in there as well.

     

    Whenever flux is disabled, you're presented with only one option: "re-enable" flux.

     

    You can also try to move into Darkroom mode with this, but the transition is very, very slow because of how flux transitions to lower temperatures. Transitioning from 5000K to 27000K takes no time at all, but transitioning down to 1000K can take over a minute. Transitioning back up or down takes just as long, and that's flux's fault, not mine. Darkroom mode also inverts the colors on your screen. (If you want to play around with color inversion, just press ctl+opt+cmd+8).

     

    I've included a fun little mode as well in which you can use your screen to simulate candlelight. The workflow will set your computer to about 1900K and then rapidly change the screen brightness to simulate a candle flickering. Two warnings: (1) if you try to use this while working on your computer, you will go insane. (2) I don't know if this is bad for your screen. If it is, and you use it, and your screen breaks, then it's not my fault.

     

    To get out of either darkroom or mood lighting mode, then just call `flux` again, and you'll be presented with the option to restore flux to normal behavior. Your screen will stop flickering and/or revert to normal coloring.

     

    Let me know if anything is broken.

     

    Hey Shawn,

    I can't seem to input any commands other than "flux" and "disflux". Do I need to install anything in addition? (It also will not open flux if flux is not running, even though it says that it opened it). 

     

    Thank you for working so hard and bringing so many features to Flux! 

  4. This is my first workflow. Critique away!  :P

     

    Sometimes, when I download apps that haven't been signed for Gatekeeper, I get a warning about the app that requires me to right-click on the app and press "Open". I don't want to get rid of Gatekeeper, so I made this workflow.

     

    http://cl.ly/Ny7W

     

    keyword: rem

     

    Just type in "rem" and then type in the name of the app you'd like to remove the warning from. The workflow searches for all .app files, regardless of location:

    Screen%20Shot%202013-03-31%20at%201.23.1

    Screen%20Shot%202013-03-31%20at%201.23.3

    Created with the blessing of the Alfred v1 Extension creator, Andreas Zeitler. (proof: https://twitter.com/Zettt/status/316903628474568704)

×
×
  • Create New...