January 27, 201510 yr I have a script that save documents (Quotes, Invoices, Purchase Orders) to the user's documents folder. My script returns an error if the folders don't exist in the file save document path. Is there a way to auto-create missing folders? I need a solution for both Mac and Windows. Thanks. For example: ~user/documents/Company Docs/Quotes ~user/documents/Company Docs/Invoices ~user/documents/Company Docs/Purchase Orders
January 27, 201510 yr You need ScriptMaster or Base Elements Plugin to create folders/to/the/path https://github.com/nickorr/BaseElements-Plugin/wiki/Functions#be_createfolder--path-
January 27, 201510 yr A plugin is probably the most convenient way to handle this, but you can also use OS-level scripting (Send Event[] on Windows and Perform AppleScript[] on OS X). Another option is to export zipped folders from a container - but this will overwrite the existing ones (and their contents!) if they are already in place.
January 27, 201510 yr A plugin is probably the most convenient way to handle this, but you can also use OS-level scripting (Send Event[] on Windows and Perform AppleScript[] on OS X). +1 For simple tasks like creating a folder I would no go use a plugin; unless you already have the plugin for other reasons. This is really simple OS-scripting.
November 28, 20178 yr Newbies Could you provide an example of a Send Event script to create a folder on windows? I can't figure out what I'm doing wrong.
Create an account or sign in to comment