Automator: Per Rechtsklick neues Textdokument im aktuellen Ordner anlegen
Liebe Community,
hierfür habe ich eine Schnellaktion erstellt
Der Code lautet:
on run {input, parameters}
tell application "Finder"
set i to item 1 of input
set dd to display dialog "Sichern unter" default answer ""
set nn to text returned of dd
if kind of i is not "Ordner" then
set nf to make new file with properties {name:nn & ".txt"} at (container of i)
else
set nf to make new file with properties {name:nn & ".txt"} at i
end if
open nf
end tell
--return input
end run
Leider wird mir die Aktion nicht angezeigt, wenn ich in eine leere Stelle im Finder "rechts klicke"
Was mache ich verkehrt?
MacBook Pro 13″, macOS 13.4