This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
-- Initial dialogs for path and real page number. | |
-- 3 notes creation eliminated. It uses the 5 created beforehand with http://organognosi.blogspot.com.es/2011/03/how-to-create-correctly-skim-notes.html | |
-- Note numbers to retrieve info from is changed. | |
-- Colors and codes changed. | |
-- Stephen Margheim | |
-- 10/18/13 | |
-- open source | |
https://gist.github.com/smargh/7046486 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--http://www.organognosi.com | |
tell application "Skim" | |
set colorMessage to "" | |
set pageNotes to notes of current page of document 1 | |
repeat with pageNote in pageNotes | |
set noteColor to color of pageNote | |
set noteColorText to "" | |
repeat with codeColor in noteColor | |
set noteColorText to noteColorText & codeColor & " " | |
end repeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--http://www.organognosi.com | |
-- 2012-09-30 | |
--it matches exact phrases using quotes and single words | |
--the locked files in DEVONthink are excluded from the search | |
--the index is created for the active DEVONthink database | |
tell application "DEVONthink Pro" | |
set searchWord to text returned of (display dialog "Enter the search word/phrase:" default answer "") | |
set searchWordList to every word of searchWord | |
set numberOfSearchWords to count searchWordList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Google Chrome" | |
tell front window | |
set theClip to active tab execute javascript "(function(){clip = window.getSelection(); | |
url = location.href; | |
var brackets = \"\\[\\[\"; | |
var myDate = new Date(); | |
var year = myDate.getFullYear(); | |
var month = myDate.getMonth(); | |
if(month < = 9) | |
month = month + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--2011-06-10 | |
--http://organognosi.blogspot.com/ | |
tell application "Skim" | |
set the clipboard to "" | |
set numberOfNote5 to (get text for note 5 of page 1 of document 1) as string | |
set pdfTitle to get (extended text of note 4) of page 1 of document 1 as string | |
set numberOfPages to count pages of document 1 | |
activate | |
set myColorCodes to my chooseColor() --εκτός των loops πρέπει να βρίσκεται, μια φορά το θέτεις |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){clip%20=%20window.getSelection();%20url%20=%20location.href;%20var%20currentdate%20=%20new%20Date();%20var%20weekdayNames%20=%20new%20Array("Sunday",%20"Monday",%20"Tuesday",%20"Wednesday",%20"Thursday",%20"Friday",%20"Sat");%20var%20weekday%20=%20weekdayNames[currentdate.getDay()];%20var%20brackets%20=%20"[[";%20%20var%20myDate%20=%20new%20Date();%20%20var%20year%20=%20myDate.getFullYear();%20var%20month%20=%20myDate.getMonth();%20if(month%20<=%209)%20%20%20%20%20month%20=%20'0'+month;%20var%20day=%20myDate.getDate();%20if(day%20<=%209)%20%20%20%20%20day%20=%20'0'+day;%20var%20prettyDate%20=%20year%20+'-'+%20month%20+'-'+%20day;%20var%20minutes%20=%20myDate.getMinutes();%20if(minutes%20<=%209)%20minutes%20=%20'0'%20+%20minutes;%20%20%20var%20hours%20=%20myDate.getHours();%20if(hours%20<=%209)%20hours%20=%20'0'%20+%20hours;%20%20%20theFinalString%20=%20clip%20+%20"%20("%20+%20url%20+%20"%20-%20"%20+%20brackets%20+%20prettyDate%20+%20"]]%20"%20+%20weekday%20+%20",%20"%20+%20hours%20+%20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--2011-03-08 | |
--http://organognosi.blogspot.com | |
--the script works only for one PDF file per time | |
tell application "DEVONthink Pro" | |
set this_item to the content record of think window 1 | |
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 PdfPath to (POSIX file PdfPath) as alias |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Skim" | |
set FilePath to get the file of front document | |
tell application "Finder" | |
activate | |
reveal FilePath | |
end tell | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(** | |
--You need to adjust appropriately the name of the DEVONthink database in the line: | |
tell database "MySources" | |
**) | |
tell application "Skim" | |
set the xDEVONthinkLink to (get text for note 4 of document 1) as string | |
set customUUID to text 21 thru -8 of xDEVONthinkLink as string | |
end tell |
OlderNewer