On Thu Jul 25 2013 at 18:01:07, Afshin Haghgoo wrote:

> I'm returning to this thread as I have a bit of time to examine this over the 
> weekend.  I've pretty much exhausted support from the DT developers which you 
> can read their posts from the thread I started there by clicking here.  I was 
> disappointed in how they were wanting to point me to different apps instead 
> of helping me to find the broken connection between QS and DT.

I think the devs over there misunderstood. They seem to think you were asking 
for a plug-in within DT to enable getting the selection, when you were talking 
about a QS plug-in all along. Anyway, they correctly point out that LaunchBar 
and others use DT’s AppleScript library to do this. That’s exactly what QS 
would need do in a theoretical DT plug-in. That’s what it does for iTunes, 
iPhoto, Finder, and various other apps where the selection can be something 
other than text.

> What I find peculiar is that I can essentially send files to QS from iPhoto 
> but not from DT, even though the database structure is pretty much the same.

I’ve looked a little closer at how it works. (Side note: The iTunes plug-in is 
doing it wrong, so now I have to fix it.)

When the current application is iPhoto, Quicksilver checks for an iPhoto 
plug-in and asks it for something useful. If that fails, it tries to copy the 
selection, which sometimes works. Maybe that was working in DT at one point, 
but doesn’t now.

You could reproduce this manually by selecting and copying something in DT, 
then running “Clipboard Contents ⇥ Select in Command Window” to see if it fails 
in the same way.

> With DT, each time I hit cmd+esc while in full screen mode, I hear a chime 
> and then the app shrinks from full screen to windowed mode and QS appears but 
> with "Current Selection" written on the first pane rather than the file 
> itself.  Anyone know what this might mean, if it's a tell tale sign of 
> something?

This is a clue. If getting a selection fails, I believe QS will send the ⌘⎋ 
keystroke down to the application. For example, in TextMate, if you have no 
text selected, ⌘⎋ invokes the completion function. Maybe it toggles full-screen 
in DT?

> Is it possible to create a plug-in without requiring access to the code of 
> the app itself?

Do you think we have the source for iTunes? :-) Most plug-ins either use 
AppleScript, dig through the app’s files, use an API from the app developer, or 
(more likely) some combination of those.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to