Jump to content

bhanquier

Member
  • Posts

    17
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bhanquier

  1. Hi, 

    First thanks for the great workflow. 

     

    I've noticed an anomaly in its behavior with Microsoft Office apps (in Excel in particular is a bummer as that's where it's most useful). It's adding a backlash before any parenthesis (at least that's the only one I've identified, it doesn't touch { nor [ ).

    I'm adding a screenshot of the text in Excel (blue background, ordinary spaces, no line returns), and of the resulting text in Case Converter. 

     

    Any idea? 

     

    Thanks a lot!

    In CC.png

    In Excel.png

  2. Hi, 

    I'm looking for a way to surround selected text with the usual (I think html?) codes for bold, italic and strike (

    [b][/b]

    ) with a keyboard shortcut. Nothing fancy nor extensive. 

    I understand one can do this with the Transform function in Alfred. Problem is, as far as I understand it would have to be done using a regex? 

    I would add my voice to the usual "just learn it", but the maybe twice I've approached regex in my entire life (and I'm no spring chicken) I've felt as if I was trying to climb a mountain to get to a pebble, maybe usual, but not a diamond. 

    So, I humbly ask: would anyone with knowledge of the Dark Arts be kind enough to help me? One example of the structure would be great, I think I'm not that dumb that I couldn't adapt to the others. 

    Thanks for the generous one(s). 

  3. Hi, 

    Is it possible to adapt this workflow for Chromium? I see it refers to a open_in_chrome.scpt, but I don't know how or where to get and modify this?

    Edit: sorry, I hadn't tried to use it and assumed the process would just use some code identification to find Chrome; as it is, the script asks for Chrome's location, i just chose Chromium and it works like a charm. 

    Thanks a lot, very handy.

  4. Got it! There were a couple of lines at the beginning of my config file that are dedicated to setting up xml-rpc connections in order to control aria2 via web browser; I guess they were interfering with any other means of communication. I removed them, and now it's working like a charm!

  5. It's also very nice of you to spend the time to take me by the hand.

    I've tried a couple of possible configurations. By default aria2 is supposed to look for the config file in $HOME/.aria/aria2.conf (but it doesn't), so there's the original there, and I made symlinks to it in various places to see if that would work, and no dice. 

    Just so you know, my HOME folder is an entire partition, maybe it makes a difference - I'm saying this because I know it's given problems with bitcasa for instance, even though it's an entire different type of software, you never know. 

    So the last code I tried was as such: 

    ./aria2c --conf-path=/Volume/bhanquier/Library/Preferences/aria2.conf -x15 "$(pbpaste)"
    

    and I've also tried putting a symlink in the workflow folder, where the aria2c binary is by the way: 

    ./aria2c --conf-path=./aria2.conf -x15 "$(pbpaste)"
    

    To get the download in the proper place I had to add an argument in the script, other wise it would download in the workflow folder: 


    ./aria2c --dir=/Volumes/bhanquier/Downloads -x15 "$(pbpaste)" 

    One fortunate unexpected thing is, I get a notification when the download is finished, and I didn't do a thing about it expect link a notification sheet!

  6. It actually works, I'm thrilled! Still a little of tinkering (took me ages to get it to download in the proper folder, for some reason I can't get the config file to be read… could it be a problem with the "--" before the prefix?), but it's already a very good start. 

    Thanks so much Vitor.

  7. Muito obrigado Vitor. 

    Wow… that's certainly not something I could do!

    What about a script like, copy the link in the clipboard, call an action in Alfred and paste the link to download? I've tried to do that and couldn't get anything working… Like I said I'm really not proficient in command-line and scripts and stuff, even though I try before I call for help.

  8. Hi guys, 

    Well, I already posted something about how to launch aria2 (http://aria2.sourceforge.net) with Alfred. 

    What would be nice, if anybody can do that, would be to highlight or copy a link to the clipboard, from any place (Safari or otherwise) and have aria2 download it thanks to a hotkey for instance.

    I've been tinkering a little with workflows, but my knowledge is so limited I'm really stuck with this. So if anyone was kind enough to do it for me, I'd be more than thankful!

    Cheers to all

  9. Why, it seems my "problem" doesn't interest much  :)

    Anyways, after much tinkering, I've found out a solution: apparently you need to specify the whole path to the command-line tool in question… command-line will elude me for the rest of my life I guess! So in my case (YMMV) it gives:

    /usr/local/bin/aria2c --enable-rpc --rpc-allow-origin-all \
      --conf-path $HOME/.aria/aria2.conf \
      --load-cookies $HOME/.aria/cookies.sqlite3 \
      --daemon \
    

    or you can bundle the utility in the workflow, in which case it will be: 

    ./aria2c --enable-rpc --rpc-allow-origin-all \
      --conf-path $HOME/.aria/aria2.conf \
      --load-cookies $HOME/.aria/cookies.sqlite3 \
      --daemon \
    

    If it can be of help to someone else…

  10. Hi all, 

    I've been trying to turn into a workflow a script I wrote to start the super-nice and useful command-line downloader aria2. For some reason I don't seem to be getting any result, so maybe someone can help me? 

    The script is placed in a bin/bash sheet, and goes as follows: 

    aria2c --enable-rpc --rpc-allow-origin-all \
      --conf-path $HOME/Library/Preferences/aria2.conf \
      --load-cookies $HOME/.aria/cookies.sqlite3 \
      --daemon \
    

    As a script, it works perfectly, but in a workflow no dice.

    Any ideas?

    Thanks in advance!

     

    Edit: after seeing all those fantastic workflows some people are creating, if anybody wants to make one with more commands than just launch aria2 (hint: pasting a url directly from the clipboard), I would be more than grateful! Even though I try to do my best, I'm not at all command-line savvy myself unfortunately…

×
×
  • Create New...