Skip to main content
Arnis Gubins
Inspiring
July 15, 2011
Question

Some Extendscript resources

  • July 15, 2011
  • 5 replies
  • 4839 views

A note from Kapil Verma, FM's product manager:

*************

Hi All,

Hope you are well. Many of you have asked me about ExtendScript capability in FM10. With Extendscript, one can easily automate time-consuming and repetitive tasks and this tool comes standard as part of FrameMaker10. And the best part about this is that extendscript lets you create scripts which can communicate with several Adobe products and not just FrameMaker. Here are some additional resources for you to look at.

Blog Posts on extendscript

http://blogs.adobe.com/techcomm/2011/03/sample-scripts-utilities-shipped-with-framemaker-10.html

http://blogs.adobe.com/techcomm/2011/07/create-a-book-packager-using-extendscript.html

E-Seminar recording

http://www.adobe.com/cfusion/event/index.cfm?event=register_no_session&id=1808717&loc=en_us

Overview documentation

http://help.adobe.com/en_US/framemaker/using/WSd5e89bb44d752f2f4e0f6b6612c81bacb1a-8000.html

More to come…

Thanks,

Kapil Verma

Sr. Product Manager - FrameMaker | FrameMaker Server

O: +91-120-2444711 x 34505

http://blogs.adobe.com/techcomm/category/framemaker

http://twitter.com/KapilVermaAdobe

http://www.adobe.com/products/framemaker/

This topic has been closed for replies.

5 replies

Inspiring
April 16, 2012

It looks to me like parts of ExtendScript that are common to multiple applications, such as .execute() and interapplication communication, are at least partially documented in the Adobe Creative Suite 5 Javascript Tools Guide:

http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/scripting/pdfs/javascript_tools_guide.pdf

Though it's still not clear to me how to specify a fileObj for .execute(). And the discussion of paths doesn't make it clear to me why RoboHelp scripts require paths such as C:\\Users\\Robert\\....

Arnis Gubins
Inspiring
December 9, 2011

If you're new to to the whole Extendscript programming concept, don't get too stuck on just looking for FrameMaker specific resources for getting the hang of using Adobe's native scripting. Look at some of their products as well. For example, here's an excellent overview to using the underlying javascript concepts with InDesign, that might help you better understand how to start do things with FrameMaker:

http://indesignsecrets.com/javascript-for-the-absolute-beginner.php

Arnis Gubins
Inspiring
November 3, 2011

Examples of numerous practical topics using Extendscript can also be found at Debra Herman's blog "Extending FrameMaker - Learn how to customize Adobe FrameMaker with ExtendScript scripting." <-- link

The topics to date (newest first):

Cut, Copy, Paste

Selecting Text

Error Code When Deleting a Range and Some Buggy Be...

Deleting a Text Range

Adding Text at a Location in Text

Calculating Offsets

Working with Text

Error codes: when are they actually set?

Debugging with Error Codes

Ungrouping graphics

Grouping Graphics

Import by Reference

A Peculiar Fact about Frame Graphic Object Propert...

Counting Insets

Where's the text?

Updating a Paragraph Format

Working with Paragraph Formats

Getting and Setting a Paragraph Property

Counting Paragraphs in the Main Flow

Counting Paragraphs in a Document

Paragraphs, Ordered and Unordered

Hooking up the Toolkit

The Active Document

Getting Ready to Use FrameMaker with the ESTK

Hello Again

Running a (Very Simple) Script

Document Architecture

Easier to Code? Easy to Code?

There's a New Scripting Tool in the Box

Arnis Gubins
Inspiring
December 9, 2011

Debra's November topics cover:

Determining an Object's Page

Determining an Object's Type

Working with Selections

Things that Reside in Text Frames

Graphics and their FrameParent

The Page Frame

Navigating by Page

Working with the Current Page

Page Types

Creating a Variable

Creating an Index Marker

Creating a New Paragraph

Updating Paragraph Format Properties Using Propert...

Creating a new Paragraph Format

Deallocating Text Items

Applying Character Format to Manually Tagged Text

Viewing Text Items

A very important FDK include file

Preventing Fireworks

Cut, Copy, Paste

Selecting Text

Error Code When Deleting a Range and Some Buggy Be...

Arnis Gubins
Inspiring
June 6, 2012

"Extending FrameMaker - Learn how to customize Adobe FrameMaker with ExtendScript scripting."

Additional topics posted by Debra Herman since November:

April (2)

Working with Structured Documents

Selecting an Entire Element

March (4)

Opening Files Off Screen

Opening Book Files when there are Issues

Saving FM Binary in Old Version

Using SimpleOpen() without User Interaction

February (4)

Opening a File with User Interaction

Working with Book Components

Working with the Active book

Converting Font Style Names to Font Angle Index Va...

January (11)

Text Item and Line Ends

Customizing a Save Operation

Creating a Marker (Correction to previous post)

Saving a document without user interaction

Saving a document with user interaction

Rearranging the Tree of Elements

Text Nodes

Element Navigation Schematic

Getting Attribute Names

Getting an Element's Text

Collapsing Elements in the Structure View

December (15)

Preorder Element Tree Traversal

Determing What Element is Selected (Part 2)

Determining What Element is Selected (Part 1)

Getting an Element's Definition Name

Determining if a Document is Structured

Structured FrameMaker: The Big Picture

Making a Selection in a Table

Unstraddling Table Cells

Straddling Table Cells

Getting Table Cells Column by Column

Getting Table Cells Row by Row

Adding Columns to a Table

Adding Rows to a Table

Creating a Table

Tables

Arnis Gubins
Inspiring
November 2, 2011

The ExtendScript documentation is now available online. You can also add feedback on individual help pages for ExtendScript.

http://help.adobe.com/en_US/framemaker/using/index.html (main page with the link under Popular Resources)

http://help.adobe.com/en_US/framemaker/scripting/index.html (Scripting home page)

Arnis Gubins
Inspiring
September 29, 2011

FYI, the exact same info is repeated in Adobe evangelist Tom Aldous' blog at:

http://tmaldous.com/2011/09/28/framemaker-10-extendscript-resource-links/