btaclip.blogg.se

How to open new document on mac
How to open new document on mac










how to open new document on mac

If you want to try making an Automator action, I'm willing to contribute my experience with Automator, and my experience with shell scripts, file-systems, etc. There are almost certainly a fair number of details I've glossed over, or am simply ignorant of because I don't have Word. As long as the prototype being duplicated is something in the file-system, then it should be duplicatable without using Word. You don't need Word actions to duplicate something, just use a Finder action, or even an AppleScript or Shell script action. That's a simple outline of what needs to happen. Then make an Automator action that duplicates the prototype you made to the current folder. Store it somewhere convenient under the ~/Library folder. To start, create a prototype of whatever it is that you want. Whatever a Word document is, it's something that exists within the file-system, and can be duplicated therein.

how to open new document on mac

rtf files a slightly different method is required though if this interests anyone.Ĭlick to expand.I'd think it might be possible without using any Automator actions from Word.Ī Word file is just a file (or possibly a package/bundle, i.e. txt files but simply changing the extension name in the first line works for many other file types. Set extension hidden of new_file_alias to trueĮDIT : Try it out using AppleScript Editor.app. If button returned of result = "Replace" thenĭo shell script "rm -rf '" & new_file_POSIX & "." & file_extension & "'"ĭo shell script "touch '" & new_file_POSIX & "." & file_extension & "'" Replacing it will overwrite its current contents." buttons as warning Do you want to replace it?" message "A file with the same name already exists on the Desktop. Set new_file_alias to whole_file_name as aliasĭisplay alert "\"" & file_name & "\" already exists. Set new_file_POSIX to POSIX path of new_file Set whole_file_name to ((new_file as text) & "." & file_extension)

how to open new document on mac

Set new_file to choose file name with prompt "Enter file name:" default location save_folder Set save_folder_name to name of save_folder Set save_folder to insertion location as alias












How to open new document on mac