Hi sims,

At 3:23 PM +0100 3/13/06, Paul Claude wrote:
There is a way to do a script that may add or delete your app to Mac "Login
Items" (to auto run your app at Mac startup)?

I know that you could read/write the loginwindow.plist, but there is a more simple way? I don't like to adopt and study complex XML libraries only for
this target.

 Applescript  (watch the word wrap so you get the path right):

tell application "System Events"
        get exists login item "MyCoolProgram"
        if result is false then
make new login item at end of login items with properties {path:"/ Applications/MyCoolProgram.app", hidden:true, kind:application, name:"MyCoolProgram"}
        end if
end tell

very cool, sims :-)

Went straight into my archieves!

ciao,
sims

European Rev Conference  2006
www.techietours.com

Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to