Scripts & Utilities
Several Links
Works in DTP
Contacts, resume
Some Photos


DTP Utilities 1.5

Finder Utilities


Scripts Page...

QuarkXPress's Scripts

Finder, System & eq. scripts


Back To Home Page

If sometimes you notice that you repeat the same action twice or even more - be sure - it's easier to write some lines of code in stead of spending time for some boring stuff!

And that's the way I do :-).
Here are the scripts, which are not grown enough to have own UI, but the number of lines they have is still enough to type them each time from the scratch.
In my job I use always scripts like:
tell application "QuarkXPress" to tell selection to set color of characters whose contents is "•" to "•Red"

But this is so little to store in separate files. On the other side they help to save time. For example, the command above helps to change the color of all symbols "•" in highlighted region of text. Actually we can extend the functionality to do the same thing with size, kerning, tracking and so on...


Many scripts require some specific settings of documents, system and program configuration, that is why they are not present here.
For example, all preparational tasks for one issue of magazine is built completely with help of scripts. There is Muster Document in QuarkXPress, there are pictures, which should be used and text. In document all necessary styles for headings, text and so on are defined. We need to add some number of pages to document, put ruler on right positions, import pictures and resize them, import texts, link text boxes, apply necessary style for text and so on... And only afterwards we have creative part of work. And exactly this boring part of job we can automate with AppleScript. But settings of Muster Document are different for each particular case so I can not provide everything here. If you are interested or you have the same problems - just write me and together we can find the solution :-).


Mostly these scripts were created for a particular task, that's why I did not pay a lot of attention to error checking - is file open for writing, does the document exist, is the text region highlighted... If something from the scripts below does not work, you have questions or you want to improve something - feel free to contact me.

Recently I work mostly with QuarkXPress, that's why the bigger part of scripts are intended to work with this application. There are some for Finder, operational system, or set of Photoshop-Illustrator-QuarkXPress.

To download script just press its name or icon near the description.

aliases to selected images

You must select image boxes in QuarkXPress document. Then you choose where to place aliases on files from picture boxes. Afterwards you can, for example, open all images in Photoshop without the need to go through Open Publisher dialog window.
apply style sheet to stories

You choose paragraph style from the list of available paragraphs in your document, select necessary text boxes and the style is applied to all text in all selected boxes.
character style to 1st word

Applies the selected style to the first word of a paragraph in a selected text region. Style is choosen from the list of styles used in your document.
It's very convenient when you make ads, lists and other tasks with the same purpose when you need to accent the first word. Actually you can modify the script to work with any other part of a document.
collect (drop many Docs)

Copies QuarkXPress document and all pictures which are used to a new folder with name of document. The good about it is that you can use this scripts with several documents at once. They all will be opened one after another and for each one will be created a separate folder.
The idea is that FlightCheck and Exensis Collect Pro do not only copy the files but also make a lot of checks within file for fonts, trapping and so on. And this process needs some time. But if you need only to collect all files used in this document together you can do it much faster. Actually up to 7 times!
collect (from… - …to)

Allows to do the same collect (only file copying) but only from selected pages.
generating fonts listnew

Script which allows you to build the font catalogue in the following form. Quark document template is enclosed..

import pictures

You can create in QuarkXPress the document with the necessary number of pages. On Master Document you should place a picture box with necessary scale and picture position settings. And simply drop the files which you need to be present on a script icon. The pictures sorted by name will be located on the appropriate document pages. You can save the document as a Template.
That is useful for creating a document consisting from prepared EPS/PDF pages.

list fonts, used in a documents

The second part of my version of collect utility :) It creates a new document in which you can find the names of all fonts which are used in all documents to which the script was applied. Font face is used for the font name. The script is useful for collecting all fonts used in several documents in one document. Then this new document can be used for collecting all fonts in a separate folder. Becouse it has only text the work with such program as Extensis Collect Pro is very fast.
make all guidesupdated

Puts rules in Your document. You can use any measurement units as well as expressions, for example "1 mm + 10 cm - 5 pt".
make bleed guides

Puts bleed guides - QuarkXPress does not allow you to put them on a Master Page. You can choose from only current spreadsheet or the whole document. You can save a lot of time as you can forget about the fact that everything should start from -3, -3 :)
offset selected boxes

Allows to change the size of all selected objects on the defined size from the center of the object. And pictures inside picture boxes keep there position, you do not need to change there offsets within box..
pictures in spread -> Photoshop

