I assume you are running at root since it's OS X. From 4D you need to run a shell script that uses the umask command to set the default file/folder permissions you want for the 4D process. See the man pages for umask for details, or there are lots of online descriptions of the command.

That's right, as root. This looks like a good solution and something that I had assumed would be in there somewhere, but we're not running on OS X Server, rather a standard G4.

Doesn't matter, it's still Mac OS X underneath.


From a Google search, it looks as though cron may be the better answer, where the command is fired by a script when 4D creates the new folder? If this is similar to using something like an AppleScript, isn't this a bit of a bodge?

I fail to see how cron could help, since cron runs asynchronously at scheduled intervals, and you want the folder to have its permissions set correctly directly after creation. To do this you would need a plugin such as EVX_Shell to execute the chmod command on the folder you created.


Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com




Reply via email to