|
#1
| ||||
| ||||
| 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? |
|
#2
| ||||
| ||||
| 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 |
|
#3
| |||
| |||
| You could automate the process as a LoginItem shell script or AppleScript that runs after the desired application launches. |
|
#4
| |||
| |||
| 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 |
|
#5
| ||||
| ||||
| 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, 2120 GB RAID 1, 2500 GB RAID 0 |
![]() |
| Thread Tools | |
|
|
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 |