Jump to content

phyllisstein

Member
  • Posts

    366
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by phyllisstein

  1. Sorry about that! I must have uploaded a different version. I've changed the link in the original post.
  2. Thanks! I can't honestly think of a way to do it, but that doesn't mean it's impossible. More people might see the question if you ask in a separate thread.
  3. In the course of trying to add a price listing to the Kindle Bookstore workflow, a weird bug spawned: no matter what search URL I fed the script, I was getting results from all of Amazon. This was frustrating until I decided it was a feature. Now here and in AlfPT, a workflow to search all Amazon.com products. It's massively less reliable right now than the Kindle workflow, but I figured I'd put it out there for comment, improvement, and testing in the "release early, release often" spirit.
  4. My pleasure! I accidentally left the debug log command in there, so you may want to download it again from that link or update it through AlfPT so that it stops logging all its output. Not sure whether that'd slow it down at all, but better safe than sorry. No differences between the two versions otherwise.
  5. Alright, here you go: The workflow is in AlfPT and can also be downloaded here. Let me know if you run into any problems! ETA: Python is pretty well and heavily documented, and well-supported on StackExchange and in various other forums. You might want to hack around with it a bit and see what you can do before buying a whole book. What's more, I don't know that it's that popular among people writing Alfred scripts; I'm just more comfortable with it than with PHP. So your mileage may et cetera.
  6. Thanks! It's not quite as simple as pointing the script at a different URI, since it needs to search the page for specific tags that contain the data it needs; however, it's also not quite a matter of totally rewriting it, either, and the Kobo search page is pretty clearly laid-out, so I'll see if I can't put something together later this afternoon.
  7. If you're looking to set up mirrors, I'd be among the first to volunteer. Don't know how programmatically complex that would be, though.
  8. Now in AlfPT and here, a quick-'n'-dirty workflow to run shell commands without opening a Terminal window. Just enter `$` and the command, without a space. I wracked my brain trying to think of something fancy to do with it, but since bash completion isn't built into OS X, perhaps simple is best. Edited to reflect the improvements NickT proposed, it now expands ~/.bash_profile before running a command.
  9. Gotcha. Thanks for the info! I'll have to pick a better subtitle in the next update.
  10. Is it possible for one script to return feedback multiple times? My Kindle search workflow is a little slow, and it would be handy if I could present some kind of update to indicate that the input was recognized and the script is running before returning the results. I tried using multiple `print` statements in a Python script and found that Alfred would only pay attention to the first one.
  11. I've updated this link to a new version that shows cover art in search results, and hopefully the AlfPT update will be pushed through as well.
  12. I know Python is good with JSON and I found it not-too-difficult to get a feel for while I was playing with Sublime Text plugins. I'm not a software guy, really, but it seemed like with aggressive Googling and a little perseverance it was easy enough to figure out. As for your regex question, if it's always going to be a png file, this clumsily but accurately matches just the string you need, according to Patterns: (?<=")http.+png(?=",) But, again, not a software guy, so there's probably a more elegant way.
  13. Hello, fellow workers of flow! These workflows search the U.S. and UK Kindle Bookstores. The latest version of the script uses Amazon's search API rather than relying on scraping a search page. Additionally, book covers are locally cached and HTTP requests are locally cached, which should dramatically increase its speed. Both covers and prices are now (usually) displayed in the U.S. store, though the UK store does not support price listings. You can download them both through AlfPT or at the following links: Kindle Bookstore US Kindle Bookstore UK
  14. Hello, workers of flow! I've converted an old extension to a workflow, and thought you might like to give the results a shot. Open in Sublime defines the subl keyword. If you enter a path, it'll open that file in Sublime Text 2; if you select something in the frontmost Finder window and enter the keyword, it'll open the selected files or folders; and if you enter the keyword without anything selected or a path, it'll open the frontmost Finder window's folder in Sublime. If you've tried this before, be aware that I redid the AppleScript so that it now ought to work properly with Finder selections. Let me know if you have any problems! I'm @phyllisstein on Twitter and d-at-daniel-dot-sh if that's easier.
×
×
  • Create New...