All pictures of the current spreadsheet will be opened with the selected program.
I use this one quite often. Normally the document consists of pictures which are just scanned. To open everything what is on the spreadsheet for color correction, cleaning and so on you can use this script.
print pages (current Doc)updated!

This script prints active document to PostScript file or to printer page by page. Page Setup settings are defined by user. If colour separation option is choosen it is possible to save each colour plate in its own file. Automatic file numbering.
print pages (drop many Docs)updated

Prints some document page after page in PostScript files. Default bleed value are set on 3 mm and Acrobat Distiller PPD is used. Page numbers are added to the names of resulting files. In Page Setup you should choose the Custom paper size.
resample Quark's picturesnew

Usually when producing a Quark document you do not know in advance the final size of imported pictures. So it often happens that bitmap images are too small or too large. In former case we have not sufficient resolution, in latter one - unnecessary image data.
This script checks document and creates a database of PhotoShop images which are reduced to size less than 90% or enlarged to size more than 110%. Then it opens PhotoShop and resizes these pictures so that they will be imported in QuarkXPress document at 100%.
Script also asks for a name of PhotoShop action which can be applied later to all processed images (e.g. unsharp).
There are versions for PhotoShop 6 and 7. In the first case in Plug-ins folder of PhotoShop should be placed filter PhotoScripter, in the second - Scripting Support.
resize selected picture boxes

The size of selected picture boxes will be corrected according to picture sizes so that picture offsets have minimal negative values and pictures occupy the whole box.
set runarround of selection

Switches on/off text runaround for each of selected objects. Saves a lot of time because you do not need to go through Modify Runarround dialog window many times.
UPPER<->lower case of selectionnew

Change case in selected QuarkXPress text. (Unfortunately, this option not work correct with Cyrillic)
add index to file names /RENAME

Renames files. Select files in Finder and drop them on script. Set the base part of index name (pict_), the suffix (.jpg) and index start position. Finally you have files according to your pattern (pict_1.jpg, pict_2.jpg, etc).
add zero before index

If you have files pict_1.jpg, pict_2.jpg ... pict_21.jpg, pict_22.jpg and you need to sort them by name you will have the list where pict_2.jpg goes after pict_19.jpg and before pict_20.jpg. This script adds "0" before the index part of a name. You need to provide the prefix part (pict_) and suffix (.jpg).
communication

Messager between hosts in a network where file sharing is switched on. It is build upon folder actions and popup windows. On a sending computer you type text in dialog window, on the receiving you will the the window with the same text.
I used in before I have installed ICQ, now is obsolete :) You can find instructions inside the package.
Òonvert AI to EPS

You select the necessary files and drop them on script. Adobe Illustrator opens them and saves as EPS. That is impossible to implement such functionality through actions. The script works starting from Adobe Illustrator version 9.0, you MUST have Scripting Support Plug-In (it's located in folder Documentation for DTP Utilities).
copy new files every X minutes

Checks for new files on one resource (in my case FTP) and moves them to the local folder reporting the number of files. If there are no new files - just waits...
creator of TIFFs -> Photoshop

You have Scitex scanner, all scanned files have Scitex signature. This script just changes the Creator of TIFF files (in all dragged and it's nested folders) to Photoshop..
insert pages to PDF

Collects in one multipage document pages from many PDF documents and makes Bookmark on the first page of each of them. Files are sorted by name. The first one is used as a target file.
iTunes action

iTunes control : volume, start/stop, track forward/backward.
It's done to control iTunes on the other computer. When music is bad but you don't want to go there you can make everything from your working place :)
number of files -> folder name

Adds to the names of folder dropped on script the number of containing files (in parethenses).
picture Icons

The script works with Adobe Photoshop - moves you picture from Photoshop to Finder as icon on folder, located near each other like this.
When I created this script I did not have Iconator, but I wanted nice pictures. It is long but reliable :-).
In Adobe Photoshop •Picture icons actions should be available (are attached).
process QXP doc's in folders

Works with all QuarkXPress documents (including documents in nested folders) which where dropped on script. On your choice makes copies or links on the documents in selected folder. It is convenient to find all QuarkXPress documents without the need to search all folders.
UPPER<->lower case of selectionnew

Just like script's name :) It's problem with russian.


Some scripts are written with option Run-Only.
You can always contact me and I will send you editable version of a script.

And I will be happy if I can help you to write a script for you purposes or do it for you.
If you are also interested in writing scripts and have something to place here I can do it for you.
Good luck! :-) Feel free to mail me.
Scripts & Utilities
Several Links
Works in DTP
Contacts, resume
Some Photos