Default New file type?

I’m importing a batch of HTML code snippets (one at a time) and when I drag/drop the HTML code into DTPO it creates a new Text file with the code. Is there a way to make my drag/drop an HTML file automatically?

I’ve set up a keyboard shortcut for New:HTML, but was wondering if there a more effective way to do this?

The only solution is AppleScript, for example…

tell application id "com.devon-technologies.thinkpro2"
	set theCode to the clipboard as string
	create record with {name:"New Snippet", type:html, source:theCode} in current group
end tell

…use this script after copying the code.

Beautiful! Works great. :smiley: