Skip to content

Instantly share code, notes, and snippets.

View benwaldie's full-sized avatar

Ben Waldie benwaldie

View GitHub Profile
@benwaldie
benwaldie / 2012-11-25-TUAW_Waldie-1.applescript
Created November 26, 2012 04:10
TUAW - Set Up Cascade Windows Test
-- Prepare a name for the test folder
set theRootFolderName to "Cascade Windows Test"
-- Close any opened windows
tell application "Finder"
close every window
-- Locate the test folder, creating it if it doesn't exist
if folder theRootFolderName of desktop exists then
set theRootFolder to folder theRootFolderName of desktop
@benwaldie
benwaldie / 2012-11-16-TUAW_Waldie.applescript
Created November 19, 2012 20:35
TUAW - Create Evernote Template Notebook
-- Get the path to the Evernote templates folder
set theTemplatesFolder to (path to documents folder as string) & "Evernote Templates:" as alias
-- Retrieve a list of template file names without their .enex extensions
set theTemplateNames to list folder theTemplatesFolder without invisibles
repeat with a from 1 to length of theTemplateNames
set aTemplate to item a of theTemplateNames
if aTemplate contains ".enex" then set aTemplate to text 1 thru -6 of aTemplate
set item a of theTemplateNames to aTemplate
end repeat