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
(* INSERT MARKDOWN LINKS OF CURRENT PAGE OF SKIM PDF INTO TEXTMATE | |
-- created by Stephen Margheim | |
-- 06 July 2013 | |
-- open source | |
*) | |
tell application "Skim" |
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 "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 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 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 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 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 note or choose other note?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
--Get Markdown formatted info from Selected Note | |
if result = {button returned:"Get Selected"} then | |
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 |
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
display dialog "Get Link of selected note or choose other note?" buttons {"Get Selected", "Choose Other"} default button {"Get Selected"} | |
--Get Markdown formatted info from Selected Note | |
if result = {button returned:"Get Selected"} then | |
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 |
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
(* ACCEPT/REJECT CRITICMARKUP CHANGES | |
--Stephen Margheim | |
--23 July 2013 | |
--open source | |
--VERSION 2.0 | |
I rewrote the entire script from the ground up. | |
Changes: | |
--Script moves sentence by sentence and alters text each time, so that Contextual views become less and less cluttered. |
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
# Banner-style (default) | |
from Foundation import NSUserNotification, NSUserNotificationCenter | |
def notify(title, subtitle, text): | |
notification = NSUserNotification.alloc().init() | |
notification.setTitle_(str(title)) | |
notification.setSubtitle_(str(subtitle)) | |
notification.setInformativeText_(str(text)) | |
notification.setSoundName_("NSUserNotificationDefaultSoundName") | |
NSUserNotificationCenter.defaultUserNotificationCenter().scheduleNotification_(notification) |
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
import os, os.path, sys, urllib2, requests | |
class PyPiError(Exception): | |
def __init__(self, value): | |
self.value = value | |
def __str__(self): | |
return repr(self.value) | |
def _chunk_report(bytes_so_far, chunk_size, total_size): | |
if (total_size != None): |
OlderNewer