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
| -- 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 |
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
| -- 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 |
NewerOlder