Skip to content

Instantly share code, notes, and snippets.

The AppleScript code is the following:
--2011-03-25
--http://organognosi.blogspot.com
tell application id "com.devon-technologies.thinkpro2"
set these_items to the selection
if these_items is {} then error "Please select some contents."
repeat with this_item in these_items
--2011-04-02
--http://organognosi.blogspot.com
tell application "Skim"
display dialog "Give the written page number:" default answer "" buttons {"Cancel", "OK"} default button 2
set writtenNumber to text returned of the result as integer
set numberNote5 to (get text for note 5 of page 1 of document 1)
set numberInThePDF to writtenNumber - numberNote5
go document 1 to page numberInThePDF of document 1
--2011-06-10
--http://organognosi.blogspot.com/
tell application "Skim"
set the clipboard to ""
set numberOfPages to count pages of document 1
activate
set myColorCodes to my chooseColor()
display dialog "Do you want to export all the notes or some of them?" buttons {"All", "Some"} default button 1
set answer to button returned of the result
tell application id "com.devon-technologies.thinkpro2"
set these_items to the selection
if these_items is {} then error "Please select some contents."
repeat with this_item in these_items
set RecordLink to the reference URL of this_item
set DevonThinkLink to RecordLink & "?page=0"
set PdfPath to get the path of this_item
set PdfName to the name of this_item
@jsmm
jsmm / obsidian-web-clipper.js
Last active September 17, 2021 07:50 — forked from kepano/obsidian-web-clipper.js
Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */