Save the following as ~/Library/Application Support/Quicksilver/ Actions/New Document or Window.scpt, and then restart QS. Select one or more applications in the first pane, and run this action on them in the second pane.
on open these_items repeat with i from 1 to count these_items try set bid to bundle identifier of (info for item i of these_items) tell application id bid to launch tell application "System Events" set (first application process whose ¬ bundle identifier is bid)'s frontmost to true keystroke "n" using command down end tell end try end repeat end open On Jul 16, 12:21 pm, David Barry <[email protected]> wrote: > Thanks for the reply rob, I'll start messing around with that and see > if I have any success. > > On Jul 16, 7:06 am, Rob McBroom <[email protected]> wrote: > > > > > On Jul 15, 2010, at 8:51 PM, David Barry wrote: > > > > Is it possible to open a new window from an already running program > > > with quicksilver? For example, I have a terminal open, but it's in > > > another space, and I would like to open a new one quickly in the > > > current space, but I haven't been able to find any way to do this with > > > quicksilver. The example is Terminal, but preferably this would work > > > with any document based application(Firefox, TextEdit, etc.). > > > This would probably involve AppleScript, which is not my area, but maybe > > something like this: > > > tell application XYZ to hit ⌘N > > > “XYZ” would be the name of an application that you selected in > > Quicksilver’s first pane. I’m not sure how you would parse that, but I know > > Quicksilver can pass things into an AppleScript. > > > -- > > Rob McBroom > > <http://www.skurfer.com/>
