AppleScript: Create new file using custom New Text File dialog? -
I have just created a script, which I can now create a blank, untitled file in the focused window in the focused window. Allow to change the name of the file quickly
I want to use the new text file dialog, but without the file format and encoding
Whether to create this dialog box on its own? Any way
Here's how I will create a new file in the current location:
You can try something ...
Set user display dialog "Enter a name ..." Default answer "Response" button {"Cancel", "OK"} Default button "OK") Show the application "Finder" if the Finder window exists Create a new file then 1 (Target Target Finder Finish {name: userResonse} with the win properties and then end {name: userResonse} with the new file (Path to Desktop) properties, if you specify the end
Comments
Post a Comment