Re: Bash scripts without bashrc?
On Wednesday, September 14, 2016 at 8:39:50 PM UTC+2, Joseph Reagle wrote: > > The following doesn't work, iTerm is always in front of the Zim python > window. > As I said, you have to amend the name of the process, namely with the application you see in the Dock or the App Switcher, be it Terminal, iTerm, a Python interpreter, etc. -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On 14 Sep 2016, at 14:37, Joseph Reagle wrote: Digging a little more, in the action dialog in which "type" should I be doing the dragging? Applications? Files & Folders? I would expect both actions to appear under “Files & Folders”, but I usually do my re-ordering under “All Actions” so I can see them all. -- Rob McBroom http://www.skurfer.com/ -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
The following doesn't work, iTerm is always in front of the Zim python window. ''' #!/bin/bash /usr/local/bin/python $HOME/bin/zim-0.65/zim.py & /usr/bin/osascript -e "tell application \"System Events\" to set frontmost of process \"Zim\" to true" ''' > > -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
Digging a little more, in the action dialog in which "type" should I be doing the dragging? Applications? Files & Folders? When I type 'z' or 'zim' the icon is of a blank terminal with 'exe' in green on it. -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
Weird, for some reason I lost the "run" option. I have "open", "reveal", and 19 other actions but no run -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On Monday, September 12, 2016 at 2:05:43 PM UTC+2, Joseph Reagle wrote: > > 2. When I open zim using QS (which is a bash script, calling a python > script) zim always appears behind the other windows, is there a way to > foreground it automatically like other apps? > Try appending this to your bash script (just amend the name of the process) /usr/bin/osascript -e "tell application \"System Events\" to set frontmost of process \"Zim\" to true" -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On 12 Sep 2016, at 8:05, Joseph Reagle wrote: Thanks Rob, I think this works! Two follow up questions: 1. Is there a way to make run the default action for scripts, rather than open? (Now I have to type zr to open Zim in this way.) Preferences → Actions It’s generally safe to drag the more specific actions up above the general ones. In this case, I think “Run […]” only applies to executables, so dragging it higher than “Open” shouldn’t break your ability to open Folders, PDFs, etc. 2. When I open zim using QS (which is a bash script, calling a python script) zim always appears behind the other windows, is there a way to foreground it automatically like other apps? I’m sure there is, but I don’t know it off the top of my head. I’ll at least say that the decision to open it in the background is probably happening well after Quicksilver has done its part, so I’d look elsewhere for the solution. -- Rob McBroom -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On Sunday, September 11, 2016 at 12:09:17 PM UTC-4, Rob McBroom wrote: > > Try using the “Run […]” action. (The arguments in the third pane > are optional.) From glancing at the code, I think that one runs the > command outside a shell. > > That will just return the text (if any) to QS, which I think it what you > want since you said it’s not interactive. > Thanks Rob, I think this works! Two follow up questions: 1. Is there a way to make run the default action for scripts, rather than open? (Now I have to type zr to open Zim in this way.) 2. When I open zim using QS (which is a bash script, calling a python script) zim always appears behind the other windows, is there a way to foreground it automatically like other apps? > > -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On Saturday, September 10, 2016 at 4:55:25 PM UTC-4, 1.61803 wrote: > > --norc option? It's in the man page. > Thanks, I tried various of this but the problem is that iTerm will run bashrc regardless. -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
Re: Bash scripts without bashrc?
On 10 Sep 2016, at 13:28, Joseph Reagle wrote: Hi, I love QS but I have one thing that annoys me. I've added $HOME/bin to my catalog so I can quickly invoke some shell scripts. However, they aren't interactive and just launch a java and a python app (in subfolders, and need some paths set up). I don't need them to run .bash_profile or .bashrc. In fact, doing so slows things down as they run keychain and ssh-add, which takes a second or two. When I invoke one of these scripts, a new tab opens in iTerm2, I see it run .bashrc before running my script, which slows things down. Granted, it's easy to be confused about sh, bash (interactive and login), iTerm2, and QS, but I think I've eliminated the first two, leaving me with a question: how can I invoke a script without bashrc being invoked. ird:~$ cat bin/zim #!/bin/bash /usr/local/bin/python $HOME/bin/zim-0.65/zim.py & Try using the “Run […]” action. (The arguments in the third pane are optional.) From glancing at the code, I think that one runs the command outside a shell. That will just return the text (if any) to QS, which I think it what you want since you said it’s not interactive. If you actually want the thing in a Terminal window, but without the shell, you might need to create new profile that runs the command without your shell, then tell QS to open that profile. (I know this is possible with Terminal anyway. Not sure about iTerm.) -- Rob McBroom http://www.skurfer.com/ -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicksilver+unsubscr...@googlegroups.com. To post to this group, send email to blacktree-quicksilver@googlegroups.com. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.