Re: Add your app to login items (Mac)

2006-03-13 Thread Klaus Major

Bonjour Paul,

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.


very quick guess (not tested, but worth a try :-):
Maybe one could create an alias to the app in the folder Startupitems?
- Bootvolume/Library/Startupitems/


Greetings

Paul Claude


Regards

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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Add your app to login items (Mac)

2006-03-13 Thread 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


ciao,
sims

European Rev Conference  2006
www.techietours.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Add your app to login items (Mac)

2006-03-13 Thread Paul Claude
Thanks Klaus,

I had thought about to this possibility, but I believed there was a way in
order to work directly with login items...

I must also check if creating an alias (or deleting it) in the startupItems
folder needs an authentication.




on 13-03-2006 15:40, Klaus Major at [EMAIL PROTECTED] wrote:

 very quick guess (not tested, but worth a try :-):
 Maybe one could create an alias to the app in the folder Startupitems?
 - Bootvolume/Library/Startupitems/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Add your app to login items (Mac)

2006-03-13 Thread sims

At 4:18 PM +0100 3/13/06, Paul Claude wrote:

I had thought about to this possibility, but I believed there was a way in
order to work directly with login items...

I must also check if creating an alias (or deleting it) in the startupItems
folder needs an authentication.


The applescript I sent to the list was tested and works fine 
here...just ran it,

checked login items, rebooted and all worked fine.


ciao,
sims

European Rev Conference  2006
www.techietours.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Add your app to login items (Mac)

2006-03-13 Thread Paul Claude
Ciao Sims,

Thank you very much, I will test ASAP this Applescript.

Greetings

Paul Claude


on 13-03-2006 15:43, sims at [EMAIL PROTECTED] wrote:

 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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Add your app to login items (Mac)

2006-03-13 Thread Klaus Major

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
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution