I would assume that that second line hangs because QS is in the process of running a command, and then you ask it to reinvoke _as part of that command_ and there's a conflict. Whereas when you start QS from osascript on the command line (or from Script Editor, or anywhere else except _from QS_), that's just an unusual way of starting QS, there's no conflict.
Out of curiosity, do you have "run tasks and actions in the background" checked? If not, try checking it and run the second line again—it just might work at that point, because QS would then be running the action in a background thread while `qs` communicates with the UI thread, so the background thread can finish its job without getting blocked by the work `qs` is causing the main thread to do. Regarding returning stuff to QS from Pane-1 AppleScripts—check out the scripts "Current Document", "Current Application", etc. from the UI Access plugin—not sure where they're stored, try looking inside the plugin bundle or checking out the QS source from Github and doing a search. They are certainly capable of doing what you ask. On Thursday, April 11, 2013 11:52:29 AM UTC-4, 1.61803 wrote: > > On Thursday, April 11, 2013 1:30:23 PM UTC+2, 1.61803 wrote: >> >> osascript | qs :-)) >> > > Well,… > > osascript -e "do shell script \"qs ~/Desktop\"" > > works in shell, but > > *do shell script* "qs ~/Desktop" ⇥ Run as AppleScript > > doesn't, QS hangs and needs to be quit. Any ideas? > > qs crash logs read > > *** Terminating app due to uncaught exception > 'NSInvalidReceivePortException', reason: 'connection went invalid while > waiting for a reply because a mach port died' > terminate called throwing an exception > abort() called > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
