Initializing work directory and set up "Extra work folders" for custom application

Hello,
I was checking un answered posts, and cam across this one. I hope I’m not too late. :sweat_smile:


Another example: PureRef

In this post: Robert thought about using arguments related to PureRef to save in a custom path on opening. (I didn’t manage to make it work. but… I started to realize something)


When I used to use Prism… It had something called empty workfiles / workfiles presets
where prism does a simple trick:

  1. Copy that file into the target location with the proper naming and version.
  2. Open That file.

I think we can adopted such a simple solution in which we rely on the OS it self to copy/open the app in the correct directory.
Maybe something like:

  • If Template workfile per variant is empty fall to the main template workfile.
  1. if any of wokfile templates are presented:
    • add image
  2. if skip is enabled it works as usual (or jump to 4)
  3. if it’s not enabled. check if there are any files, open the latest
  4. if it’s not enabled, and there are no files
    • get the workfile location and name (task directory/workfile_name_template_version)
    • copy workfile template to the task directory, replace the template file name with (task directory/workfile_name_template_version)
    • open the file with the given executables.
2 Likes