Jump to content

ClintonStrong

Member
  • Posts

    115
  • Joined

  • Last visited

  • Days Won

    7

Reputation Activity

  1. Like
    ClintonStrong got a reaction from _mk_ in Debugging your workflows   
    Just wanted to share a few quick tips for debugging. If you're using /bin/bash to run a script, you can add "2> error.log" to output errors to a file. Example:
    ruby script.rb "{query}" 2> error.log  
    All errors will then be logged to error.log in your workflow's folder.
     
    Or if you want all output logged (perhaps so you can view the xml from a script filter), you could use tee:
     
    ruby script.rb "{query}" 2>&1 | tee output.log  
    That'll log errors from stderr in addition to standard output. Note that PHP doesn't output to stderr, so if you're using PHP you'll have to check PHP's error log instead.
     
    Also, if you have any formatting errors in a script filters' XML, Alfred will log it to Console.app.
     
    Hope this helps, and feel free to share your own tips.
     
  2. Like
    ClintonStrong got a reaction from OliverJAsh in Debugging your workflows   
    Just wanted to share a few quick tips for debugging. If you're using /bin/bash to run a script, you can add "2> error.log" to output errors to a file. Example:
    ruby script.rb "{query}" 2> error.log  
    All errors will then be logged to error.log in your workflow's folder.
     
    Or if you want all output logged (perhaps so you can view the xml from a script filter), you could use tee:
     
    ruby script.rb "{query}" 2>&1 | tee output.log  
    That'll log errors from stderr in addition to standard output. Note that PHP doesn't output to stderr, so if you're using PHP you'll have to check PHP's error log instead.
     
    Also, if you have any formatting errors in a script filters' XML, Alfred will log it to Console.app.
     
    Hope this helps, and feel free to share your own tips.
     
  3. Like
    ClintonStrong got a reaction from rkj in Debugging your workflows   
    Just wanted to share a few quick tips for debugging. If you're using /bin/bash to run a script, you can add "2> error.log" to output errors to a file. Example:
    ruby script.rb "{query}" 2> error.log  
    All errors will then be logged to error.log in your workflow's folder.
     
    Or if you want all output logged (perhaps so you can view the xml from a script filter), you could use tee:
     
    ruby script.rb "{query}" 2>&1 | tee output.log  
    That'll log errors from stderr in addition to standard output. Note that PHP doesn't output to stderr, so if you're using PHP you'll have to check PHP's error log instead.
     
    Also, if you have any formatting errors in a script filters' XML, Alfred will log it to Console.app.
     
    Hope this helps, and feel free to share your own tips.
     
  4. Like
    ClintonStrong got a reaction from vivek in Debugging your workflows   
    Just wanted to share a few quick tips for debugging. If you're using /bin/bash to run a script, you can add "2> error.log" to output errors to a file. Example:
    ruby script.rb "{query}" 2> error.log  
    All errors will then be logged to error.log in your workflow's folder.
     
    Or if you want all output logged (perhaps so you can view the xml from a script filter), you could use tee:
     
    ruby script.rb "{query}" 2>&1 | tee output.log  
    That'll log errors from stderr in addition to standard output. Note that PHP doesn't output to stderr, so if you're using PHP you'll have to check PHP's error log instead.
     
    Also, if you have any formatting errors in a script filters' XML, Alfred will log it to Console.app.
     
    Hope this helps, and feel free to share your own tips.
     
  5. Like
    ClintonStrong got a reaction from Kennon in Workflow idea: Quickly navigate to recent folders   
    Sounded like an interesting idea, so I figured I'd give it a go.
     

     
    It uses the same list as the Go -> Recent Folders menu in Finder. I haven't thoroughly tested it yet, so let me know if you have any problems (or any other feeback).
     
    Download
  6. Like
    ClintonStrong got a reaction from Jono in Workflow idea: Quickly navigate to recent folders   
    Thanks! Just remembered reading about file icons in your post on generating feedback, so I've updated my workflow to use the proper icons. Link: http://cl.ly/0V1G2x0B0I3Y
     
    Updated my original screenshot to reflect this.
  7. Like
    ClintonStrong reacted to jdfwarrior in Weather Workflow (with Conditions and Forecast)   
    Updated 3/18:
    NOTE: Set your location again so a default weather unit gets set initially, then change it.
    Removed saving to the Workflow Data folder and actually save IN the workflow folder now. Should fix issue a few users are seeing and also allows syncing weather location.
     
    Download
  8. Like
    ClintonStrong reacted to robhor in Hex Color Picker & Preview   
    Hi everybody,
     
    On the one hand, this is an adaptation of an v1 extension I used, 
    Color Chooser by TDB ( http://plugins.ro )
     

     
    On the other hand, you can also copy some hex color codes into alfred and see the color itself:
     

     
    Which you then can proceed to copy as rgb values.
     
    The code for this is a quickly thrown together, horrible amalgamation of php, ruby, sh and apple script; but it works nicely
     
    Download: http://cl.ly/0M0L1w1B0S3Q
     
  9. Like
    ClintonStrong got a reaction from twinpeaks in Workflow idea: Quickly navigate to recent folders   
    Sounded like an interesting idea, so I figured I'd give it a go.
     

     
    It uses the same list as the Go -> Recent Folders menu in Finder. I haven't thoroughly tested it yet, so let me know if you have any problems (or any other feeback).
     
    Download
  10. Like
    ClintonStrong got a reaction from Jono in Workflow idea: Quickly navigate to recent folders   
    Sounded like an interesting idea, so I figured I'd give it a go.
     

     
    It uses the same list as the Go -> Recent Folders menu in Finder. I haven't thoroughly tested it yet, so let me know if you have any problems (or any other feeback).
     
    Download
×
×
  • Create New...