Pinboard has an api, but I'm not sure how to use it. Instead I whipped up a
little Applescript that essentially runs one of Pinboard's suggested
bookmarklets. Probably not any faster than just clicking a bookmarklet, but
satisfies my QS geekery.
*tell* *application* "System Events"
*set* appName *to* name *of* *the* *first* *process* *whose*
frontmost *is* *true*
*end* *tell*
*try*
*using terms from* *application* "Safari"
*tell* *application* appName
*set* pinIt *to*
"q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,scrollbars=yes,width=750,height=700'));"
*set* SelectedPage *to* *document* *of* *window* 1
*do JavaScript* pinIt in SelectedPage
*end* *tell*
*end* *using terms from*
*end* *try*
On Tuesday, November 19, 2013 11:48:45 AM UTC-7, Rob McBroom wrote:
>
> On 19 Nov 2013, at 13:35, paulw wrote:
>
> Nope, doesn't work. Can Applescript be made to handle either of these
> tasks?
>
> If Pinboard has a way to add URLs via a URL, like
> http://pinboard/add?url=XYZ, you could just create a custom web search
> using the Web Search plug-in, replacing XYZ with ***.
>
> Then you could just do “Current Web Page ⇥ Find With… ⇥ Whatever you named
> it”. You could also create a trigger that does that, of course.
>
> --
> 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.