Aim : to get an application to automatically open upon login for users.
Problem : I've been trying to figure out the best way to try and get an application to start at login for users. What i've found is that its impossible to do in Casper unless you have machines being controlled by work group manager.
This is due to the fact that under the users preferences the login items are added as a dict entry.
It would be possible to This is not an issue if you are creating these files for new users but they are for existing users who have already modified their login items.
Solution : The only way around this that i found was to write a simple script to create my own personal folder within their library, from that i can then write a file which i use as a flag to turn on or off the automatic open command for the application.
I use the simple "open" command to open the application every time and then exempt users by removing the file created in the directory i created.
You can use this method to set loads of different flags for different things.