OS X - Automatically Set Execute Permissions for New Files?
- by i help X u
I'm using OS X 10.6.4 and am trying to set a folder to automatically enable execute permissions on new script files copied or created in a directory. I have used Sandbox 2 to set every permission for the folder to enabled with sticky bits and the inherit flag set but I still have to manually set the execute flag using chmod for every new flag.
I've done:
chmod -R a+rwxs ~/scripts
I've done:
chmod 7777 ~/scripts
And the permissions for the folder show as:
drwsrwsrwt+ for the folder.
But if I add a new script file it's set to "-rw-r--r--+" (the default)
I looked at setting "unmask 000" in the .profile file but the default value for files is 666 with an unmask of 022 so that's not relevant since I would need a default value of 777 for files.
I have figure out how to use chmod in an AppleScript triggered by a folder action to automate this but I'm wondering if there is a simple ACL or chmod setting I'm missing.
So, is there a way to automatically set execute permission for new files? (Without using a folder action and AppleScript?)