Software Articles

January 1, 2012

What You Can Learn In An InDesign Scripting Course

Filed under: InDesign — admin @ 3:37 pm

InDesign, after a long battle with QuarkXPress, is now widely regarded as the industry-standard page layout, favoured by designers and prepress professionals worldwide. The ability to control InDesign with JavaScripts makes the program even more powerful, enabling developers to automate all sorts of procedures and workflows which, when performed manually, may be prone to error and sometimes very tedious. In this article, we will examine some of the commands available for dealing with files and folders.

The first thing we need to do is to create a folder object. One of the simplest ways of doing this is to use the “create” method and to place the new folder object into a variable.

var fldSource = new Folder(”c/indesign/projects/barkertruman”);

The above syntax can be used to create a folder objects that points to an existing folder or to one that has not yet been created. If the folder does not yet exist, we can create it using the create method.

var blnSuccess = fldSource.create();

If the folder is successfully created, our Boolean variable blnSuccess will contain true. If the attempt to create the folder fails, it will contain false.

If our folder object points to an existing folder, we might want to examine the contents of the folder. Let’s say, for example, we want to check for the existence of an InDesign file called “log.txt”. The getFiles method creates an array containing the names of all the files in the folder and, its optional argument (mask) allows you to specify the file extension of the files you want to return.

var arrFiles = fldSource.getFiles(”*.indd”);

We can then test, within a for loop whether the name of any of the files is “log.txt”.

if(arrSource[i].name == “march.txt”)
{
blnExists = true;
}

In this example, we are setting the value of a Boolean variable to true if the file is found.

Working with the file object is very similar to working with the folder object. Firstly, you need to create the object and assign a file to the object by specifying its path.

var myFile = new file(”c/indesign/projects/barkertruman/log.txt”);

The file object is often used to create and manipulate text files during such operations as keeping a log of activities and reading settings. The methods available with the file object include open, read, write and seek. The open method opens the file for read/write operations. The read method reads the contents of the file starting at the current position. The optional argument specifies the number of characters to read. Similarly, the write method can be used to write to the file starting at the current position. The seek method is used to reset the position within the file.

InDesign training courses

March 6, 2011

Benefits Of Using Layers In Adobe InDesign

Filed under: InDesign — Tags: , , , , — admin @ 9:58 pm

Several programs within the Adobe Creative Suite have a layers feature: Photoshop, Flash, Illustrator and InDesign. Their function differs from program to program but, in general, the use of layers serves to offer flexibility of composition. Items of related content can be placed on their own individual layers. Layers can then be made visible or hidden or can be locked to prevent their content being changed. Equally, the stacking order of layers can be changed to determine which elements are displayed in front of which other elements. Layers are not always necessary when creating a publication in InDesign, but they can beneficial in several situations.

Intricate page layouts often require the creation and complex manipulation of many different InDesign elements. This process can sometimes be made much easier by placing elements on a series of layers.

Perhaps the most common reason for using layers is where you need to produce several different versions of a publication. For example, there may be one version of a catalogue for in-house use and another for clients; or you may need to create different language versions of the same document.

Layers are also useful where certain page elements take a long time to redraw. For example, if you’re creating a large poster with a high resolution background image, you may find it useful to place it on a separate layer and hide the layer when you are working on other elements.

Since layers can be made none-printing simply by hiding them, it is also possible to use layers to store text and other elements which are relevant to the publication but are not to be included in the final version. Such layers could also be used for comments and reminders and can simply be deleted once the publication has been completed.

Another trick is to use layers for creating a document by using a similar publication as a template. A full sized scan of the original document can be placed on a locked background layer and used to ensure that each part of the layout is in the right place, has the right dimensions and so forth.

PowerPoint users often complain that elements placed the slide master will always be behind elements placed on the slides. Whilst the same if true of InDesign master page elements, using layers allows to overcome this fact. Simply place all those items which need to be front-most on a separate layer and move that layer to the top of the heap.

Adobe CS5 training courses in London.

March 5, 2011

Any Experienced User Can Master InDesign Scripting

Filed under: InDesign, JavaScript — Tags: , , , , — admin @ 12:56 am

InDesign is widely acknowledged as the industry standard in print and publishing software. It has a huge range of functions and a large base of users, many of whom have an in depth knowledge of the program. Anyone who uses the program regularly, especially those who use it for fairly challenging tasks, will welcome the ability to automate some of their workflows. However, there is no easy way of achieving this in InDesign.

