Benches macOS

7

Clock widget: can I change city name?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I live on the East Coast, so my clock widget (nearest city) says Atlanta. Can I change the name to my specific location?

7 replies

Sign in or join Beachball Help to reply.

  1. 0

    floba

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    If you mean the built-in clock widget then the simple answer is: no you can't. What you can select are the major cities that indicate the timezone you are living in. For example: although I live around 200 miles from Berlin (Germany) my clock shows Berlin as timezone.

    floba

  2. 0

    roam

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    If you have Developer Tools, there is a Widgets Utility called Dashboard for writing your own widgets.

    Using the original, you can locate the name you want to alter. I just did this a test. Now I have changed it back to the name of my city, which fortunately was included as standard.

    User uploaded file

  3. 0

    Hookshot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Where do I find Developer Tools, and how difficult is this to do?

  4. 0

    roam

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    correction: I meant to say the utility is called
    Dashcode not dashboard.

    Developer Tools may be included on your Leopard Install DVD, if not it can be downloaded from
    http://developer.apple.com/tools/download/

    If you have Leopard you would download Xcode 3.0

    It is 1.1GB in size. Still interested?

    With Developer Tools installed and working from your admin account:

    Locate HD/Library/Widgets/World Clock

    Make a copy of it and place the copy in Projects, or any where you want to save the copy to.

    Back to the original, Select it and control click on it to find Open With, and select Dashcode.

    First of all, save it as a different name with Save As; call it World Clockmod

    Have the new location be Library (the default)

    From the Toolbar select View (blue icon) and select Files.

    Locate your language, English in your case.

    Expand the folder to
    localizedStrings.js

    In the right hand pane you will see various locaizedCitynames.

    Locate the one you want to change.

    eg.

    localizedCityNames['Atlanta'] = 'Atlanta';

    change the second instance to your local town name: eg

    localizedCityNames['Atlanta'] = 'Newtown';

    Make sure it is still in the 'quotes'

    Save the file.

    Quit Dashcode.

    You will now observe the new file World Clockmod sitting at the bottom of the Library folder in the Finder window.

    Double click on World Clockmod and you will be asked if you want to replace World Clock with World Clockmod. Say yes.

    On the Dock click on dashboard, and position your new clock.

    Select Manage dashboard to select it in the list if you want it to appear in the list of widgets.

  5. 0

    Hookshot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the detailed response. I may give this a try when I have a little time. One more question, totally unrelated to this topic. Why do I have to login to the site every time?

  6. 0

    roam

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Why do I have to login to the site every time?

    You only have to log in if you want to post, otherwise just clicking on one of the email hotlinks will take you to the page to read without needing to log in.

    Message was edited by: roam2

    Message was edited by: roam2

  7. 0

    Hookshot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks, roam2. I was able to install just Dashcode from my installation DVD, so I didn't have to do the full 1-gb+ install. Was able to create the mod by following your instructions. Thanks for the help!