Skip to content

Instantly share code, notes, and snippets.

@jsmm
Created October 23, 2013 22:23
Show Gist options
  • Save jsmm/7127836 to your computer and use it in GitHub Desktop.
Save jsmm/7127836 to your computer and use it in GitHub Desktop.
--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
set noteText to text of pageNote
set lengthNoteText to length of noteText
if lengthNoteText > 10 then
set noteText to characters 1 thru 10 of noteText as text
else
set noteText to noteText
end if
set colorMessage to colorMessage & "The color code of the note \"" & noteText & "...\" is " & noteColorText & return & return
end repeat
display dialog colorMessage
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment