Unfortunately Dropbox doesn't offer an interface for programmatically managing this setting, such as to set a file to "online" or "offline", but I'll pass this along as a feature request. I can't promise if or when that might be offered though.
Your workflow is unique 👨💻 - tell us how you use Dropbox here.