![]() |
Customizing the menu bar clock
I love this hint (probably one of my all time favorites, actually), but can never get it to work exactly to my liking. Here is a screenshot of what the current configuration looks like. The string in .GlobalPreferences.plist reads:
Code:
%a, %m/%e - %I:%MThanks, localhost |
via the shell date command:
%l (that's an ell) will make the hour canonical. i don't see the canonical form of numeric month in man strftime. |
Re: Customizing the menu bar clock
Quote:
On the assumption that I can probably remember what month it is, mine now reads as: %1H:%M:%S (%a %e) i.e. the time followed by the day and day of the month in brackets. |
I've got it! Tacking a "1" on after the % and before the parameter turns the parameter conical. Mine now reads:
Code:
%a, %1m/%e - %1I:%MThanks for all the help! |
Quote:
Code:
%1H:%M:%S (%a %1e) |
Why not use PTHClock? You can customize it with your font choice and it has excellent calendar options, worth a shot.
|
Quote:
Actually, I have tried PTHClock but didn't really use it much differently from the menubar clock so removed it some time ago. Also, despite having a ridiculously large number of background processes running, I would rather amend an existing piece of software than add another yet another one. |
I like to use my own font, that's the biggest plus for me.
Quote:
..or does Apple's background process, the one that's responsible for the menu bar clock enabled, run regardless of whether you use it or not? hmm |
Quote:
|
Editing that file has side-effects
If you edit that file it will affect programs like iPhoto or any other program that uses NSDateFormatString i think.
If you only want to customize the clock its just better to edit the clock properties itself rather than a global change, the file you are looking for is: /System/Library/CoreServices/Menu Extras/Clock.menu/Contents/Resources/English.lproj/Localizable.strings best thing to do is to open a console and change to that dir, if you have project builder installed you can just do: sudo open Localizable.strings if not you can open it with TextEdit: sudo open -a "TextEdit Localizable.strings" then edit the string: "MBC_CLOCK_FORMAT_STRING =" i changed mine to: "MBC_CLOCK_FORMAT_STRING" = "%a, %e %b %Y %time%p"; save it, and logout and in again to make the change. My clock now reads: Fri, 13 Jun 2003 23:24 total changes i made are: Code:
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ |
Re: Editing that file has side-effects
Quote:
|
grammatically, there is no need for a comma between a word and a number
and i'm usually pretty sure what year it is :D a terse timestamp: Fri 13 Jun 2:44 i'm usually pretty sure when it is AM or PM, also |
Quote:
22:46 (Fri 13) ... because I like 24 hour clocks, think the brackets look neater and, unlike Merv, I can also remember what month it is ;) |
ha! good one. (mumble rassum frassum ridicule my granularity, will ya?)
(contents between parentheses are to be ignored) (not a very good literary device, either) (shut up, you!) {backing out, slowly} but, but, but, without the month, i'd need a comma (or some other delimiter), and i despise the, uh, /delimiter/. in that, uh, context. |
Quote:
2:44 Fri 13 ... problem solved :D |
... I use PTHClock...
15:20:45 with Fri 06·13 on the mouse over (those of us without a regular job who sit around in an RV with no real connection to the real world need to be reminded of the day of the week) oooh... and double-clicking brings out a calendar? GREAT! I couldn't ask for more. |
Quote:
|
Quote:
|
geeky? yes. loquacious? doubly so :]
PTHclock here because of color and font and handy quick calendar features. |
OK, I give up - I installed it, mainly because I realised I could turn MenuCalendar off (which always annoyed me because the calendar wouldn't autohide). And you're both right - it's sufficiently customizable to meet all the needs that I can think of :rolleyes:
|
zeb, FYI, you can get your calendar with a single click and auto-dismiss it by switching applications.
|
I had tried that, but realized that I often wanted the calendar up while in other apps, and that I liked the single click to bring PTHClock to the foreground to access the prefs... thanks though...
|
| All times are GMT -5. The time now is 06:08 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.