Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Support for PopClip? (Read 7153 times)
Jerry Krinock
Admin
Offline
Posts: 1683
Location: San Jose, California, USA
Joined: Sep 29th, 2008
Re: Support for PopClip?
Reply #4 - Aug 1st, 2013 at 4:39pm
Print Post  
I looked at the example script that they have for Evernote, and combined it with our NetNewsWire-to-BookMacster script.  The idea is pretty simple.  Write a script which gets a title, URL and some additional text from PopClip, and creates a new bookmark in BookMacster with these three values as the bookmarks's Name, URL, and Comments, respectively.  Something like this should work…

set aName to "{popclip browser title}"
set aUrl to "{popclip browser url}"
set aComment to "{popclip text}"

tell application "BookMacster"
     land new bookmark name aName url aUrl comments aComment
end tell


Apparently, this script is run in some kind of environment which assigns the name, URL and some other text to those "{popclip whatever}" thingeys.  I don't know how those work.  I blindly copied the doublequotes and curly brackets from PopClip's EverNote script.  My script assigns these to the variables aName, aURL, and aComment, then, finally assigns them to a newly-landed bookmark in BookMacster.

Writing the code as I have done above is probably easier than what I am leaving to you, which is to figure where to put that code and how to "install" it into PopClip  Cheesy  Then, there's testing and fixing.
  

Jerry Krinock
Back to top
IP Logged
 
Rob Lewis
Senior Member
Offline
Posts: 51
Joined: Aug 2nd, 2009
Re: Support for PopClip?
Reply #3 - Aug 1st, 2013 at 3:57pm
Print Post  
Rob Lewis wrote on Jul 31st, 2013 at 3:06pm:
Thanks for the suggestion; I'll investigate


It turns out that they do support running AppleScripts (among other techniques).

If interested, here's the documentation on creating PopClip extensions:

https://github.com/pilotmoon/PopClip-Extensions
  
Back to top
 
IP Logged
 
Rob Lewis
Senior Member
Offline
Posts: 51
Joined: Aug 2nd, 2009
Re: Support for PopClip?
Reply #2 - Jul 31st, 2013 at 3:06pm
Print Post  
Thanks for the suggestion; I'll investigate
  
Back to top
 
IP Logged
 
Jerry Krinock
Admin
Offline
Posts: 1683
Location: San Jose, California, USA
Joined: Sep 29th, 2008
Re: Support for PopClip?
Reply #1 - Jul 31st, 2013 at 2:51pm
Print Post  
Hello, Rob.

I've added this to our features to consider.  But since our development schedule is pretty full for the forseeable future (which is about 2 months in this business), I'll offer an alternative…

I'm assuming that PopClip might have a Run AppleScript hook.  A motivated user could write a little script, as we have done with NetNewsWire, using the land new bookmark command in BookMacster's AppleScript dictionary.  Anyone interested should have a look at the NNW-to-BookMacster.scpt in BookMacster's Sample AppleScripts download.
  

Jerry Krinock
Back to top
IP Logged
 
Rob Lewis
Senior Member
Offline
Posts: 51
Joined: Aug 2nd, 2009
Support for PopClip?
Jul 31st, 2013 at 2:23pm
Print Post  
I'm really enjoying an OS X extension called PopClip. In its basic form it pops up an iOS-style menu of options when you select text. Typically you get Cut, Copy, Search, and Define options, though if the selected text is a URL you can go there with a click.

Here's the beauty part: they have a big library of extensions to add other functions to the pop-up menu. See this: http://pilotmoon.com/popclip/extensions/

And I thought how nice it would be to have an extension to copy a URL into BookMacster.

I've already suggested this to the folks at PilotMoon, but just wanted to mention it here, too.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint