Jump to content

Can FileMaker auto-create folders when saving to file paths?


This topic is 2312 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...

This topic is 2312 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.