Create new file

Open Automator and create new quick action. Drag and drop a Shell Skript from the sidebar into the working area.

  1. Set the above properties
    • Arbeitsablauf empfängt aktuelle(n) Ordner
    • in Finder.app
  2. Fill its content with
basicname="$1/untitled"
count=1
newname=$basicname
while [ -e $newname ]; do
  ((count++))
  newname="$basicname$count"
done

touch "$newname"
  1. Save as Create new file

Eingeordnet in:

macOS, Quick Actions,