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
// This is a little bit for using extended args | |
var f = function (id) { | |
// The first arg is an id. let's get the rest. | |
// the args variable will come back as a real array, after the first arg | |
var args = [].slice.call(arguments,1); | |
return(args) | |
} ; |
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
; AppleScript is just intolerable, but | |
; at least I can now add continuation lines properly | |
; | |
(require 'applescript-mode) | |
(defun as-insert-continuation-line () | |
"Insert the weird AppleScript continuation character" | |
(interactive) | |
(ucs-insert "00C2" 1 nil) | |
(newline) | |
(indent-according-to-mode) |
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
-- -*- Applescript-mode -*- | |
-- A trivial AppleScript automator service to create org-mode links to evernote notes | |
-- must have defined evernote:: links in org mode | |
on run {} | |
tell application "Evernote" | |
set selected_notes to selection | |
set the_links to "" | |
if selected_notes is not equal to {} then | |
repeat with n in selected_notes |
NewerOlder