Convert txt to md

Make a text file. Select the name (click, short pause, then click again). Add “.markdown” (dot but no quotes) to the end. It’s now a Markdown document.

I like my own Path Finder-style renaming script that I’ve assigned to command-shift-R so that I can select a document or group and pop open a dialog to easily change the name.

(* 
v1 original; worked with content records and not groups
v2 modified to work with groups; added error handling 20131021
*)

tell application id "DNtp"
	try
		
		if selection is {} then error "Please select an item to rename"
		set numberSelected to count selection
		
		-- comment the following line to eliminate the "select a single item" error
		if numberSelected is greater than 1 then error "Please select a single item to rename"
		
		set theRecord to the first item of (the selection as list)
		set theName to the name of theRecord
		set newName to text returned of (display dialog "" default answer theName with title "Edit Name")
		if newName is not equal to "" then
			if newName is not equal to theName then
				set the name of theRecord to newName
			end if
		end if
	on error errorMessage
		display dialog errorMessage
	end try
end tell