Update or remove

How to put a newer Namjai on this Mac, or take Namjai off it.

Update to a newer version

Namjai updates when you ask it to. From version 0.2.13 you type no address: the installer carries the address of the site you downloaded it from, https://nj.natandahan.com, so nj update works straight after you install. To see which version you have, type nj version.

  1. See whether a newer version is there. This changes nothing:
    nj update --check
  2. Install it. Namjai downloads the installer, checks that it is the exact file the site lists (its size and its code, a fingerprint of the file), and runs Apple's installer. Type your Mac password when asked (nothing shows while you type it; press Return at the end). It ends with updated and the two versions:
    nj update

Version 0.2.12 or older: its installer carries no address, so nj update does not know where to look. Do one of these once, and from then on nj update works as above:

It never installs an older version or the one you have. Your settings stay as they are. Every message it can print is in the update command.

Update by hand

Version 0.2.8 and older do not have nj update (they answer nj: "update" is not a command), so update those once this way. Use it too for 0.2.12 or older, if you would rather not type an address. Download the newest installer from https://nj.natandahan.com, check it if you want to as in the file check in the Quickstart, then install it as in Install in the Quickstart. Installing a newer one over an older one keeps your settings. Then check:

nj version

Remove it

One command takes Namjai off this Mac. It prints what it will remove and asks you to type yes. Type your Mac password when asked (nothing shows while you type it; press Return at the end):

nj remove

It deletes the program under both its names, the shortcut file the installer left and the installer's records, then Namjai's settings folder. The settings go only after the password step worked, so a refused or cancelled password leaves everything as it was. To see the list without removing anything, type nj remove --dry-run.

One step stays with you, because macOS gives no command to delete a shortcut: when the Namjai Send shortcut is still there, nj remove opens the Shortcuts app and prints the clicks. Click All Shortcuts, hold Control, click Namjai Send and choose Delete. It also reminds you about Full Disk Access (see Remove it by hand, below). Files you saved yourself, such as waiting.csv, are yours to delete. Every message it can print is in the remove command.

Remove it by hand

Version 0.2.11 and older do not have nj remove (they answer nj: "remove" is not a command). Use these steps for those, or when nj remove could not finish.

  1. Delete the program, under both its names. sudo at the start of a line means "do this as the Mac's administrator", which is why it asks for your password. Paste this, press Return, and type your Mac password when asked (nothing shows while you type it; press Return at the end):
    sudo rm /usr/local/bin/namjai /usr/local/bin/nj
  2. Delete the shortcut file the installer left, and tell macOS to forget the install. Namjai's installers are known to macOS as com.natandahan.namjai, and as namjai.desktop before; forget both (one of them says it is not known, which is fine):
    sudo rm -rf /usr/local/share/namjai; sudo pkgutil --forget com.natandahan.namjai; sudo pkgutil --forget namjai.desktop
  3. Delete the Namjai Send shortcut: open the Shortcuts app, click All Shortcuts, hold Control, click Namjai Send, choose Delete, and confirm. Without it, nothing can send for Namjai.
  4. Delete its settings folder: in Finder, open your home folder, then Library, then Application Support, and move the folder Namjai to the Trash. The Library folder is hidden; in Finder choose Go, then Go to Folder, and type ~/Library/Application Support.
  5. If you switched on Full Disk Access for Terminal for Namjai, switch it off: Apple menu, System Settings, Privacy & Security, Full Disk Access, then turn off Terminal.
  6. Delete any files you saved yourself, such as waiting.csv in your home folder. They hold real names and messages.

Removing Namjai does not touch WhatsApp or any chat.