Created
October 23, 2013 22:23
-
-
Save jsmm/7127836 to your computer and use it in GitHub Desktop.
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 | |
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