1

Given the particular nature of my question, I am not even sure this is the right place to ask.

I have relatively simple graphics made in Intaglio which all use a certain color and I would like to change that color, say from 99FFFF to FFCCCC. The problem is that I have several hundreds of these graphics.

It occurred to me that, after all, underlying the graphics, there is a text file for the code and that, presumably, this code includes 99FFFF.

Now TextWrangler can search several hundred text files and change 99FFFF to FFCCCC but I do not know how to get and give it the underlying text file.

2

Keep in mind that I don’t use Intaglio. I’ll just answer in general terms.

The typical way to handle this kind of problem would be with styles. Instead of coloring a certain element blue, you would create a blue-fill style and apply that to all of the elements you want to be blue, and then later you can change the color of the blue-fill style to red and all the blue elements change color to red.

If you haven’t used styles a particular document — and it is not always convenient to — then the next typical way to handle this is to run a script within your vector drawing tool that traverses the object tree and finds blue elements and changes their color to red. The script is typically written in AppleScript or JavaScript.

It looks like Intaglio does support AppleScript. If you are creating complicated vector documents or multiple vector documents, you probably owe it to yourself to learn to script your editor. Otherwise you will spend a ton of wasted time laboriously going through element after element, making the same change, dulling your mind. That is why AppleScript exists in the first place, so that you can work 100% creatively, and AppleScripts do the grunt work. Learning to script your first app is a bit daunting, but very rewarding. You can also script TextWrangler with AppleScript, so you can create AppleScripts that automate TextWrangler and Intaglio as if they were one app that can create almost any website.

What you are describing with a text search-replace would work with SVG because they are just XML documents made of plain UTF-8 text. It is unlikely that your native Intaglio document is stored as plain text. You could point TextWrangler to a folder full of SVG and replace #99FFFF with #FFCCCC. Keep in mind that the colors in an SVG could also be written as rgb(153, 255, 255) or or rgba(153, 255, 255, 0) — with or without spaces. But round-tripping from your editor’s native vector document format to SVG and back again could mean a loss of fidelity because SVG may not support all of the features of an Intaglio document, or Intaglio’s SVG export and import may not support all the features of SVG. But if you are making SVG anyway, you can export as SVG and just work as you would with any other Web document. That is a key feature of SVG.

1
  • @ SimonWhite 1. I am not a graphic designer and I am just making tons of small graphics to use in mathematics texts. 2. Re. styles: I will use them. 3. The last time I tried to learn Applescript---I even bought a book, I utterly failed. 4. It indeed looks like Intaglio files are not text as TextWrangler does not seem to be able to open them. 5. Intaglio can save in SVG but cannot edit or resave an SVG as pdf which is what I need to embed in LaTeX. So that's a dead-end too. 6. So, it looks like I am going to have to live with #99FFFF 7. But, of course, I accepted your answer and upvoted. – schremmer Feb 8 '16 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.