The recordable actions facility found in Photoshop and Illustrator simply does not exist in InDesign. Instead, InDesign allows the user to write executable scripts using a choice of three programming languages: JavaScript, AppleScript or Visual Basic. The major benefit of using JavaScript as the programming language is that it is cross-platform: scripts will run equally well on Windows and Macintosh.

For anyone working in a Mac-only environment, AppleScript will be the obvious language of choice. It offers the benefit of easy integration with scripts written for automating other programs on the Macintosh platform, for example, extracting information from FileMaker and then taking it into InDesign.

For anyone interested in automating InDesign on the Windows platform, Visual Basic is the logical choice. Additionally, it is possible to control InDesign using Visual Basic for Applications (VBA), a variant of Visual Basic which is used to automate Microsoft Office. This option would be ideal for someone automating the production of financial reports heavily reliant on Microsoft Excel spreadsheets.

Be forewarned that, in order to be able to control the program with scripting, you must know InDesign CS5 very well. This is essential; since it is impossible to understand many of the subtleties of the InDesign object model without an intimate knowledge of the elements of InDesign which these scripting objects represent. Basically, in order to automate InDesign, you need a good knowledge of three elements. Firstly, InDesign: the program and all its major functions. Secondly, a compatible scripting language such as JavaScript. Thirdly, the InDesign object model: the programming syntax which is used to represent every nook and cranny of InDesign itself.

InDesign CS5 Automation Using XML & JavaScript by Grant Gamble is available now from Amazon.

April 26, 2010

Adobe InDesign’s Vector Drawing Capabilities

Filed under: InDesign — Tags: , , , — admin @ 9:49 pm

Given that Adobe own both InDesign and Illustrator, it should come as no surprise that the vector drawing tools found in InDesign function in pretty much the same way as those found in Illustrator. InDesign contains tools and menu commands for creating, manipulating and transforming vector shapes. These are used when working with text and graphic frames as well as with decorative page elements such as backgrounds, lines and flourishes.

The three shape tools (rectangle, ellipse and polygon) are duplicated in InDesign. The first series of tools are used for creating frames, containers into which the user can place images. The second series of tools is used to create simple shapes in exactly the same way as in Adobe Illustrator.

The shapes created with the two sets of tools are distinguished from each other by their contents: frames, by default, are containers for images; shapes contain nothing. You can change the contents of any item created with the two sets of tools by right-clicking on the object and choosing one of the options in the Content sub-menu: Graphic, Text or Unassigned.

Having created a vector shape you can transform it in the usual ways: move, resize, rotate, flip horizontal, flip vertical and shear. As with Illustrator, InDesign allows you to transform an object either by using one of the transformation tools or by using the options in the Transform sub-menu found under the Object menu. The advantage of using the tools is that you can specify the pivot point used during the transformation. This appears as a registration positioned, by default, in the centre of the object which may be moved to any position inside or outside the object being transformed.

One very powerful transformation feature in Illustrator is the ability to repeat a transformation using the Transform Again command and InDesign also incorporates this feature. Say for example, you are creating a layout where you want some text copied and rotated several times with each copy having a different tint of the same colour, giving a kind of fade-out effect. Having copied and rotated the original text once, you can repeat the rotate and copy step by choosing Object – Transform Again – Transform Again or by using the keyboard shortcut Control-Alt-3. It is rather a nuisance that this shortcut differs from the one used in Illustrator, Control-d, but kind of inevitable since Control-d is used in InDesign as the shortcut for File – Place.

Click here for Adobe InDesign training.

April 2, 2010

Advanced Use Of InDesign Master Pages

Filed under: InDesign — Chris Mason @ 8:06 pm

In this article, we will look at some of the finer points of using master pages in InDesign. Firstly, it is possible to base a new master page on an existing one. From the Pages panel menu, choose New Master Page and, when the New Master dialog appears, choose the name of an existing master page from the drop-down menu labelled “Based on Master”.

The new master will not only inherit all of the elements on the existing master, it will also be linked to it; so that, if you make a change to the elements on the original master page, those changes will be reflected on the new one. It’s very easy to tell if a master is based on another master. The page icon of any master page which is based on another master will display the letter prefix of the parent master page.

In InDesign, master elements are not editable on any child document or master pages. However, in both cases master elements can be unlocked on the child page by holding down the Control and Shift keys and clicking on the master item.

