Editing settings outside the app

Most people never need this page. It’s for copying settings to another Mac, fixing something by hand, or setting up macTickr with a script.

What macTickr stores, and where

macTickr runs in the App Sandbox, so it keeps its files in a folder of its own: ~/Library/Containers/com.peppertech.macTickr/Data. Finder may show that folder as macTickr.

What Where, inside that folder
Settings, the source list, update preferences, and whether you’ve removed the ads Library/Preferences/com.peppertech.macTickr.plist
The last headlines from each source Library/Application Support/macTickr/headlines.json
The last stock prices Library/Application Support/macTickr/stocks.json
The last ads Library/Application Support/macTickr/ads.json
Downloaded icons Library/Caches/macTickr/Icons

API keys aren’t in that folder. They’re in your keychain, as items named “macTickr API key”, including your keys for stock prices. macTickr also keeps your ad-free code there, as “macTickr ad-free code”. Your headline files stay where you saved them.

Change settings with Terminal

macTickr keeps its settings in macOS’s preferences system. The source list and the other settings are each stored as JSON inside the preferences file, under the keys sources.v1 and settings.v1. A text editor can’t change them, but the defaults command can.

  1. Quit macTickr.

  2. Back up its preferences:

    defaults export com.peppertech.macTickr ~/macTickr-backup.plist
  3. Save the source list as a JSON file:

    defaults export com.peppertech.macTickr - | plutil -extract 'sources\.v1' raw -o - - | base64 -D > sources.json
  4. Edit sources.json in a text editor. It’s all on one line, so an editor that can format JSON helps.

  5. Write it back:

    defaults write com.peppertech.macTickr sources.v1 -data "$(xxd -p sources.json | tr -d '\n')"
  6. Open macTickr.

For the other settings, use these commands in steps 3 and 5 instead:

defaults export com.peppertech.macTickr - | plutil -extract 'settings\.v1' raw -o - - | base64 -D > settings.json
defaults write com.peppertech.macTickr settings.v1 -data "$(xxd -p settings.json | tr -d '\n')"

To undo your changes, quit macTickr and restore the backup:

defaults import com.peppertech.macTickr ~/macTickr-backup.plist

Keep these rules in mind:

  • Quit macTickr first. It reads its settings when it opens. While it’s running, it saves its own copy whenever you change something in Settings, replacing your edits.
  • Use defaults, not a plist editor. macOS caches preferences and can write its cached copy over changes made directly to the file.
  • Check your JSON. macTickr skips a source it can’t read, such as one with a typo, without a warning, and deletes it the next time you change your sources in Settings. If the whole list isn’t valid JSON, macTickr starts with no sources.

The source list (sources.v1)

The list is a JSON array, in the order shown in Settings. A feed source looks like this:

{
  "id": "3F2A8C1E-0B6D-4C9A-9E57-1D2B3C4D5E6F",
  "name": "Company News",
  "kind": { "feed": { "_0": "https://intranet.example.com/news.xml" } },
  "isEnabled": true,
  "iconPreference": "automatic"
}
Field Value
id A unique ID. For a new source, run uuidgen in Terminal and use its output.
name The name shown in Settings
kind What the source is. See below.
isEnabled true or false. Optional: true if left out.
iconPreference "automatic", "favicon" (Site icon) or "emoji" (🗒️ only). Optional: "automatic" if left out.

The kind is one of these:

  • feed: the feed’s address, as above. You can add, change and remove feed sources freely.
  • newsAPI: the API’s settings, in the fields endpoint, keyPlacement ("header", "query" or "none"), keyName, itemsPath, titlePath, linkPath and datePath. You can change these, but add new news API sources in Settings, because their keys are stored in the keychain under the source’s id.
  • localFile: a bookmark to the file, and its path. Only macTickr can create the bookmark, when you choose the file, so add local file sources in Settings. Changing path only changes the label in Settings.

You can rename, reorder, turn off or remove any kind of source by editing the list.

The other settings (settings.v1)

settings.v1 is a JSON object. A value outside a setting’s range is brought within it, and a field that’s missing or can’t be read gets its default, so a partial object such as {"position": "top"} works.

Field Values Default
fontFamily A font family name, as listed in Settings › Appearance › Font. Leave it out for the system font. System font
fontSize 9 to 72 15
textColor {"red": 1, "green": 1, "blue": 1, "alpha": 1}, each from 0 to 1, in sRGB White
backgroundColor The same format as textColor {"red": 0.08, "green": 0.08, "blue": 0.09, "alpha": 1}
verticalPadding The space above and below the text together, in points: 2 to 200 8
speed Points per second: 10 to 300 60
direction "rightToLeft" or "leftToRight" "rightToLeft"
pauseOnHover true or false false
windowMode "onTop", "behind" or "normal" "onTop"
position "top", "bottom" or "custom" "bottom"
display {"id": "…", "name": "…"}. Leave it out for the main display. Main display
customPlacement {"x": …, "y": …, "width": …}, in points from the bottom-left corner of the display None
refreshMinutes 5, 10, 15, 30 or 60. Other numbers round to the nearest of these. 15
headlinesPerSource 1 to 50 10

macOS assigns each display its id. To find one, choose the display in Settings › Behavior, then export settings.v1 and copy it from there.

The stocks (stocks.v1)

stocks.v1 is a JSON object, such as {"symbols": ["AAPL", "MSFT"], "placement": "afterHeadlines"}. To edit it, use the commands for sources.v1 above with stocks\.v1 and stocks.v1 in their place. A field that’s missing or can’t be read gets its default.

Field Values Default
isEnabled true or false true
symbols A list of up to 50 symbols, in the order they appear. Symbols that can’t be one are dropped. None
placement "betweenHeadlines", "beforeHeadlines" or "afterHeadlines" "betweenHeadlines"
source "yahoo", "finnhub", "alpaca", "tiingo" or "twelvedata" "yahoo"
refreshMinutes 1, 2, 5, 15 or 30. Other numbers round to the nearest of these. 5

The price sources’ keys aren’t in stocks.v1. Enter them in Settings › Stocks.

Copy settings to another Mac

  1. On the first Mac, quit macTickr and run:

    defaults export com.peppertech.macTickr ~/macTickr-settings.plist
  2. Copy the file to the other Mac. Open macTickr there once, then quit it.

  3. On the other Mac, run this, then open macTickr:

    defaults import com.peppertech.macTickr ~/macTickr-settings.plist

Local file sources and API keys don’t carry over. For each local file, click Choose… in Settings › Sources and pick the file. Remove each news API source and add it again with its key. If the chosen display isn’t on the other Mac, the ticker uses the main display.

Start over

To reset macTickr to how it was when first installed, quit it and run:

defaults delete com.peppertech.macTickr

This removes your sources and settings. The next time macTickr opens, it behaves as it did on its first launch. API keys stay in your keychain until you delete them. See Uninstalling.

Starting over doesn’t bring the ads back: macTickr finds your ad-free code in your keychain.

Still stuck? Email support@mactickr.com or see Support.