-
-
Save florido/3da528adcd59d58f5a8f6c2b06024f73 to your computer and use it in GitHub 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
property targetDir : "/Users/bkelly/Dropbox/Notes/" | |
property editorApp : "/Applications/Byword.app" | |
on getNewFileName() | |
set fileName to (text returned of (display dialog "Enter the filename with extension" default answer "Untitled-1.md")) | |
return fileName | |
end getNewFileName | |
tell application "Byword" | |
set fname to my getNewFileName() | |
set fullPath to quoted form of (targetDir & fname) | |
do shell script "touch " & fullPath | |
do shell script "open " & editorApp & " " & fullPath | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment