Link to home
Start Free TrialLog in
Avatar of bleggee
bleggeeFlag for United States of America

asked on

Is there a Mac OSX Right-Click for creating a New Document ?

I am looking for an easier way to create a New Document in a folder on the Mac.
Does anyone know of a SW or a technique so that I can use on a Mac to do something like this:
Use Finder to go to a specific folder, then (like Windows has) right-click & select "New Word Document" or "New BBEDIT Document" or whatever?
There used to be a Util called "nufile" but it is no longer suported & evidentally does not work with newer versions of OSX.
Thx
Avatar of ozo
ozo
Flag of United States of America image

touch folder/NewDocument
ASKER CERTIFIED SOLUTION
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I suspect you are trying to avoid the nuisance of drilling down to the folder you want in the Save dialogue box. It is easier to locate folders in finder.

An application which won't do quite what you want but will serve the same purpose is DefaultFolderX:

http://mac.appstorm.net/reviews/productivity-review/default-folder-x-browse-file-dialogs-at-lightning-speed/

http://www.macworld.com/article/2027192/apps-we-cant-live-without-default-folder-x.html

http://www.macnn.com/articles/14/12/18/open.and.save.documents.faster.with.a.utility.that.remembers.where.you.go/

I have been using it for years.

As long as you have the destination folder open in Finder, you can quickly navigate to that folder in the Save dialogue box, just by clicking on the folder in Finder or clicking on the Finder icon that Default folder adds to the Save dialogue box. DefaultFolderX will then change the Save destination to that folder.
Open Automator .. create a new Service workflow  .. add a single component  "Run Applescript" and paste the applescript provided into the box

set doc_list to {"Add new..."}
tell application "Finder"
	if not (exists folder "NewHere" of folder (path to application support from user domain)) then
		display dialog "This is the first time you've run NewHere." & return & return & "Files added to the list are located at" & return & "~/Library/Application Support/NewHere" & return & "Removing a file from this folder removes it from the list."
		make new folder at folder (path to application support from user domain) with properties {name:"NewHere"}
	else
		try
			set doc_list to doc_list & name of every file of folder "NewHere" of folder (path to application support from user domain) as list
		end try
	end if
	set my_file to choose from list doc_list with prompt "Choose a document to place here"
	if result is not false then
		set my_file to item 1 of my_file as string
		if my_file is "Add new..." then
			set new_file to choose file
			duplicate file new_file to folder "NewHere" of folder (path to application support from user domain) with replacing
			set my_name to text returned of (display dialog "Enter a name for the new file." default answer (name of new_file as text))
			my do_it((name of new_file as text), my_name)
		else
			set my_name to text returned of (display dialog "Enter a name for the new file." default answer my_file)
			my do_it(my_file, my_name)
		end if
	end if
end tell

on do_it(my_file, my_name)
	tell application "Finder" to set my_dest to (folder of the front window) as text
	set my_dest to my_dest & my_name as text
	set my_origin to (path to application support from user domain) & "NewHere:" & my_file as text
	do shell script "cp " & quoted form of (POSIX path of my_origin) & " " & quoted form of (POSIX path of my_dest)
	tell application "Finder" to open my_dest as alias
end do_it

Open in new window


At the top set the "service receives selected" to FOLDERS  and in "Finder.app"
When you Save it will be added in your ~/Library/Services folder

In System Preferences : Keyboard : Shortcuts : Services your new script will appear .. you can now enable it and set a key combination too if you want.

You can then right click on any folder to add new files .. (blank file templates are stored in ~/Library/Application Support/NewHere .. you can create any blank files you want DOC, RTF, XLS etc. etc.)
You can use Quicksilver too on OSX  - http://qsapp.com
Avatar of bleggee

ASKER

Thanks Rahaman & everyone. I went with the quick/easy route.