Jump to content

hyperknot

Member
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hyperknot's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. I only thought about using Script Filter as that was the only place where I found your recommended option of not stripping whitespaces. I've updated the shared workflow file, it works for me quite nice as it is now.
  2. With pbpaste it work perfectly. I tried rewriting it to a script filter, but I couldn't even launch it with a keyword, when I pressed Return it just disappeared and offered me to google my keyword instead. Probably a totally newbie setting somewhere, but at the end I went back to run script.
  3. Do you mean changing the current flow from: keyword -> > ({clipboard}) -> run script -> copy to clipboard to script filter -> copy to clipboard ? I was using the above flow because it was in the templates for clipboard processing.
  4. So far I realised that it's the $1 argv bit which removes my newlines. How can I preserve it? As a hack, I simply did pbpaste | /usr/local/bin/astyle and it seems to work, but how would I do it normally?
  5. I'm trying to write a workflow, which would clean a C/C++ file, via astyle command line program, using clipboard copy and paste. It has to be the simplest workflow, yet I cannot make it preserve new lines. What is the best way to output something into stdin and read from there? So far I'm trying this in a bash script (with argv) but it removes all the new lines characters: echo -n $1 | /usr/local/bin/astyle https://www.dropbox.com/s/bkffs7j6nchwbog/astyle clean.alfredworkflow?dl=0
×
×
  • Create New...