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
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# You may find odd result: try searching for both device categories. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
# iOS 7 masks by @pgruneich on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests |
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
(* EXPORT ALL SKIM NOTES TO EVERNOTE WITH HYPERLINKS | |
-- Stephen Margheim | |
-- 9/7/13 | |
-- open source | |
REQUIRED PROGRAMS: | |
- Skim (pdf viewer and annotator) | |
- Evernote (cloud based note app) |
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
# cd into your Journal/entries/ folder first | |
# completely untested. Use at your own risk. | |
for file in $(grep -le "date>2012" *.doentry); do mv $file /backup_folder/; done |
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
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests | |
def find_icon(terms): |
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
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# You may find odd result: try searching for both device categories. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests | |
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
--The most current version of SmartPerspective is now in a GitHub repo. (https://github.com/brandonpittman/OmniFocus/blob/master/SmartPerspective.applescript) | |
on run | |
open_perspective() | |
end run | |
on open_perspective() | |
tell application "OmniFocus" | |
tell default document | |
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" | |
try | |
set Evernote_Selection to selection | |
if Evernote_Selection = {} then | |
display dialog "Please select the note to Wikify" | |
end if | |
set noteName to (title of item 1 of Evernote_Selection) | |
set notebookName to (name of notebook of item 1 of Evernote_Selection) | |
end try | |
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
display dialog "Get Link of selected item or choose other item?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
--Get Markdown formatted info for selected item | |
if result = {button returned:"Get Selected"} then | |
tell application id "com.devon-technologies.thinkpro2" | |
set devon_selection to the selection | |
if devon_selection is {} then display dialog "Please select something." | |
set Markdown_link to "" | |
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
(* INSERT MARKDOWN LINK TO CHOSEN PDF INTO TEXTEDIT DOC | |
-- Stephen Margheim | |
-- 14 July 2013 | |
-- open source | |
This script assumes you are writing in an open TextEdit document. It will prompt you to choose a PDF file when run. It will then insert the name of the chosen PDF (without the .pdf extension) as a Markdown reference link. That means the linked text is inserted at the cursor point along with a randomly generated 2-digit number and a letter of the alphabet as the link ID. Then, at the end of the document that same link ID and the custom URL are inserted. The cursor is placed one space after the title link. So, for example, you would have something like this: | |
"Some text [title][ID] (then type some more text) | |