Upload
wvanweelden
View
92
Download
4
Embed Size (px)
Citation preview
ExtendScriptGetting Started
Willam van Weelden
ExtendScript:
• Adobe language for automating Adobe products
• Supported in:• RoboHelp
• FrameMaker
• PhotoShop
• Many more
ExtendScript:
• Is based on JavaScript syntax
• Supports common JavaScript methods
• Custom API for different Adobe products
• Generic additions• File/Folder manipulation
• GUI
• XML
ExtendScript:
• Object Oriented, like JavaScript. But not much more.
• Isn’t like JavaScript in the Browser• ‘.count’ instead of ‘.length’. And it starts at 1
• No DOM• no: getElementById
• Gotcha’s when running scripts automated in RoboHelp
What you will need:
• ExtendScript Toolkit (included with RoboHelp)
• Adobe RoboHelp
• RoboHelp Scripting Guide• Overview of variables and constants also available in ExtendScript
Toolkit
• Editor with JavaScript Syntax Highlighting• Optional. I prefer Notepad++ over the ExtendScript Toolkit
RoboHelp API
RoboHelp API: Constants
RoboHelp API: Accessing Topics
Demo 1:
• Loop through all topics in the project
• Put list of topics to Output View Pod
• Write list of all topics to text file
Demo 2:
• Loop through all topics and snippets in the project
• Open topics and snippets and search for <span> with inline styling
• Remove inline styling and save topics
Make it easy!
• Willam’s RoboHelp ExtendScript Library
• Full Documentation
• Shortcuts for many common features• Removing / Finding tokens• Getting SSL settings• Get and assign map id and map # for Context Senstive Help• Support for linked documents• And much more!
• 100% Free!
Sample: Get Token by Tag Name
ExtendScriptQuestions?