User Name
Password
AppleNova Forums » Genius Bar »

menu bar items


Register Members List Calendar Search FAQ Posting Guidelines
menu bar items
Thread Tools
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2004-06-13, 12:31

I clicked on those .menu folders and the icons came up on my menu bar automatically. No big deal, I thought - I'll just go into System Prefs and click the "Do Not show in the Menu Bar" box. (I'm talking about icons such as Display, Eject and Sound, for example)

Well, that click only works on a menu item that already existed. Does that make sense? It can only remove a menu bar icon which it created... not one that I activated by clicking on the .menu folder.

So now I am stuck with an extra Display, the triangular eject symbol (I haven't located the click box to turn this one off yet) and also a cpuPerformance.menu icon - which I really want to turn off.

I could try restarting - but I would prefer to find out the command to eradicate them manually using the terminal.

I hope this all made sense - any help greatly appreciated.

All I want is a simple life
twitter

Last edited by Mac+ : 2004-06-13 at 12:53. Reason: typo
  quote
Cybermonkey
Member
 
Join Date: May 2004
Location: Great Britain
 
2004-06-13, 12:43

type 'top' in the terminal and look for the name of the app in question. Note down the 'pid' number then hit ctrl+c to kill top. Now type kill pidnumber and its gone.
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2004-06-13, 13:04

Thanks Cybermonkey for such a quick response ... but I can't identify what the app is that I should try to kill.

Perhaps if you do the same thing as me and try it out, you'll get a better grasp of what I want to remove.

GO /System/Library/CoreServices/Menu\ Extra/ and then click on a folder such as Eject.menu for example.

That should bring up the eject icon in the menu bar.

Now if you do top in the terminal can you identify the appropriate PID for me?

Thanks again.

All I want is a simple life
twitter
  quote
Cybermonkey
Member
 
Join Date: May 2004
Location: Great Britain
 
2004-06-13, 13:21

i'm running panther 10.4 here and cant recreate another eject menu, maybe cos i already have one and got pinpoint it top like i can with my 3rd party menu apps. I'm not sure if restarting the finder would do it, though i reckon the simplest solution would be to just log out and back in, no need to restart.
  quote
Maciej
M AH - ch ain saw
 
Join Date: May 2004
 
2004-06-13, 13:25

You get rid of it by hold the Apple key and clicking and dragging the item off of your menu bar. I hope this was clear, if too confusing just say so I will try to explain it better.

User formally known as Sh0eWax
  quote
Ebby
Subdued and Medicated
 
Join Date: May 2004
Location: Over Yander
Send a message via AIM to Ebby  
2004-06-13, 13:25

There is an eject button in the menu bar? I gotta try that because I use MenuMeters to eject drives.

So yea, if you find out how to fix it, make sure to post the solution here.

EDIT: Oh, it only opens my CD drive. Oh well. (and the removal solution works too)

Second edit: When I open Ink.menu, I get a new preference pane I haven't noticed before. Cool, but I can't use it.

^^ One more quality post from the desk of Ebby. ^^
SSBA | SmockBogger | SporkNET

Last edited by Ebby : 2004-06-13 at 13:33.
  quote
noleli2
Senior Member
 
Join Date: May 2004
Location: Chicago
 
2004-06-13, 13:29

Quote:
Originally Posted by Sh0eWax
You get rid of it by hold the Apple key and clicking and dragging the item off of your menu bar. I hope this was clear, if too confusing just say so I will try to explain it better.
Any menu that is a true MenuExtra (as opposed to an app that is designed to look like one) can be moved or dragged off the menu bar by command-dragging around it.
(Command-drag is slightly more standard lingo for that. )
  quote
Maciej
M AH - ch ain saw
 
Join Date: May 2004
 
2004-06-13, 13:35

Quote:
Originally Posted by noleli2
Any menu that is a true MenuExtra (as opposed to an app that is designed to look like one) can be moved or dragged off the menu bar by command-dragging around it.
(Command-drag is slightly more standard lingo for that. )
Exactly what I was trying to say! Thanks.
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2004-06-13, 13:47

These forums ROCK!

You people ROCK! - I love this instant feedback... mind you at 4.35 am, I figured some of you would have to be up and running on the other side of the world.
Quote:
Originally Posted by Cybermonkey
i'm running panther 10.4 here and cant recreate another eject menu, maybe cos i already have one and got pinpoint it top like i can with my 3rd party menu apps.
Cybermonkey - what does "got pinpoint it top" mean? And you're running 10.4 already?!?! :wow:
Sh0eWax - thanks ... it was clear enough!
Ebby - I just got MenuMeters on the weekend and I love it. I used to have the CPU monitor chuggin away in my dock as a log-in item, but now I've banished it for good!
noleli2 - thanks for the "terminology" clarification

... however What was the command line for killing these menu items? How can I find out their PID numbers exactly?

All I want is a simple life
twitter

Last edited by Mac+ : 2004-06-13 at 13:55.
  quote
staph
Microbial member
 
Join Date: May 2004
Send a message via AIM to staph  
2004-06-13, 14:02

Quote:
Originally Posted by Mac+
These forums ROCK!

You people ROCK! - I love this instant feedback... mind you at 4.35 am, I figured some of you would have to be up and running on the other side of the world.
Not I!

Quote:
... however What was the command line for killing these menu items? How can I find out their PID numbers exactly?
If you know the name, or part of the name, of the application you're looking for, you could do this:

Code:
Inigo:~ stephen$ ps -axl | grep -i Stickies 501 3146 213 0 46 0 221820 7660 - S ?? 0:02.75 /Applications/Stickies.app/Contents/MacOS/Stickies -psn_0_95813633 501 7231 7207 0 31 0 18644 100 - R+ std 0:00.00 grep -i Stickies
The PID is the number in the second column (3146 for Stickies.app, and 7231 for grep).

Alternatively, you can run top, and it's the number in the left hand column:

Code:
7207 bash 0.0% 0:00.07 1 12 19 172K 824K 808K 18.2M 7206 login 0.0% 0:00.02 1 13 38 124K 428K 492K 26.9M 6700 sh 0.0% 0:00.02 1 11 17 132K 740K 640K 18.2M 6535 dselect 0.0% 0:02.93 1 12 32 260K 4.57M 4.63M 19.8M
i.e. 7207 for bash, 7206 for login, etc...

It's usually easier to use the killall command, which takes the name of the app as it's argument rather than the PID.

Oh... and I don't think menu items necessarily run as apps which are visible on the normal command line... so they may not be killable from the command line. Command-dragging should be good enough, however.
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2004-06-13, 14:18

Thanks Staph - I'm a bit concerned, though... either you're up way too early for a Sunday Church sevice, or there was some big party in Canberra - and you've just returned home... but, nah - that couldn't be. party in Canberra - puurleahze (j/k)

I think the main problem is that I don't know how to identify the name of this app - or even if it is considered an app. To recap: I clicked on this folder "cpuPerfromance.menu" and it launched a menu bar icon - but I have no idea whether it is considered an application, or what its name would be?
[EDIT] sorry about that - (please igonore) I did not read your last paragraph ... may not be an app, thus not killable on the command line

I understand that the lhs column on the top command gives the PID... but I did not understand your first explanation with grep (what the heck is that?)

Quote:
Inigo:~ stephen$ ps -axl | grep -i Stickies
If you're not too smashed at this stage, could you clarify that above command line a piece at a time? Thanks.

All I want is a simple life
twitter
  quote
staph
Microbial member
 
Join Date: May 2004
Send a message via AIM to staph  
2004-06-13, 14:31

Quote:
Originally Posted by Mac+
Thanks Staph - I'm a bit concerned, though... either you're up way too early for a Sunday Church sevice, or there was some big party in Canberra - and you've just returned home... but, nah - that couldn't be. party in Canberra - puurleahze (j/k)
Nope, my honours thesis is due on Friday

Quote:
I think the main problem is that I don't know how to identify the name of this app - or even if it is considered an app. To recap: I clicked on this folder "cpuPerfromance.menu" and it launched a menu bar icon - but I have no idea whether it is considered an application, or what its name would be?
It might be recorded on the console.log when the application was launched... it's probably worth a look.

Opening up Console.app (it's in the Utilities folder), and filtering for "menu" gives me this:

Code:
MenuCracker see http://sourceforge.net/projects/menucracker MenuCracker is now loaded. Ready to accept new menus. Ignore the failure message that follow. 2004-06-09 15:50:28.624 SystemUIServer[384] failed to load Menu Extra: NSBundle </Library/PreferencePanes/MenuMeters.prefPane/Contents/Resources/MenuCracker.menu> (loaded) 2004-06-09 15:50:28.704 SystemUIServer[384] failed to load Menu Extra: NSBundle </Library/PreferencePanes/Renew.prefPane/Contents/Resources/MenuCracker.menu> (not yet loaded) 2004-06-09 15:50:34.346 SystemUIServer[384] MenuCracker: Loading 'renewMenuExtra'. 2004-06-09 15:50:34.622 SystemUIServer[384] NSMenuExtraLoaded 2004-06-09 15:50:35.842 SystemUIServer[384] MenuCracker: Loading 'MenuMeterCPUExtra'. 2004-06-09 15:50:36.731 SystemUIServer[384] MenuMeterCPU loaded. 2004-06-09 15:50:36.838 SystemUIServer[384] MenuCracker: Loading 'MenuMeterMemExtra'. 2004-06-09 15:50:36.931 SystemUIServer[384] MenuMeterMem loaded. 2004-06-09 15:50:37.069 SystemUIServer[384] MenuCracker: Loading 'MenuMeterNetExtra'. 2004-06-09 15:50:37.327 SystemUIServer[384] MenuMeterNet loaded. 2004-06-11 13:24:35.692 Renew[19996] Looking at: 779, SharingMenu with versions: [1.2.0], [1.2.0], [ - ], [(null)], [(null)]
Which tells me that menumeters seems to be a plug-in for the SystemUIServer, which is definitely not something you would ordinarily want to kill.

Quote:
I understand that the lhs column on the top command gives the PID... but I did not understand your first explanation with grep (what the heck is that?)

If you're not too smashed at this stage, could you clarify that above command line a piece at a time? Thanks.
OK:

ps: is a command to provide a listing of currently running processes on your machine; the options:
-a: display processes belonging to all users
-x: display information about processes without controlling terminals
-l: display information on the uid (who owns the process), pid (process id) and other things.

|: is the unix pipe symbol -- it redirects the output of the command (in this case, ps -axl) to the standard input for whatever is on the right hand side, in this case:

grep: is a unix command for printing lines which match a pattern; the option:
-i: makes the expression matching case-insensitive.

So basically the effect was to send the listing of all the processes on the machine to grep, which looked for any lines which had "Stickies" in them.

Edit: By the way, you can achieve more or less the same effect by opening up Activity Monitor.app, and filtering for the process name. Again, the PID is in the left hand column.

Last edited by staph : 2004-06-13 at 14:41.
  quote
Paul
Veteran Member
 
Join Date: May 2004
Location: New York City
 
2004-06-13, 14:40

Run "top"
Code:
Last login: Sat Jun 12 04:08:00 on ttyp1 Welcome to Darwin! [Santora********:~] psantora% top Processes: 71 total, 2 running, 69 sleeping... 205 threads 15:23:17 Load Avg: 0.71, 0.68, 0.67 CPU usage: 64.0% user, 27.9% sys, 8.1% idle SharedLibs: num = 124, resident = 38.0M code, 2.76M data, 15.0M LinkEdit MemRegions: num = 10429, resident = 264M + 19.1M private, 162M shared PhysMem: 88.7M wired, 374M active, 172M inactive, 635M used, 132M free VM: 4.87G + 83.6M 169481(0) pageins, 9488(0) pageouts PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 2981 top 14.2% 0:16.16 1 16 26 412K 492K 788K 27.1M 2973 tcsh 0.0% 0:00.12 1 13 21 384K 792K 904K 22.1M 2972 login 0.0% 0:00.04 1 13 37 140K 484K 508K 26.9M 2971 Terminal 53.3% 0:14.47 3 66 169 2.21M+ 19.8M 8.34M+ 115M- 2968 Adium 0.6% 0:54.97 3 100 314 11.9M 30.4M 19.7M 139M 2754 Big Bang C 0.6% 0:13.07 7 194 701 38.7M 30.6M 63.2M 171M 2748 Safari 0.6% 5:24.40 6 128 434 25.6M 43.5M 42.6M+ 168M 2415 Mail 0.0% 1:06.54 7 153 302 8.15M 27.0M 20.7M 132M 2412 Meteorolog 0.0% 0:08.70 5 98 168 3.46M 24.6M 8.95M 116M 2345 Dock 0.0% 0:04.31 3 116 149 1.22M 8.96M 3.77M 104M 2035 Synergy 0.6% 13:17.73 6 104 279 40.3M 30.8M 32.8M 184M 1914 Menu Calen 0.0% 0:05.54 3 90 150 2.39M 17.2M 17.5M 112M 1912 FuzzyClock 0.6% 4:36.08 2 66 137 2.09M 18.0M 17.9M+ 113M 1415 SecurityAg 0.0% 0:01.24 2 58 133 1.49M 15.3M 3.94M 109M 659 MacaroniTo 0.0% 2:43.58 1 29 31 772K 896K 1.52M 27.5M 489 iTunes 1.8% 82:49.21 9 577 509 40.6M 36.2M 32.4M 177M 447 AppleSpell 0.0% 0:02.68 1 50 38 724K 9.50M 1.89M 36.3M 432 ASM_Contro 0.0% 8:41.83 2 62 111 756K 12.1M 9.93M 102M 429 iCalAlarmS 0.0% 0:04.03 2 65 106 760K 12.0M 2.10M 102M 426 Peripheral 0.0% 0:34.86 3 101 205 3.59M 23.9M 6.86M 124M 425 LittleSnit 0.0% 3:13.62 4 98 155 2.22M 15.7M 16.0M 111M 420 ARD Agent 0.0% 0:01.00 5 82 86 792K 3.97M 5.09M 98.6M 407 slpd 0.0% 0:02.28 6 29 37 244K 1.04M 588K 30.4M 405 Finder 0.0% 2:01.98 3 172 666 23.3M 49.1M 40.0M 179M 403 SystemUISe 0.0% 34:50.89 2 152 350 5.23M 28.6M 7.19M 130M 402 perl 0.0% 0:05.27 1 9 36 1.63M 2.06M 1.26M 19.9M 389 AppleFileS 0.0% 0:16.52 2 54 35 780K 1.68M 1.09M 31.7M 384 ucontrold 0.0% 0:00.07 1 30 32 496K 8.85M 972K 35.3M 383 aped 0.0% 0:01.56 1 34 29 228K 904K 632K 27.2M 380 xinetd 0.0% 0:00.01 1 12 19 120K 548K 264K 26.8M 377 VShieldUpd 0.0% 0:00.55 1 30 33 344K 1.11M 644K 59.9M 372 VShield 3.7% 86:30.63 3 27 35 520K 1004K 760K 60.7M 371 VShieldBkg 0.0% 0:00.60 1 25 32 496K 1012K 732K 59.7M 365 VShieldMou 0.6% 9:27.54 2 48 42 968K 3.49M 1.42M 66.4M 361 QuickTimeS 0.0% 1:09.30 4 30 45 452K 1.34M 1004K 30.1M 360 QuickTimeS 0.0% 0:00.00 1 9 17 4K 744K 28K 27.4M 359 VShieldCor 1.2% 23:20.36 5 56 147 6.85M 7.44M 11.4M 78.3M 353 VShieldChe 1.2% 10:45.03 2 31 29 544K 864K 292K 28.1M 348 ARD Helper 0.0% 0:25.07 1 9 16 68K 388K 68K 26.7M 346 cupsd 0.0% 0:34.69 1 11 33 708K 1.06M 1.05M 28.3M 300 crashrepor 0.0% 0:00.05 1 34 19 80K 400K 164K 27.2M 271 pbs 0.0% 0:00.42 2 32 41 456K 1.38M 1008K 44.1M 269 automount 0.0% 0:00.03 2 29 27 216K 968K 436K 28.3M 266 automount 0.0% 0:38.73 3 55 40 368K 1.05M 808K 29.1M 263 rpc.lockd 0.0% 0:00.00 1 9 16 48K 448K 40K 17.7M 254 nfsiod 0.0% 0:00.00 5 29 23 60K 384K 68K 19.6M 239 ntpd 0.0% 0:32.02 1 10 18 120K 600K 224K 17.9M 209 lookupd 0.0% 1:25.13 2 35 104 10.3M 1.04M 10.7M 37.7M 206 DirectoryS 0.0% 0:14.41 2 70 108 820K 3.37M 1.66M 31.5M
the programs you launched most recently will have higher PIDs (the first number)

the bold entries are menu items I have loaded... but I can't seem to find the menumeters pids....

1215/234215 (top .51875%)
People really have got to stop thinking there is only one operating system, one economic system, one religion, and one business model. -EvilTwinSkippy (/.)
  quote
curiousuburb
Antimatter Man
 
Join Date: May 2004
Location: that interweb thing
 
2004-06-13, 14:51

Quote:
Originally Posted by Paul
Run "top"
Code:
Last login: Sat Jun 12 04:08:00 on ttyp1 Welcome to Darwin! [Santora********:~] psantora% top Processes: 71 total, 2 running, 69 sleeping... 205 threads 15:23:17 Load Avg: 0.71, 0.68, 0.67 CPU usage: 64.0% user, 27.9% sys, 8.1% idle SharedLibs: num = 124, resident = 38.0M code, 2.76M data, 15.0M LinkEdit MemRegions: num = 10429, resident = 264M + 19.1M private, 162M shared PhysMem: 88.7M wired, 374M active, 172M inactive, 635M used, 132M free VM: 4.87G + 83.6M 169481(0) pageins, 9488(0) pageouts
OT: Holy Scrolling Code Box, Batman!

Inline scroll rather than blowing out the table and window width like vB2.
That's awesome.

So Paul, how much RAM have you got installed to generate VM paging like that?
  quote
_Ω_
Veteran Member
 
Join Date: May 2004
Send a message via AIM to _Ω_  
2004-06-13, 14:56

My guess 768MB (used + free)
  quote
Paul
Veteran Member
 
Join Date: May 2004
Location: New York City
 
2004-06-13, 15:00

correct...
  quote
noleli2
Senior Member
 
Join Date: May 2004
Location: Chicago
 
2004-06-13, 15:07

Slightly more on topic... (Sorry to interrupt the interesting conversation, but it might be helpful/informative.)

MenuExtras are not apps themselves, and therefore cannot be killed. They are "documents" that are run by SystemUIServer. You can kill SystemUIServer from Activity Monitor (or the terminal, if you prefer) if it crashes, and it will immediately restart. This is what you would do if, for example, you get a beachball when you put your mouse over the MenuExtras. When it restarts, though, it comes back with all the same MenuExtras you had loaded before; this is what it should do. So to get rid of one MenuExtra, like I said, just command-drag it off. You could probably also edit the plist that tells SystemUIServer which ones to load, but I haven't looked into which one that might be. (Nor do any of us particularly care right now, I would suppose.)
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2004-06-13, 21:40

staph all the best for the thesis... I just realised too that today is Monday (so that early Sunday morning jibe was totally off) - I lost a whole day playing catch-up with essays and I still have 2 more to do!

Thanks also for the info about the command line stuff.

I did do the command-drag thing to get them off the menubar - but I was originally curious as to why I could not identify them in my top reading.

noleli2 - thanks also for the info... I like finding out a little bit more of the inner workings of Mac OS X. (I love using it!!) One small step at a time, though!

I am very grateful for all the feedback - thanks community!

All I want is a simple life
twitter
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

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


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova