> Le 5 août 2016 à 10:30, 1.61803 <[email protected]> a écrit : > > On Friday, August 5, 2016 at 8:44:26 AM UTC+2, Etienne wrote: > IMHO, no, unless you want to expose yourself to the world of pain that is > AppleScript when you try to interface with it from Obj-C/anything else really. > > I thought of it this way. You add a custom object which takes shell or > applescript commands in a text field. When you select this custom object in > the first pane, QS executes in the background 'shell commands ⇥ Run Command > in Shell' or 'applescript commands ⇥ Run as AppleScript' accordingly and > returns, let's say, paths, which are
> automatically Again, what if you want to return an URLs ? Unless you add (as the custom actions do) a way to tell in a side-channel how we're supposed to build a QS object from what you'll be returning, we'll have to guess, which may or may not do what you want. I'm afraid shell scripts have no such side channels anyway, unless we pass arguments asking the custom proxy what kind of object it will be, or clearly tell that only text, urls, and files are supported. > parsed — much like when you change the first pane to text mode and paste > paths and tab to select a further action. Just be aware that QS's file handling is one of the messiest places I can think of. You have to guess if it's text, file, url, and also texts, files, urls. If you expect that to work with anything other than one of those types, you're doomed. > It's less complicated than you described it, I think. Depends on whether you want a hacky solution or something generic. The problem is that if we add something that does the work mostly, we'll have to fix it anyway because it doesn't work for representing eg. open browser tabs, or finder windows or whatever isn't representable as a file. Cheers, Etienne Samson -- [email protected] Regards, Etienne Samson -- [email protected] -- 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 https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
