|
|
#1 |
|
All Star
Join Date: Jan 2002
Location: New York, NY
Posts: 972
|
How can I remove some of the Mac OS X 'services' that I never touch? I'd like to trim it down a bit..
|
|
|
|
|
|
#2 |
|
All Star
Join Date: Jan 2002
Location: New York, NY
Posts: 972
|
I haven't found any clues to this one, are the SERVICES in the menu even alterable by the user? Anyone with any experience on this?
|
|
|
|
|
|
#3 |
|
Triple-A Player
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 223
|
I hesitated to answer you the first time because I'm just not sure if I'm right.
BUT... I think the "Services" menu items are there based on what applications you have in the /Applications folder, to some extent. Certain applications have services associated with them that, if the app is in the /Applications folder, appear in the Services menu. So, to answer your question, you might be able to get rid of certain Services by moving certain apps from the /Applications folder to a new one. But like I said, I'm not sure about this one. David |
|
|
|
|
|
#4 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
dsk is correct. the /applications and ~/applications dirs (perhaps others) are scanned for apps offering services.
in fact, even aliases/symlinks are scanned: $ ll /Applications/xapps lrwxrwxr-x ... /Applications/xapps -> /Volumes/chunder/xapps/ even the apps in the target of the above symlink are scanned... so, if you move some apps out of the scan dirs into, say, /path2/noscanApps dir, their services are not found/offered. |
|
|
|
|
|
#5 |
|
MVP
Join Date: Jan 2002
Location: Wasilla, AK
Posts: 1,043
|
If that's the way they work (and I'm not doubting it) then apps with services should have "on/off" preferences.
|
|
|
|
|
|
#6 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
|
can turn off a service by editing Info.plist
I haven't tried this myself, but I believe you can turn off a service by editing the Info.plist file which appears under the "Contents" sub-folder of the application bundle. (cd to the application directory in the Terminal and do 'ls -l' and you'll see what I mean.)
The services offered by an appilication are listed under the item "NSServices", so if you (carefully) edit this file, you should be able to turn off any services you don't want to appear in the Services menu. But be sure to keep a copy of the original Info.plist file in case you want/need to go back to the way it was! And I think you'll have to log out and log in again in order to get the Services menu to refresh itself. If you try this and are successful, please post a "hint" about your experiences to the main macoshints.com page (as opposed to just this forum) so others will benefit. |
|
|
|
|
|
#7 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
hayne's words are true.
but, you don't have to delete the entry in an app's info.plist file. simply open info.plist and rename the key. i renamed TextEdit's info.plist entry from "NSServices" to "NSServices.disabled" and logged out. upon login, no textedit service was listed. i couldn't find a way to 'rescan' for the service entries. relaunch finder and kill systemuiserver dint do it. but if it is that simple to toggle, then there'll prolly be a UI whatzit to toggle it, someday. must find the service scanner, tho. |
|
|
|
|
|
#8 |
|
MVP
Join Date: Jan 2002
Location: Wasilla, AK
Posts: 1,043
|
Excellent info!
I have some seriously worthless services floating around. I'm not sure I want to delete the app, so editing the plist sounds slick. I don't know anything about xml (which I believe is the format of the plist). Is there a "comment" symbol like '#' that will simply disable a line in the code? Now I just have to figure out which silly apps have addes silly services. |
|
|
|
|
|
#9 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
if you have the dev tools install, a simple:
Code:
$ open /Applications/TextEdit.app/Contents/Info.plist the part we need to solve now is the log out. then, we can move on to an applescript to run an inline shell replace of the 'NSServices' property, then launch the facility to rescan the services. then put a shiny, candy-like button on it, and you all can hobble your rig to oblivion. the practicality not-withstanding. |
|
|
|
|
|
#10 |
|
Prospect
Join Date: Jun 2003
Posts: 35
|
For dummies (like me)... or if you're just scared of command lines...
1. Control-click on the app icon whose service you want to remove (i.e. TextEdit) to bring up the contexual menu (if you have a 2-button mouse, Heaven forbid you can probably right-click) 2. Select "Show Package Contents" 3. Open the Contents folder (regular double-click) in the window that pops up 4. Open the file "Info.plist" (If you have Dev Tools installed (do it, they're free!)...), double-clicking will open it in Property List Editor.* 5. Click on the little arrow next to "Root" A list will pull down. 6. Scroll down (if necessary) to the words "NSServices". It will also have a little arrow next to it. 7. Double-click on the words "NSServices" and change the wording. I reccommend using MervTormel's suggestion and renaming it to "NSServices.disabled". 8. Save the edited file and close it 9. (Not strictly necessary, but highly reccommended) Make a new text document listing all of the programs you modify in this way, in case you change your mind later 10. Log out and log in again They're gone! Of course to bring back your Services (like if you were just experimenting to see if it works) follow steps 1 - 5, and then rename the "NSServices.disabled" text (or whatever you called it) to "NSServices" again. All set! --- *If you don't have and for some odd reason don't WANT to have the Developer Tools, you can open "info.plist" in TextEdit. You may need to drag the document icon onto the TextEdit icon in the dock. Do a Find (Command-F or Edit > Find > Find Panel) for "NSServices" and replace those words with "NSServices.disabled". BEFORE: <key>NSServices</key> AFTER: <key>NSServices.disabled</key> Follow steps 8 - 10. |
|
|
|
|
|
#11 |
|
Triple-A Player
Join Date: Nov 2002
Location: Kettering, Ohio
Posts: 59
|
Is it possible to edit contextual menu items in the same or similiar way? I would like to remove some of the options under "Open With".
|
|
|
|
|
|
#12 |
|
Triple-A Player
Join Date: Nov 2002
Location: Kettering, Ohio
Posts: 59
|
I apologize. This was my first stop on a search. I figured since services and contextual menu items are similar, maybe the fix would be similar and thus my question would fit. Since it's regarded as off-topic, I'll take my question elsewhere.
|
|
|
|
|
|
#13 |
|
All Star
Join Date: Jan 2002
Location: New York, NY
Posts: 972
|
I'm hunting on other forums, not many references to removing system implemented contextual menu choices..
|
|
|
|
|
|
#14 |
|
Triple-A Player
Join Date: Feb 2003
Posts: 70
|
Disappearing Services
Some applications (e.g., Safari) handle the Services correctly and display all options. Others (e.g., Word, Finder) don't display any options. When I click on the Services entry, nothing happens. Any idea what the problem might be?
|
|
|
|
|
|
#15 |
|
All Star
Join Date: Feb 2002
Location: peteyville
Posts: 794
|
if you want to edit Service Menu items in a nice GUI, try the excellent freeware Service Manager.
http://www.blacktree.com/apps/index....ith/index.html |
|
|
|
|
|
#16 |
|
All Star
Join Date: Jan 2002
Location: New York, NY
Posts: 972
|
Thanks for posting, looks good.
I noticed the same guys have a LAME encoder plugin for iTunes 4 as well.. ![]() Jacques |
|
|
|
|
|
#17 | |||||||||||||||||||||||
|
All Star
Join Date: Jan 2002
Location: New York, NY
Posts: 972
|
Now try this one.. http://www.petermaurer.de/nasi.php?s...ervicescrubber Jacques |
|||||||||||||||||||||||
|
|
|
![]() |
|
|