Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Execute a Command Line arguement in a ScreenSaver???

Execute a Command Line arguement in a ScreenSaver???
Thread Tools
Bobby
Mac Enthusiast
Join Date: Apr 2001
Location: Camarillo, CA
Status: Offline
Reply With Quote
Jan 25, 2006, 04:35 PM
 
I'm looking to take a screensaver I've written and add the ability to execute something via the command line when it starts...

Namely I want to have the screensaver start the distributed.net client when it starts and then stop when it stops. so essentially it would send a command of "/Applications/dnetc/./dnetc -quiet" when the screensaver starts then "/Applications/dnetc/./dnetc -shutdown" when it wakes up...

Is there any easy methods for executing something via the command line withn a program???
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 25, 2006, 04:59 PM
 
Take a look at NSTask.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Bobby  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: Camarillo, CA
Status: Offline
Reply With Quote
Jan 25, 2006, 05:52 PM
 
Cool, thats the kinda thing I was looking for... Now I just need to re-orient myself with Objective-C & try to figure out how to implement it...
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:27 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,