Enable Universal Control

How to setup your iPad to be controlled from your Mac via “Universal Control,” new to macOS Monterrey 12.3 (released in March 2022).

1. Ensure that you are running macOS 12.3+ and iPadOS 15.4+

2. Open System Preferences

3. Choose Displays

4. Click Universal Control and configure your settings

macOS Terminal History Search

ctrl+r starts the search.

Repeatedly hit ctrl+r to cycle through the results.

Enter executes the current result.

right arrow will insert the current result into the current line.

$ history will display all executed commands.

$ history | grep 'git' will display all commands that contained git.

Download a List of URLs

Follow these steps to download a list of URLs using Terminal on a Mac:

  1. Make a text file with the URLs you’d like to download (one URL per line)
  2. Open Terminal and cd to the directory you’ve saved the text file to
  3. Run this command: xargs -n 1 curl -O < file.txt

Setup ODBC on macOS

In order for Easy Catalog’s ODBC extension to connect to a MySQL server, you need to have an ODBC DSN already configured.

  1. Download and install the ODBC Administrator from iodbc.org
  2. Download and install the driver from dev.mysql.com
  3. Open the ODBC app and click on “System DSN”
  4. Click “Add” and choose the appropriate driver
  5. Name your source and add Keyword/Value pairs like this
    • HOST: server IP or domain
    • USER: username
    • PASSWORD: password
    • DATABASE: dbname

Thread Pre-Existing Text Frames

If you have a document that has unthreaded text frames (fig. 1) and you want to thread them together, but don’t want the text to end-up smashed together (like fig. 2) when you’re done, follow these steps.

figure 1
figure 2
  1. Do a GREP Find/Replace with these values (screenshot fig. 3)
    • Find: .\z (last character in a text frame)
    • Replace with: $0~R (previously found text and frame break character)
  2. Thread the frames together

Your finished product will look something like fig. 4!

figure 3

figure 4

InDesign Find & Style Paragraphs

If you have text that’s been imported with basic text tags to define what style should be applied to that specific paragraph, you can use a simple script to delete those “Text Tags” and apply the corresponding paragraph style.

For example, say you have the following text:

[HEADER] This is a Simple Header
[SUBHEAD] Subtitle Goes Here
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.

And you want it to be formatted like so:

This is a Simple Header
Subtitle Goes Here
Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.

Here’s how to achieve this with a simple script that can save you a heap of time when you have a lot of such tags.

  1. In the Scripts panel, open the folder: Application > Samples > JavaScript > FindChangeSupport
  2. Right click on the .txt file and choose “Reveal in Finder”
  3. Open the .txt file in a text editor, add these two lines to the end of the file and save it (you can substitute the underlined strings with any combination you’d like, the first one is the “Text Tag” that’s currently in your document and the second is the name of the paragraph style that you want to apply to the matching paragraphs)
    text {findWhat:"[HEADER]"} {changeTo:" ", appliedParagraphStyle: "Heading"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    text {findWhat:"[SUBHEAD]"} {changeTo:" ", appliedParagraphStyle: "Subhead"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
  4. Make sure that you have corresponding paragraph styles in your InDesign document
  5. Double click the script: Application > Samples > JavaScript > FindChangeList.jsx