#!/bin/sh
# new file with gedit here:  Creates a new file with gedit in selected directory
# by John Leach http://johnleach.co.uk

for filepath in $NAUTILUS_SCRIPT_SELECTED_URIS ; do
  filename=`zenity --entry --entry-text "" --text "New file with gedit in $filepath" --title "New file with gedit"`

  if [ ! -z "$filename" ] ; then
	 gedit "$filepath/$filename" &
  fi
done