Another simple but useful trick is to base a new master page on a document page or spread. To do highlight a document page or spread and choose Save As Master from the Pages panel menu. It is also sometimes useful to create a master page by duplicating an existing one. Just highlight the master in question and choose Duplicate Master Spread from the Pages panel menu.

Master pages created in one document can be transferred into another document in much the same way as styles and swatches. Choose Load Master Pages from the Pages panel menu then browse for the document that contains the required master(s). Please note, however, that InDesign always imports all of the master pages that the document contains. It does not offer the option of selecting only certain items as is the case with swatches and styles. If one of the master pages being important has the same name as an existing master page, a dialog box will appear offering you the option of replacing the existing master page or renaming the new one.

Click here for InDesign training courses.

InDesign Master Page Essentials

Filed under: InDesign — Chris Mason @ 7:48 pm

An InDesign master page is a basic page design which acts as a blueprint for the creation of document pages. Any content placed on a master page will also appear on all document pages based on that master. Master pages will typically feature headers, footers, page numbers and corporate graphics. Additionally, any guides placed on a master will be inherited by associated document pages. The two key benefits of using master pages are, firstly, that this saves you the trouble of recreating the same elements on several pages and, secondly, that they offer a mechanism for modifying and updating several document pages. Each time you make changes to a master, all document pages based on that master will also be updated.

You can create multiple master pages within the same document and you can also nest master pages by basing a new master page on an existing master. Even if you do not make use of master pages, every InDesign already contains a default master named “A-Master”. For documents with only a few pages or a single page, you will probably simply ignore the default master. However, for documents with more than a few pages, it is probably worth considering the use of master pages.

If the document has a consistent layout, then any master items you may need can probably be placed on the default master. To edit the default master, double-click its icon in the Pages panel (Window – Pages). Create the items you wish to appear on all pages, for example, a title at the top of the page and a page number at the bottom.

Editing the master page is no different from editing a normal page; so, to enter text, you must create a text frame. To insert a page number, position the cursor where you want the page number to be displayed and choose Type – Insert Special Character – Markers – Current Page Number. While editing the master, the letter of the master (”A” in the case of the default master) will be displayed in place of a page number. However, when you return to the document pages, the correct page number will appear on each page.

When you create an InDesign document, you have the option of activating “Facing Pages”. If you choose to leave this option inactive, you will find that the default master consists of a single page. This means that you cannot format left pages differently to right pages and, typically, you use this option when you plan to print only on one side of the paper. If you activate the “Facing Pages” option, your default master page will consist of two pages: one for formatting left-hand pages and one for formatting right-hand pages.

Click here for InDesign training
.

Adding Hyperlinks To Your Adobe InDesign Documents

Filed under: InDesign — Chris Mason @ 7:35 pm

Adobe InDesign has been traditionally thought of as a DTP (desktop publishing) software, used for producing publications which are destined for print and, only as an afterthought for PDF distribution. However, as more of our information becomes electronically distributed, so the focus of InDesign is shifting and each release brings more features relating to the creation of online documents. The use of hyperlinks is one of the key elements in InDesign’s electronic armoury. Interestingly enough, this functionality is not new; it was present in InDesign’s predecessor, Adobe PageMaker.

To work with hyperlinks in InDesign, choose Window – Interactive – Hyperlinks to display the Hyperlinks panel. Creating hyperlinks in InDesign is a bit like using named anchors on a web page: first you create a Hyperlink Destination and then you can create one or more links to this destination. To create a destination, choose New Hyperlink Destination from the Hyperlinks panel menu. Enter a name for the destination and then specify the type of link you wish to create: URL, Page or Text Anchor.

The URL option is used to create a link to a web page. The Page option is used to create a link to a page in the current document. This option also allows you to choose the zoom level at which to display the page: Fit View, Fit in Window, Fit Width, Fit Height, Fit Visible or Inherit Zoom. The Text Anchor option is very similar to the aforementioned named anchor used in HTML and makes the selected text the destination.

Links to the destinations you create in an InDesign document are referred to as hyperlink sources. To create a hyperlink source, either highlight some text with the text tool or click on a frame with the pointer tool to select it; then choose New Hyperlink from the Hyperlink panel menu. The New Hyperlink dialog box appears. The pop-up menu labelled “Link To” allows you to specify the type of destination. As well as the three options that are present when you create a destination (URL, Page and Text Anchor), you can also choose Email, File and Shared Destination.

