Change "nice" of an app on open

I was wondering if there is a way in OSX to set the "nice" of a app from open.
i.e. I can change the nice by X11 and " sudo renice -20 appnum" for max priority (or +20 for min priorty) but I was wondering if there is a way to do this when an app opens by default.
i.e. I want eyetv to be max priority and say Handbrake to be minimum priority.
Ta
Steve

You can't from within the GUI, but you can from within Terminal by passing the -a (Application) option to open:
<pre>
nice -20 open -a /Applications/EyeTV.app
nice 20 open -a /Applications/HandBrake.app
</pre>
does exactly what you want. The problem is that it doesn't get applied every time. But what you can do is write a shell script and have it run from your Desktop:
<pre>
$ echo 'nice -20 open -a /Applications/EyeTV.app $*' > ~/Desktop/EyeTV
$ chmod +x ~/Desktop/EyeTV
</pre>
Give that new file an icon (see http://discussions.apple.com/thread.jspa?messageID=5249766&#5249766 for instructions) and then tell Finder to have Terminal run it. Done.
Message was edited by: andlabs

Similar Messages

  • Until yesterday I have been happily using Viber on my Iphone 3.   suddenly stopped working. app wont open properly, returns to main screen. have deleted, rebooted , reinstalled but no change ?

    until yesterday i have been happily using Viber.  suddenly the App wont open properly,  tries to but times out and sends me back to
    the  main screen on my iphone 3.  i have tried deleting, rebooting and reinstalling but doesnt solve it.  after downloading again from
    i-tunes i fail to receive the access code.  push notifications are on, nothing has changed on my phone settings since it was working.
    can anyone throw any light on the problem ?

    Tap Settings > General > Reset > Reset All Settings
    Then restart your iPad.
    See if that makes a difference.

  • IOS Mail changes .mhtml extension to .html when opening in another app

    Hey there guys,
    Just noticed this, this morning. Recently, our Backup server admin changed the report sent out by our Microsoft DPM server from PDF to MHTML output. (DPM could *never* format the PDF correctly and, surprise surprise, can format the MHTML output just fine).
    Anyways, I purchased an MHTML viewer from the Mac App Store for OSX - all fine. I purchased the iOS version of the same developers viewer this morning and tried to open the mail attachment into that app. Oddly, it just showed as text - just like it does inside the iOS Mail app itself.
    It was then that I noticed that the attachment extension was .html not .mhtml - yet the file attached to the email is definetely showing as .mhtml.
    I tried a wee experiment and opened the attachment into Dropbox instead - sure enough, the extension was changed to .html again.
    I then forwarded that message out to my gmail using the Mailbox app and opened the attachment into the MHTML viewer from there - perfect! Because it didn't change the extension as it passed the attachment to the opening app.
    So, I have what obviously is a bug in the iOS Mail app - I just want to report it to Apple so it can be fixed. I can't find anywhere to log this bug without having to pay money for a support incident.
    Knowing that Apple frequent these Communities (I have been contacted by them in the past following posts I've made here), I thought this might be the best course of action.  Or, if I am wrong, someone would let me know!  (Either about the bug, or how to report it)... ;-)
    Thanks!
    William

    Apple doesn't officially monitor these forums.  If you want to talk to Apple directly, then go to https://getsupport.apple.com or http://www.apple.com/feedback/

  • How do I change the default app for opening a file;

    If I right click on a file in finder, it tells me what the default app for opening the file is.  it also gives me a short list of other apps.
    I would like to change the defaults for several file types, and also delete one app from the short list and add a different one.
    How do I do this?
    thanks

    You could try this:
    - right-click (tap with 2 fingers on the apple trackpad) on a file you want to open in openoffice
    - move the cursor over "open with". You should see the default app, then some suggestions, then app store, then at the end, "other...".  Select "other..."
    - find openoffice in your applications folder and select it  (if it is dimmed, change "enable: " from "recommended applications" to "all applications", then you can select "openoffice")
    - check "always open with"
    - then, click "open".  The file will open in openoffice and from now on, openoffice will be the default application to open the type of file you just opened.  You should also see the icon of all files of the same type change to the openoffice file icon.
    This is supposed to work, but that's not always the case, especially when the default app happens to be an Apple app.  If you don't want to use that Apple app, delete it (or move it elsewhere if you want a backup). That can help.
    Good luck!

  • Denmark!  How dó i change my Ipad2, so the app, iTunes, Open in Danish and not english every time i turn it ón ?

    Denmark!  How dó i change my Ipad2, so the app, iTunes, Open in Danish and not english every time i turn it ón ?

    The language of the store is set by the store that you are using. Are you logged in with your Danish iTunes account on the iPad : Settings > Store ?

  • My account is for CC Photography (recently changed from CC Single App Photoshop), but when I open photoshop I get the Adobe warning that there is trouble verifying my membership. Please advise

    Hi, my account is for CC Photography (recently changed from CC Single App Photoshop), but when I open photoshop I get the Adobe  warning that there is  trouble verifying my membership. Please advise

    Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -wrong email https://forums.adobe.com/thread/1446019
    or
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

  • Can't change default app to open file type in Mavericks

    I'm having a problem changing the default application to open .PSD files.
    I've tried using Get Info, Open With and click on an app and Change All button, but when I confirm I notice that it has been changed to the old app.
    For example, I tried to change .psd files to Photoshop CC, instead of Photoshop CS6. I click on Open With and changed it to Photoshop CC and click Change All. When I click confirm, and move the pointer away, it changes back to CS6.
    What gives?
    Thank you.
    Roxy

    After you change the application used to open the file, there should be a "Change All" button that will set the default for all files of that type.
    In addition, I use the Perian plugin so that almost all types of video files will open in Quicktime. http://perian.org/
    Free and works very well.

  • My apps dance open and close on their own in my IPad 2 what can be the prob? I have already restored

    I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you

    THANKS for your prompt reply  Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....

  • Can you see which apps are open and/or running like you can on an android phone by going to settings applications running services?

    can you see which apps are open and/or running (like you can on an android phone by going to settings>applications>running services)?

    Hi wjosten,
    thank you for the help.  I should have said I had a iphone 3.  A friend has the same phone and she showed me how she can see what web pages are open when she double taps the home button.  Mine is set to bring up favourites when I double tap (chosen from settings>general>home button).. BUT my choices are only HOME; SEARCH; PHONE FAVORITES; CAMERA or IPOD.  I changed my choice to HOME but that just defeats the purpose as when I am at the home page and double tap nothing happens.  Am I making sense?

  • How do I change my default messaging app to be Go SMS Pro?

    Does Verizon disable the clear default button so that you cannot change your default messging app?

    The link on your home page is just a shortcut, all you have to do is remove it and add the link to Go SMS...  Open app tray and press and hold on GoSMS and the link will be added to home page and then go to the stock app icon and press and hold and then drag to the recycle bin..
    Example:   I am using ADW nut the stock UI works basically the same way..

  • Add apps to Open With in context menu

    is it possible for example to add Preview to "Open With.." menu when I right click on Folder? because it's anoying to choose Preview every time when I click Other to achieve that Preview will create thumbnails of all pictures in that folder

    V.K. wrote:
    CyKi wrote:
    is it possible for example to add Preview to "Open With.." menu when I right click on Folder?
    preview can't open folders. it opens files. in general, you can't add anything to "Open with menu" by hand. the only way to force something to be there is to make it the default application for certain file type. this should already be the case with image files unless you've changed the default application to something other than Preview. to set a default application control-click on an image file and select 'get info". in the resulting popup go to "open with section and set it to open with the app of your choice. then click "change all".
    Lastly, to quickly open all files in a given folder in preview drop that folder on Preview in the dock.
    when you press CMD + O in Preview and select folder, Preview will open all pictures from the folder with their thumbnails

  • I'm new to iPad. I've installed some apps. The apps are "open" even when I go to something else or close that page. I just did some updates on other apps and see those apps are still "open". How do I close them?  I'm sure it's draining my battery. Help!

    I'm new to iPad. I've installed some apps. The apps are "open" even when I go to that page and go off it. How do I close them?  I'm sure they are draining my battery. Can someone explain what I'm doing or not doing correctly?  Thanks

    1blindmouse wrote:
    I'm new to iPad. I've installed some apps. The apps are "open" even when I go to that page and go off it. How do I close them?  I'm sure they are draining my battery. Can someone explain what I'm doing or not doing correctly?  Thanks
    If you are referring to the fact that, in the App Store app, after you have installed or updated an App, that the Install button changes to now read "Open" then this does not mean that the App is Open and running. It means, rather, that, if you touch the button now marked "Open", the App will be started and "Open". It's just a quick way to get to the App you have just installed or updated.

  • When I click on Creative Cloud logo, indicator for time passing goes for a few seconds and stops, but app not opening (it used to).  Any ideas?

    I've never used this feature to ask a question.  Pardon not knowing etiquette and such.  When I click on Creative Cloud logo/icon on my desktop, the indicator for time passing goes for a few seconds and stops, but CC app not opening. 
    CC app used to work on this same computer a few months ago.  No changes to operating system.  Photoshop is still working.  Just wanted to download Lightroom and perhaps begin learning it, but to no avail.
    Tried to look for a way to reinstall Adobe CC, but it says I already have it.
    Any ideas?
    Thank you in advance,
    Timothy

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Acrobat X windows shift location when a different, maximized app is opened

    First, to clarify, when I say "maximize" I don't mean the new "full screen" feature in OS X Lion. I mean "maximizing" a window by using the Zoom key in OS X.
    In OS X, I usually maximize my browser windows, but don't maximize my Acrobat windows. Also, I usually line up all windows, whether maximized or not, with the top of the screen.
    However, every time I open a maximized app window (such as a browser window) when I already have Acrobat windows open, all of the Acrobat windows will shift their location automatically. Where they were lined up with the top of the screen before, now they will have moved a significant distance away from the top of the screen. It's always the same distance, too, for every window.
    I'm not sure if this is caused by Lion, but I installed Acrobat X before upgrading to Lion, and I don't remember this happening in Snow Leopard.
    Does anyone have any ideas as to what could be causing this?

    In OS X 10.6 and prior, Expose' and Spaces had a separate System Preference setting, along with hot corners. One of the options was to force apps to open in a new space.
    That changed to become Mission Control with OS X 10.8 Mountain Lion. I haven't really used the feature in 10.8. I can't quickly find a useful Apple link, so I'll provide this 3rd-party 'Dummies book' link which might help you sort things out. Mouse and trackpad preferences also can be set to enable gestures that work in conjunction with Mission Control.
    http://www.dummies.com/how-to/content/the-mission-control-pane-in-os-x-mountain- lion.html

  • Making iWork the default apps for opening Microsoft Office documents

    Is there a way to make Pages, Numbers and Keynote the default apps for opening Microsoft Office documents, such that if I double-click a Word document it launches Pages and opens, etc.? I know I can do it by double-clicking the Office document and dragging it to the appropriate iWork app in the dock, but it would be nice to have it happen by default. That way I can put Office in my rearview mirror!

    Fantastic - worked exactly as advertized. Thank you both!! Office is now a distant memory (except when I have to save in MS formats to send files to the unfortunate masses).
    Best regards,
    John McMahon

Maybe you are looking for