Skip to content

Instantly share code, notes, and snippets.

@lucianghinda
lucianghinda / automator_new_markdown_file.applescript
Last active August 29, 2015 14:21 — forked from rarylson/automator_new_file.scpt
Change the filetype to markdown .md and automatically open it with iA Writer without renaming.
on run {input, parameters}
set file_name to "untitled"
set file_ext to ".md"
set is_desktop to false
-- get folder path and if we're in desktop (no folder opened)
try
tell application "Finder"
set this_folder to (folder of the front Finder window) as alias