If you choose Email, you can enter both an email address and a subject. If you choose File, a dialog box appears allowing you to browse for the file you wish to link to. The Shared Destination option allows you to choose a destination in any InDesign document.

The Character Style area of the New Hyperlink dialog allows you to apply a character style to the hyperlink text. This allows you, for example, to create a character style featuring bold blue, underlined text to make your text resemble a regular HTML hyperlink.

Click here for InDesign CS4 training courses.

Working With Interactive Documents In Adobe InDesign

Filed under: InDesign — Chris Mason @ 7:28 pm

As well as creating documents for print, InDesign CS4 also allows you to create interactive PDF files. You can use the Hyperlinks panel to create links within text and when you export the document as a PDF, these links will automatically be converted into PDF links.

PDF links are essentially rectangular hotspots which may be placed around text or any other element on the page. Thus, if you select some text and convert it into a link by choosing New Hyperlink from the Hyperlink panel menu, after specifying the destination that the link will lead to, you are asked to specify the appearance of the link.

By default, links are indicated by a visible rectangle. If you decide to stay with this option, you can choose the width of the border: Thin, Medium or Thick. You can also specify a line style from the Style pop-up menu: Solid or Dashed. You can even choose the border colour. If you prefer to make the link more subtle, you can choose Invisible rectangle. Since there will then be no visual clue that the text is a link, it is also useful to create a character style with a blue underline and manually apply it to any text you plan to make into a link.

Another feature of PDF links is that when they are highlighted, i.e., clicked, they can optionally change appearance. Simply choose an option from the Highlight pop-up menu in the Appearance section of the New Hyperlink dialog: None, Invert, Outline or Inset.

In addition to converting links created manually to their PDF equivalents, InDesign will also convert some elements into links automatically. For example, if you create a table of contents or index, you are given the option of having each item within these two structures automatically converted into a PDF link. To get this feature to work, having chosen File – Export and specified Adobe PDF as the file format, ensure that the Interactive Elements checkbox is activated in the General section of the Export Adobe PDF dialog box.

Another export option is to generate HTML pages. To do this, choose File – Export for Dreamweaver. This time, all InDesign hyperlinks will be automatically converted in HTML hyperlinks and the web pages generated can be edited with any text or HTML editor.

Click here for InDesign training courses.

August 21, 2009

Using The Book Command In Adobe InDesign

Filed under: InDesign — Tags: , , , , , , — admin @ 6:11 am

When you choose New from the File menu in Adobe InDesign, you may have noticed the option to create a new book without ever knowing exactly what a book is. Well, in fact, books are a fairly nifty feature: they allow you to take a series of related InDesign document and treat them as a single entity; a book. All documents in the book can then share resources such as paragraph and character styles, colour swatches, master pages, sections and page numbering.

Having created a book, by choosing File-New-Book, the Book panel is displayed. It contains a panel menu with all the necessary options. The first task is to add documents to the book: from the Book panel menu, choose “Add Document” and select the documents you want to be treated as part of the book.

The book file can now be saved. The book is a separate entity to the documents it contains and the documents in a book do not have to reside in the same location as the book or as each other. To save the book, choose Save Book in the Book panel menu.

Next specify which of the documents in the book will be treated as the style source. The document elected as the style source will be used as the master document in the process known as synchronization whereby InDesign replaces the colour swatches and styles of all documents in the book with those in the style source document.

To control page numbering across the whole book, choose Book Page Numbering Options in the Book panel menu. The default behaviour is “Automatically Update Page & Section Numbers”: this will number pages in the documents within the book according to the order in which they are listed in the Book panel.

You can replace an existing chapter of a book with another InDesign document by simply selecting an existing book chapte and choosing Replace Document from the panel menu. Next, navigate to the replacement document and double-click to select it. InDesign will then replace the selected chapter with the new document. Deleting chapters from a book is equally straightforward. Just highlight the chapter(s) and choose Remove Document from the panel menu, or click the Remove Document icon at the bottom of the Book panel.

Books are a great tool for division of labour since the fact that a document is part of a book does not stop it from being a regular InDesign document. If a book contains five documents, five different people can work on each of those documents and then, at the end, the whole book can be preflighted, printed and output as PDF as a single unit.

Both tables of contents and indexes can also be generated for an entire book as well as for a single document. Simply create the table of contents or index in the normal way but activate the option “Include Book Documents”.

Adobe InDesign training courses in London and throughout the UK.

Powered by WordPress