image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old February 23rd, 2003, 12:48 AM
jeb1138's Avatar
Carioca
 
Join Date: Sep 2001
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
jeb1138 is on a distinguished road
Making renice settings stick?

I need QuicKeys to have a very low nice setting to work well for what I'm using it for. Right now I'm using Process Wizard which works great except that if I ever restart or logout I have to change the setting again. I've seen "renicer" but would rather not have another background app running and I don't like most of what it does anyway.

My question is: Is there a way to make "nice" settings stick? Some attribute you can change in an application package or some file property that I can change to make an application always run with a different nice setting?
Reply With Quote
  #2  
Old February 23rd, 2003, 01:10 PM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
No, you'll have to set it every time.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #3  
Old February 23rd, 2003, 01:55 PM
~departed~
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 457
Thanks: 0
Thanked 0 Times in 0 Posts
gatorparrots is on a distinguished road
You could automate the process as a LoginItem shell script or AppleScript that runs after the desired application launches.
Reply With Quote
  #4  
Old April 29th, 2003, 04:50 PM
Registered User
 
Join Date: Sep 2000
Location: Des Moines, IA, USA
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
AlanCE is on a distinguished road
QuicKeys can send terminal commands and be set up to fire on a timer. So X seconds after the machine starts up, QKX could send the renice command itself, should work...
__________________
• Home: Dual G4/450, 1GB RAM, 100GB, 30GB, Radeon 8500/64MB, 10.3.2
• Work: Dual G4/500, 512MB RAM, 60GB, 40GB, GeForce 2MX, 10.3.2
Reply With Quote
  #5  
Old April 29th, 2003, 05:30 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
I've been toying with the idea of renaming the application's binary (in the .app package) and replacing the original binary name with a shell utility that starts the real binary with a certain nice value.

So far this hasn't worked, but starting apps with certain nice values is important to me (like MSN and xICQ's priority, versus say DreamWeaverMX's priority) so when I figure it out I'll post a HOW-TO. It's neat to have the ability to renice applications, but I'd rather nice them from the start.

As a band-aid solution, you could always make an AppleScript (or shell script) that starts the specified application, gives it a few seconds to launch, and then re-nices it.

I wish it was a standard that every single application on Mac OS X wrote to /var/run/appname.pid, but it's not such a big issue--you can get the running app's PID by ps -auwx | grep appname and then awk-ing out the PID from the rest of the string. Keep ing mind, however, that some applications like MSN Messenger 3.5 start *2* instances of themselves, you'll want to renice both of them.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
Reply

Thread Tools

Posting 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Homepage settings won't stick. Resets itself :( elspif Mac OS X System & Mac Software 7 August 23rd, 2005 10:07 AM
How to set Print dialog settings progammatically in cocoa brianleahy Software Programming & Web Scripting 0 June 11th, 2003 10:45 PM
DNS settings OSX (server) sebas Mac OS X System & Mac Software 0 September 3rd, 2002 01:08 PM
Window views settings dissapear hellmuth Mac OS X System & Mac Software 0 December 11th, 2001 03:27 PM
where are the settings? berny868 Mac OS X System & Mac Software 4 October 26th, 2001 01:44 PM


All times are GMT -5. The time now is 02:03 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.