This JavaScript needs to be installed in QuarkXPress 2018. Feel free to modify this script to your own needs.
Please see here on how to install: Installation Instructions
This script finds a string, based on a RegEx pattern, in a given text box and replaced it with the a provided string (which can also be a regex).
This script references a sub script called "basic_checks.js", which is provided in "Dependencies".
This sample ships with QuarkXPress 2018.
The example here searches for names "First name & last name" and replaces it by "Last name, comma, first name". The regular expression needs to be finetuned, as it doesn't handle names with special characters or hyphens yet.
May 2018: Initial version
- On the GitHub page, download the ZIP by clicking on the green button "Clone or download"
- In the popout menu click on "Download ZIP"
- Save to your Desktop
- Unzip (so that you get a folder)
- Copy the resulting folder to the js folder in your documents folder (see below)
- In QuarkXPress open the "JavaScript" palette
(via "Window" menu) - If you do not see a folder with the name of this JavaScript, click on the little "Home" ("House") symbol.
Step 5: On MacOS copy to | Step 5: On Windows copy to |
---|---|
~/Documents/Quark/QuarkXPress 2018/js/ | Documents\Quark\QuarkXPress 2018\js\ |
(so into your "Documents" folder) | (so into your "Documents" folder) |
Run the JavaScript by first double clicking the folder; and then double clicking the Script itself (in the JavaScript palette of QuarkXPress).
More information on QuarkXPress and how to use JavaScript in QuarkXPress can be found here:
http://www.quark.com/Support/Documentation/QuarkXPress/