Add your app to login items (Mac)

Klaus Major klaus at major-k.de
Mon Mar 13 10:25:35 EST 2006


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
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list