On 11 Aug 2016, at 19:31, Mike Petonic wrote:

On further thought, I dont't think that it's possible to modify Freeplane
directly, since it's a Java program and not a Cocoa progam.

Oh, yikes. That makes a big difference. You can’t generally modify Cocoa apps either, but you can at least ask them for information.

Could I write a separate stand-along program (invoked when Freeplane fires up) to register as the provider class for the Freeplane program to catch
the ```[provider resolveProxyObject:nil]``` call?

No, that message would only ever be sent to a Quicksilver plug-in.

What you *could* do is have Freeplane post a [notification][nsn] system wide when it starts, or when the “selection” changes, or whatever you’re looking for. I doubt you can send such a Notification from Java, but if you can get it to call an external command, you could write a simple command line utility in Swift that posts the notification.

Then, in Quicksilver, you’d have a plug-in that watches for that notification and uses the information in it when “resolving” one or more proxy objects.

Any pointers?  If I can't do it in Applescript, then I'll probably try
Swift.

As I said, you could write a command line tool in Swift. I don’t think there’s any reason why you couldn’t write a QS plug-in entirely in Swift too, but I couldn’t tell you what’s involved there. This might be easier with the upcoming release, since I think you can [just use protocols][qsp], which is the more “Swiftish” way to do things.

[nsn]: https://developer.apple.com/reference/foundation/nsnotification
[qsp]: https://github.com/quicksilver/Quicksilver/pull/2250

--
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 https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.

Reply via email to