Add/Remove Login Items

Scripts to add and remove login items

Add Item:


set the_app to "/Applications/Safari.app/"
tell application "System Events" to make login item at end with properties {path:the_app, hidden:false}

Remove Item:


tell application "System Events" 
delete (first login item whose name is "Safari") 
end tell