This file contains hidden or 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
| set theList to {{"num", 1}, {"title", "the Best"}} | |
| list2record(theList) | |
| on list2record(l) | |
| --requires Late Night Software's List & Record Tools (http://www.latenightsw.com/freeware/list-record-tools/) | |
| --takes list with paired sub-lists and converts to record | |
| set rec to {} | |
| repeat with i from 1 to count of l | |
| set x to item i of l | |
| set rec to set user property (item 1 of x) in rec to (item 2 of x) |
This file contains hidden or 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
| property theHome : path to home folder as string | |
| set base1 to POSIX path of theHome & "Copy/" | |
| set base2 to POSIX path of theHome & "Documents/PDFs/" | |
| tell application "Skim" | |
| set pdfTitle to name of document 1 | |
| set customurl to "pdfpen:///" & pdfTitle & "?pg=" | |
| set notePage to index of current page of document 1 | |
| set theURL to customurl & notePage | |
| set filePath to path of document 1 |
This file contains hidden or 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
| property tid : AppleScript's text item delimiters | |
| --these file types represent all of the options in BibDesk | |
| property filetypes : {"article", "book", "booklet", "commented", "conference", "glossdef", "inbook", "incollection", "inproceedings", "jurthesis", "manual", "mastersthesis", "misc", "periodical", "phdthesis", "proceedings", "techreport", "unpublished", "url", "electronic", "webpage"} | |
| property fieldtypes : {"address", "annotate", "author", "booktitle", "chapter", "crossref", "date-modified", "doi", "edition", "editor", "howpublished", "institution", "issn", "journal", "key", "month", "note", "number", "organization", "pages", "publisher", "school", "series", "title", "type", "url", "urldate", "volume", "year"} | |
| set t to the clipboard |
This file contains hidden or 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
| (* CREATE JSON OF FILE METADATA | |
| --Stephen Margheim | |
| --2/4/14 | |
| --open source | |
| REQUIREMENTS: | |
| - Late Night Software's List & Record Tools (http://www.latenightsw.com/freeware/list-record-tools/) | |
| - Mousedown Software's JSON Helper (http://www.mousedown.net/mouseware/JSONHelper.html) |
This file contains hidden or 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 "Evernote" | |
| set Evernote_Selection to selection | |
| if Evernote_Selection is {} then display dialog "Please select a note." | |
| set noteLink to "" | |
| repeat with i from 1 to the count of Evernote_Selection | |
| set noteHTML to HTML content of item i of Evernote_Selection | |
| end repeat | |
| end tell |
This file contains hidden or 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
| (* ZOTERO SQLITE QUERIES | |
| --Stephen Margheim | |
| --2/4/14 | |
| --open source | |
| This is a collection of SQLite queries to be used with a user's Zotero database to extract most relevant pieces of information. | |
| Each query will return a string list of all the item keys that match the query. | |
| *) |
This file contains hidden or 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
| property zpdftk : "/usr/local/bin/pdftk" | |
| tell application "Finder" | |
| set pdfFile to choose file of type {"PDF ", "PDF Document"} | |
| set pdfPath to (POSIX path of pdfFile) | |
| end tell | |
| set pdfmeta to do shell script zpdftk & " " & quoted form of pdfPath & " dump_data" |
This file contains hidden or 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
| set biglist to {} | |
| set theListCommand to {"kMDItemFSName ", "kMDItemAuthors ", "kMDItemEncodingApplications ", "kMDItemCreator ", "kMDItemTitle ", "kMDItemDescription ", "kMDItemContentCreationDate "} | |
| set theList to {"File Name = ", "Author = ", "PDF Producer = ", "Content Creator = ", "Title = ", "Description = ", "Content Creation Date = "} | |
| tell application "Finder" | |
| set SiTem to selection | |
| repeat with item_a from 1 to number of items in SiTem | |
| set this_item to item item_a of SiTem as string | |
| set this_item to POSIX path of this_item | |
| repeat with item_b from 1 to number of items in theListCommand | |
| set this_kMDItem to item item_b of theListCommand as string |
This file contains hidden or 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:window.location='drafts://x-callback-url/create?text='+encodeURIComponent(document.title+'\n\n')+'%5B'+encodeURIComponent(document.title)+'%5D('+encodeURIComponent(location.href)+')'+encodeURIComponent('\n\n>'+window.getSelection())+'&action=postachio&x-success='+encodeURIComponent(location.href); |
This file contains hidden or 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:window.location='drafts://x-callback-url/create?text='+encodeURIComponent(document.title+'\n\n')+'%5B'+encodeURIComponent(document.title)+'%5D('+encodeURIComponent(location.href)+')'+encodeURIComponent('\n\n>'+window.getSelection()); |