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
-- creates notes on every page in the lower L and lower R for those occasions where the scanner cut off the page numbers | |
set firstPage to (text returned of (display dialog "Enter Starting Page" default answer "")) as number | |
set currentPage to firstPage | |
tell application "Skim" | |
set pp to pages of document 1 | |
repeat with p in items of pp | |
tell p |
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
on alfred_script(q) | |
set quote to first paragraph of q | |
set otd to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to {"(Kindle Locations ", ")"} | |
set bits to every text item of q | |
set pageNumber to item 3 of bits | |
set quote to first paragraph of q | |
return quoted form of quote & " (" & pageNumber & ")" | |
set AppleScript's text item delimiters to otd | |
end alfred_script |
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
set themeName to "Black" | |
tell application "Keynote" | |
set theSlides to slides of document 1 | |
set theImages to {} | |
repeat with s in theSlides | |
set theImages to theImages & (images of s) | |
end repeat | |
set theDimensions to {} | |
repeat with i in theImages |
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 "Keynote" | |
tell document 1 | |
set theSlides to slides | |
repeat with s in the slides | |
tell presenter notes of s | |
set font to "Helvetica" | |
set size to 24 | |
end tell | |
end repeat | |
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
-- TextExpander snippet to add recipient's name to email | |
-- based on http://macsparky.com/blog/2015/6/automatically-add-recipients-name-to-email-with-textexapnder [sic] | |
-- updated to handle hyphenated first names properly | |
-- ( Original version would return Young for Young-Hee . This version returns Young-Hee. ) | |
set theResult to "" | |
tell application "System Events" | |
tell process "Mail" | |
tell text field "To:" of window 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
set theDate to do shell script "date '+%Y-%m-%d'" | |
set outputPath to "~/Dropbox/mytemp/" | |
set format to "txt" | |
set counter to 1 | |
set theFolder to "Notes" | |
-- uses a counter to avoid duplicate filenames if notes have the same title | |
tell application "Notes" | |
tell folder theFolder | |
set theNotes to every note |
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
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: lstag <tag>" | |
exit 1 | |
fi | |
mdfind "kMDItemUserTags == '*$1*'" -onlyin . | sort --ignore-case | grep $PWD | grep -v ^$PWD/.*/.*$ | sed 's!.*/!!' |
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
#!/bin/sh | |
# jstorPDFtoBibTeX | |
# requires pdftotext, tag | |
# has about a 85% success rate in my experience | |
header="@article{" | |
footer="}\n\n" | |
biblio="" | |
for filename in "$@" |
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
(* EXPORT ALL SKIM NOTES TO THE CLIPBOARD WITH MARKDOWN REFERENCE LINKS | |
(no longer) requires hackademic URL handler from github user smargh | |
entirely rewritten to take advantage of Skim's built-in templating | |
2016-06-26 by derickfay | |
*) |