Jump to content

phallstrom

Member
  • Content Count

    15
  • Joined

  • Last visited

  1. MarceFX - You can already do this, unless I'm not understanding. Just keep typing... "dig domain.com ns"
  2. @isometry - Nice catch. I've tweaked the workflow to not touch the answer except if it's an MX record, then I strip the priority. Otherwise I leave it alone. Your example now works like you'd want it to. New version: https://github.com/phallstrom/AlfredDig
  3. Hope it's okay to vote for your own Dig (dns lookups) https://github.com/phallstrom/AlfredDig Pow (pow.cx) https://github.com/phallstrom/AlfredPow
  4. Makes sense. I've updated the workflow. You can grab it here https://github.com/phallstrom/AlfredDig
  5. Regarding #3 (multiple images into a single PDF). Do you mean something like this? Granted it's V1 only and results in a PNG, but that idea? I haven't decided if I want to update it yet or not. http://pjkh.com/projects/alfred-image-montage/
  6. @aquadan - Out of curiosity, why would you prefer to strip the trailing dot? I thought about it, but left it alone since it's technically accurate. Not opposed either way, just don't have a good reason...
  7. In Alfred, create a run script action, and be sure to uncheck "escape spaces". Then use this to get {query} into arguments you can use. #!/bin/bash read a1 a2 a3 <<< "{query}" if [ $a3 ] then wget http://lorempixel.com/$a1/$a2/$a3'>http://lorempixel.com/$a1/$a2/$a3 -O $a1x$a2-$a3.jpg else wget http://lorempixel.com/$a1/$a2/ -O $a1x$a2.jpg fi I'm not sure how you'd then get Alfred to prompt you for where to save it.
  8. I'm bored... here's a workflow for isitup.org... https://dl.dropbox.com/u/23115266/Is%20It%20Up.alfredworkflow No PHP, just bash and curl.
  9. This workflow lets you perform DNS lookups and display the results. Pick one to copy it to the clipboard. You can specify the type of DNS query (ie. mx records). If the query appears to be an IP address the code will automatically do a reverse lookup. README, screenshots, and workflow file are here: https://github.com/phallstrom/AlfredDig Enjoy!
  10. @David - Do you know what happens in a script filter when typing quickly? Does alfred kill the currently running script before starting the next one? Or? I'll see if I can figure out by watching for traps, but if you know, please share. Thx! EDIT: Looks like each script gets run in it's own thread (or similar) and isn't killed.
  11. Yeah, that won't really work since "dig david" might be perfectly valid and resolve. I could make you put a '.' on the end. I think what I'm going to do is wait for a space at the end since that will never show up for a hostname. Then I'll do an A lookup (common case) as well as provide filters for the other DNS types (mx, cname, txt, etc.). So then I can either run my app with a space at the end or if the last argument is one of the dns types. Should work okay. Then I suppose I should go update my earlier extensions Not financially rewarding, but it sure is fun
  12. Sleeping within my script won't work because by then it's too late. The issue is that with a script filter the script is executed after every keystroke. I want alfred to delay script execution for 100ms (or so) after the last keystroke has been pressed. Normally this isn't an issue. The script filter is just there to help narrow your options which will then run the actual script. However, I'm abusing it a bit (like the weather workflow) to show actual results. If you have the weather workflow installed you can see what I mean by typing "weather 9" and then waiting for it to load results. Now hit "8" and it refreshes again. Every keystroke triggers the script execution which in my case (dns lookups) can sometimes take a little while. I'd prefer to delay it until the user has clearly paused. I'll figure out a work around for now, good to know people have asked about this already.
  13. Howdy folks! For those of you in the web development world on a mac that use Pow I've just whipped up a workflow to make it easy to restart Pow, restart any single application, or launch (in your default browser) any single application. Details here: http://pjkh.com/projects/alfred-pow-workflow/
  14. Are there plans for an official workflow directory? And/or official update mechanism?
  15. I'm playing around with workflows and while working on one happened to need to look up an IP address. So started working on a workflow that would let me type things like "dig alfredapp.com" and "dig alfredapp.com mx" and get the results back. It's easy to do if I use notifications or large text. But I wanted to cheat and keep it inline. Like the below. Which works, but it fires off the script at "xxx a" and "xxx al" and "xxx alf", etc. What I'd love is a checkbox that said "don't run script until user hasn't typed for 100 milliseconds". I know I could do it by not executing the long part of the script until the last character was say a '.' or something, but I was hoping we could get a delay-for feature? And I know I'm already abusing the script filter stuff, but it looks cool and I noticed some other workflows (weather) do it as well. Any advice?
×
×
  • Create New...