If we want to run a dockless application at login and we are using Mac OS X 10.5 or later, we can add login items using a shared file list with LaunchServices/LSSharedFileList.h API. This technique works well until App Sandbox has been introduced. Now, with the file permissions enforcements, accessing the shared file list of