Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all 15932 articles
Browse latest View live

Please provide the Story Splitter script by Adi Ravid?

$
0
0

Hi,

 

I'm working on a complex book and need to split threaded stories at lots of places. I know I can do it manually through the Story Editor but have really set my eyes on the Story Splitter script created by Adi Ravid. I found its place @ the Adobe Exchange (http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1302 518#)  but get an error "We're sorry, we encountered an error processing your request." - also when pressing "Email author: Adi Ravid".

 

So, could someone who has the script please post it here?

 

Thanks a lot in advance


Change Text in a Text Box with Script

$
0
0

Hi,

 

I have a text box that lists the word "English" which identifies the English Manual on the title page. I copy and translate this manual. On the translated manuals, I want to change this "English" into the word "Spanish" or "Japanese" using a script. What would be the right way to do this? I could do a find change that targeted only the first page or is there some way to give a text box a unique identifier to call out in the code? Is this what "script labels" do?

Dynamically populate InDesign file and publish

$
0
0

Greetings,

 

I have a database full of text and I would like to publish the data into a nicely designed InDesign file. I can easily dump the data into XML, JSON, or raw Text but is it possible to dynamically populate an InDesign file with this data then publish straight to PDF? Are there any examples of dyanmic data being published from an external source (like XML, JSON, etc.)?

Open InDesign files from Subfolders using a variable

$
0
0

Hi all,

I have a script that opens any InDesign documents that have "0050" in the name ( Thanks to Kasyan Servetsky for the original ).

My problem is that the larger script it will be incorporated into has a variable called "pgNum" that controls which page number needs to be opened (not always page 50) so I need to replace the "0050" with the "pgNum" variable.

I've spent quite a while chopping and changing, then going back to the original but cannot find a way to do it, if anyone could help that would be fantastic .

Many Thanks, Bren

 

var pgNum = 0060

 

var files; 

var folder = Folder.selectDialog("Select a folder with InDesign documents"); 

if (folder != null) { 

    files = GetFiles(folder); 

    if (files.length > 0) { 

        // turn off warnings: missing fonts, links, etc. 

        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; 

 

        for (i = 0; i < files.length; i++) { 

            app.open(files[i]); 

        } 

        // turn on warnings 

        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL; 

    } 

    else { 

        alert("Found no match"); 

    } 

 

function GetFiles(theFolder) { 

    var files = [], 

    fileList = theFolder.getFiles(), 

    i, file; 

 

    for (i = 0; i < fileList.length; i++) { 

        file = fileList[i]; 

        if (file instanceof Folder) { 

            files = files.concat(GetFiles(file)); 

        } 

        else if (file instanceof File && file.name.match(/0050.*\.indd$/i)) {  // ******** NEED TO CHANGE "0050" TO THE VARIABLE pgNum ********

            files.push(file); 

        } 

    } 

 

    return files; 

With CS3, some things have changed

$
0
0
Let's use this topic to record changes that are likely to affect a working script. As I did in the CS2 comparable topic, I'll add an index here in the topic title when the list is long enough (and I have the time).

[Ann] HTML/CHM for CS6 Javascript

$
0
0

I don't think I've ever been so fast before:

 

http://www.jongware.com/idjshelp.html is updated, it now also contains my Friendly Help for CS6, as both HTML (separate files) and CHM (one compiled file for use with a Windows Help viewer).

 

By way of experiment I added a "Full Index" to the HTML version. This is a single huge file, 2.7MB, but it contains links to all properties and methods in the entire set of files. So if you can't use the live one in the compiled CHM, you can still use this one to get a good overview of What to find Where.

 

... Enjoy!

With CS5, some things have changed

$
0
0

This discussion is for changes to the scripting DOM which can affect legacy scripts.

 

Please use this discussion for discussing new scripting features in CS5.

 

Please keep in mind that all changes are specific to version 7 DOM. InDesign supports versioning, so you should be able to use legacy scripts in CS5 without issues. Versioning can be done in two ways:

 

1) Place the script in a folder named: "Version 6.0 Scripts" (or 5.0, 4.0, 3.0). The folder must be named exactly as specified.

2) Set the script version preferences at the start of your script. (i.e. app.scriptPreferences.version = 6), but it's highly recommended to reset the scripting version at the end of the script, and even to enclose the script in a try/catch/finally block to ensure that the script preferences are reset correctly.

 

Here's quick links to issues brought up in this thread:

  1. PageItem.parent
  2. PageItem.itemByName()
  3. PageItem.cornerOption and PageItem.cornerRadius
  4. Text values returned as Strings instead of Numbers
  5. PointType.LINE_TYPE was changed to PointType.PLAIN
  6. PasteBoardPreference.minimumSpaceAboveAndBelow was removed.

Harbs

Script to export multiple pages as JPG with Live Caption as file name

$
0
0

I am looking for a script to export a large indesign document to JPG images and rename each page as the Live Caption attached to the image on the page. The caption is a paragraph style named 'filename' if that is better to use.

 

I am new to scripting and have had a look at other scripts and they only rename multiple pages as a basic name and a number after.

 

Wondering if this can be done?


Hide last column of a table-Reg

$
0
0

Hi,

 

Is it possible to hide a particular column in table using script?Please do guide me on this...

 

Regards,

Revathi

New Scripting Features in CS5

$
0
0

This discussion is for new features/improvements in CS5 related to scripting. For changes to the scripting DOM which effect older scripts please use this discussion instead.

 

Appropriate topics are ones which revolve around the ESTK, InDesign's DOM, or new technologies (such as the new "CS Extension Builder"). Please try to keep the discussion on topic!

 

Thanks,

Harbs

Array List Apply new Paragraph Style only if Match with some Paragraph Styles

$
0
0

Hello!

 

The  code find a list of text like human, free,... with a specific Paragraph Style, like Style 01, Style 02, and after replace the Paragraph Style to MyStyle

But didn't works, because something is not working in the line number 12, with appliedParagraphStyle.

 

Please can you check and help me?

 

var myDoc = app.activeDocument,    
myCodes = ["human","free"],  
C = myCodes.length,  c;    
app.findTextPreferences = null;  
for ( c = 0; c < C; c++) {           app.findTextPreferences.findWhat = myCodes[c];           myFound = myDoc.findText();        var F = myFound.length,  f;      for ( f = 0; f < F; f++) {          myFound[f].appliedCharacterStyle = myDoc.characterStyles[0];          if (( myFound[f].appliedParagraphStyle.name == 'Style 01') || ( myFound[f].appliedParagraphStyle.name == 'Style 02') || ( myFound[f].appliedParagraphStyle.name == 'Style 03') || ( myFound[f].appliedParagraphStyle.name == 'Style 04')) {              myFound[f].appliedParagraphStyle = 'MyStyle';        } else{}    }  
}  

 

Thanks so much!

JavaScript: changes from CS5.5 to CS6

$
0
0

Removed

Classes

FolioBindingDirectionOptions (enum)

FolioOrientationOptions (enum)

SmoothScrollingOptions (enum)

SpaceUnitType (enum)

VisibilityInPdf (enum)

Properties

Button.visibilityInPdf

DocumentPreference.masterTextFrame

DocumentPreset.masterTextFrame

EPubExportPreference.marginUnit

EPubExportPreference.spaceUnit

EPubExportPreference.format

EPubExportPreference.useTocStyle

EPubExportPreference.cssExportOption

EPubExportPreference.externalCSSPath

HTMLExportPreference.leftMargin

HTMLExportPreference.rightMargin

HTMLExportPreference.topMargin

HTMLExportPreference.bottomMargin

HTMLExportPreference.marginUnit

HTMLExportPreference.spaceUnit

HTMLExportPreference.externalCSSPath

HTMLExportPreference.linkToJavascript

HTMLExportPreference.javascriptURL

ObjectExportOption.customImageAlignment

ObjectExportOption.spaceUnit

PagesPanel.verticalView

StyleSheetExportOption.STYLE_NAME_ONLY

StyleSheetExportOption.EXTERNAL_CSS

Methods

Application.rasterizeDocumentPage()

Application.exportMiniFolio()

Application.exportFolioToPackage()

Application.exportFolioToDirectory()

Application.exportFolioToDirectoryPackage()

Application.getAllOverlays()

Application.createCustomMiniFolio()

Application.areFilePathsEquivalent()

Added

Classes

AutoSizingReferenceEnum (enum)

AutoSizingTypeEnum (enum)

CellStyleMapping

CellStyleMappings

CharStyleMapping

CharStyleMappings

CheckBox

CheckBoxes

ClearFormBehavior

ClearFormBehaviors

ComboBox

ComboBoxes

ContentPlacerObject

CustomLayoutTypeEnum (enum)

DimensionsConstraints (enum)

EpubVersion (enum)

FontLockingPreference

GuideTypeOptions (enum)

HtmlItem

HtmlItems

LayoutRuleOptions (enum)

LinkedPageItemOption

ListBox

ListBoxes

MapType (enum)

PNGColorSpaceEnum (enum)

PNGExportPreference

PNGExportRangeEnum (enum)

PNGQualityEnum (enum)

PageViewOptions (enum)

PaginationOption (enum)

ParaStyleMapping

ParaStyleMappings

PreviewPagesOptions (enum)

PrintFormBehavior

PrintFormBehaviors

RadioButton

RadioButtons

SignatureField

SignatureFields

SnapshotBlendingModes (enum)

StaticAlignmentOptions (enum)

SubmitFormBehavior

SubmitFormBehaviors

TableStyleMapping

TableStyleMappings

TextBox

TextBoxes

Properties

AlignDistributeBounds.KEY_OBJECT

Application.linkedPageItemOptions

Application.pngExportPreferences

Application.contentPlacer

Application.fontLockingPreferences

Application.paraStyleMappings

Application.charStyleMappings

Application.tableStyleMappings

Application.cellStyleMappings

Application.selectionKeyObject

Button.linkedPageItemOptions

Button.submitFormBehaviors

Button.clearFormBehaviors

Button.printFormBehaviors

Button.printableInPdf

Button.hiddenUntilTriggered

Button.horizontalLayoutConstraints

Button.verticalLayoutConstraints

Cell.checkBoxes

Cell.comboBoxes

Cell.listBoxes

Cell.radioButtons

Cell.textBoxes

Cell.signatureFields

ChangeGrepPreference.paragraphKashidaWidth

ChangeObjectPreference.autoSizingType

ChangeObjectPreference.autoSizingReferencePoint

ChangeObjectPreference.useMinimumHeightForAutoSizing

ChangeObjectPreference.minimumHeightForAutoSizing

ChangeObjectPreference.useMinimumWidthForAutoSizing

ChangeObjectPreference.minimumWidthForAutoSizing

ChangeObjectPreference.useNoLineBreaksForAutoSizing

ChangeTextPreference.paragraphKashidaWidth

Character.checkBoxes

Character.comboBoxes

Character.listBoxes

Character.radioButtons

Character.textBoxes

Character.signatureFields

Character.paragraphKashidaWidth

CoordinateSpaces.PAGE_COORDINATES

DiacriticPositionOptions.OPENTYPE_POSITION_FROM_BASELINE

Document.linkedPageItemOptions

Document.paraStyleMappings

Document.charStyleMappings

Document.tableStyleMappings

Document.cellStyleMappings

Document.checkBoxes

Document.comboBoxes

Document.listBoxes

Document.radioButtons

Document.textBoxes

Document.signatureFields

Document.selectionKeyObject

DocumentIntentOptions.DPS_INTENT

DocumentPreference.createPrimaryTextFrame

DocumentPreset.createPrimaryTextFrame

EPS.linkedPageItemOptions

EPS.horizontalLayoutConstraints

EPS.verticalLayoutConstraints

EPSText.linkedPageItemOptions

EPSText.horizontalLayoutConstraints

EPSText.verticalLayoutConstraints

EPubExportPreference.externalStyleSheets

EPubExportPreference.javascripts

EPubExportPreference.version

FindChangeTransliterateCharacterTypes.WESTERN_ARABIC_DIGITS

FindChangeTransliterateCharacterTypes.ARABIC_INDIC_DIGITS

FindChangeTransliterateCharacterTypes.FARSI_DIGITS

FindGrepPreference.paragraphKashidaWidth

FindObjectPreference.autoSizingType

FindObjectPreference.autoSizingReferencePoint

FindObjectPreference.useMinimumHeightForAutoSizing

FindObjectPreference.minimumHeightForAutoSizing

FindObjectPreference.useMinimumWidthForAutoSizing

FindObjectPreference.minimumWidthForAutoSizing

FindObjectPreference.useNoLineBreaksForAutoSizing

FindTextPreference.paragraphKashidaWidth

FormField.linkedPageItemOptions

FormField.horizontalLayoutConstraints

FormField.verticalLayoutConstraints

GeneralPreference.mainMonitorPpi

GeneralPreference.greekVectorGraphicsOnDrag

GeneralPreference.showConveyor

GeneralPreference.createLinksOnContentPlace

GeneralPreference.mapStylesOnContentPlace

GeneralPreference.useCustomMonitorResolution

GeneralPreference.customMonitorPpi

GeneralPreference.previewPages

Graphic.linkedPageItemOptions

Graphic.horizontalLayoutConstraints

Graphic.verticalLayoutConstraints

GraphicLine.linkedPageItemOptions

GraphicLine.htmlItems

GraphicLine.checkBoxes

GraphicLine.comboBoxes

GraphicLine.listBoxes

GraphicLine.radioButtons

GraphicLine.textBoxes

GraphicLine.signatureFields

GraphicLine.horizontalLayoutConstraints

GraphicLine.verticalLayoutConstraints

Group.linkedPageItemOptions

Group.checkBoxes

Group.comboBoxes

Group.listBoxes

Group.radioButtons

Group.textBoxes

Group.signatureFields

Group.horizontalLayoutConstraints

Group.verticalLayoutConstraints

Guide.guideType

Guide.guideZone

HTMLExportPreference.externalStyleSheets

HTMLExportPreference.javascripts

IMEPreference.useNativeDigits

Image.linkedPageItemOptions

Image.horizontalLayoutConstraints

Image.verticalLayoutConstraints

ImportedPage.linkedPageItemOptions

ImportedPage.horizontalLayoutConstraints

ImportedPage.verticalLayoutConstraints

InsertionPoint.checkBoxes

InsertionPoint.comboBoxes

InsertionPoint.listBoxes

InsertionPoint.radioButtons

InsertionPoint.textBoxes

InsertionPoint.signatureFields

InsertionPoint.paragraphKashidaWidth

InteractivePDFExportPreference.usePDFStructureForTabOrder

LanguageAndRegion.INDIC

Layer.checkBoxes

Layer.comboBoxes

Layer.listBoxes

Layer.radioButtons

Layer.textBoxes

Layer.signatureFields

LayoutWindow.selectionKeyObject

Line.checkBoxes

Line.comboBoxes

Line.listBoxes

Line.radioButtons

Line.textBoxes

Line.signatureFields

Line.paragraphKashidaWidth

LinkedStoryOption.applyStyleMappings

MasterSpread.checkBoxes

MasterSpread.comboBoxes

MasterSpread.listBoxes

MasterSpread.radioButtons

MasterSpread.textBoxes

MasterSpread.signatureFields

MasterSpread.primaryTextFrame

MediaItem.linkedPageItemOptions

MediaItem.horizontalLayoutConstraints

MediaItem.verticalLayoutConstraints

Movie.linkedPageItemOptions

Movie.horizontalLayoutConstraints

Movie.verticalLayoutConstraints

MultiStateObject.linkedPageItemOptions

MultiStateObject.horizontalLayoutConstraints

MultiStateObject.verticalLayoutConstraints

ObjectExportOption.customLayout

ObjectExportOption.customLayoutType

ObjectStyle.enableTextFrameAutoSizingOptions

Oval.linkedPageItemOptions

Oval.htmlItems

Oval.checkBoxes

Oval.comboBoxes

Oval.listBoxes

Oval.radioButtons

Oval.textBoxes

Oval.signatureFields

Oval.horizontalLayoutConstraints

Oval.verticalLayoutConstraints

PDF.linkedPageItemOptions

PDF.horizontalLayoutConstraints

PDF.verticalLayoutConstraints

PDFColorSpace.GRAY

PICT.linkedPageItemOptions

PICT.horizontalLayoutConstraints

PICT.verticalLayoutConstraints

Page.appliedAlternateLayout

Page.checkBoxes

Page.comboBoxes

Page.listBoxes

Page.radioButtons

Page.textBoxes

Page.signatureFields

Page.layoutRule

Page.snapshotBlendingMode

Page.optionalPage

PageItem.linkedPageItemOptions

PageItem.horizontalLayoutConstraints

PageItem.verticalLayoutConstraints

Paragraph.checkBoxes

Paragraph.comboBoxes

Paragraph.listBoxes

Paragraph.radioButtons

Paragraph.textBoxes

Paragraph.signatureFields

Paragraph.paragraphKashidaWidth

ParagraphJustificationOptions.NASKH_TATWEEL_JUSTIFICATION

ParagraphJustificationOptions.NASKH_KASHIDA_JUSTIFICATION

ParagraphJustificationOptions.NASKH_TATWEEL_JUSTIFICATION_FRAC

ParagraphJustificationOptions.NASKH_KASHIDA_JUSTIFICATION_FRAC

ParagraphStyle.paragraphKashidaWidth

PlaceGun.checkBoxes

PlaceGun.comboBoxes

PlaceGun.listBoxes

PlaceGun.radioButtons

PlaceGun.textBoxes

PlaceGun.signatureFields

Polygon.linkedPageItemOptions

Polygon.htmlItems

Polygon.checkBoxes

Polygon.comboBoxes

Polygon.listBoxes

Polygon.radioButtons

Polygon.textBoxes

Polygon.signatureFields

Polygon.horizontalLayoutConstraints

Polygon.verticalLayoutConstraints

Rectangle.linkedPageItemOptions

Rectangle.htmlItems

Rectangle.checkBoxes

Rectangle.comboBoxes

Rectangle.listBoxes

Rectangle.radioButtons

Rectangle.textBoxes

Rectangle.signatureFields

Rectangle.horizontalLayoutConstraints

Rectangle.verticalLayoutConstraints

Section.alternateLayoutLength

Section.alternateLayout

Section.pagination

Section.paginationMaster

SelectionOptions.SET_KEY

Snippet.checkBoxes

Snippet.comboBoxes

Snippet.listBoxes

Snippet.radioButtons

Snippet.textBoxes

Snippet.signatureFields

Sound.linkedPageItemOptions

Sound.horizontalLayoutConstraints

Sound.verticalLayoutConstraints

SplineItem.linkedPageItemOptions

SplineItem.htmlItems

SplineItem.checkBoxes

SplineItem.comboBoxes

SplineItem.listBoxes

SplineItem.radioButtons

SplineItem.textBoxes

SplineItem.signatureFields

SplineItem.horizontalLayoutConstraints

SplineItem.verticalLayoutConstraints

Spread.checkBoxes

Spread.comboBoxes

Spread.listBoxes

Spread.radioButtons

Spread.textBoxes

Spread.signatureFields

StateTypes.UP_ON

StateTypes.ROLLOVER_ON

StateTypes.DOWN_ON

StateTypes.UP_OFF

StateTypes.ROLLOVER_OFF

StateTypes.DOWN_OFF

StaticText.staticAlignment

Story.paraStyleMappings

Story.charStyleMappings

Story.tableStyleMappings

Story.cellStyleMappings

Story.checkBoxes

Story.comboBoxes

Story.listBoxes

Story.radioButtons

Story.textBoxes

Story.signatureFields

Story.paragraphKashidaWidth

StoryWindow.selectionKeyObject

StyleExportTagMap.splitDocument

Table.checkBoxes

Table.comboBoxes

Table.listBoxes

Table.radioButtons

Table.textBoxes

Table.signatureFields

TagTextExportCharacterSet.CENTRALEUROPEAN_ISO

TagTextExportCharacterSet.CYRILLIC_ISO

TagTextExportCharacterSet.GREEK_ISO

TagTextExportCharacterSet.WINDOWS_ARABIC

TagTextExportCharacterSet.WINDOWS_HEBREW

Text.checkBoxes

Text.comboBoxes

Text.listBoxes

Text.radioButtons

Text.textBoxes

Text.signatureFields

Text.paragraphKashidaWidth

TextColumn.checkBoxes

TextColumn.comboBoxes

TextColumn.listBoxes

TextColumn.radioButtons

TextColumn.textBoxes

TextColumn.signatureFields

TextColumn.paragraphKashidaWidth

TextDefault.paragraphKashidaWidth

TextFrame.objectExportOptions

TextFrame.linkedPageItemOptions

TextFrame.checkBoxes

TextFrame.comboBoxes

TextFrame.listBoxes

TextFrame.radioButtons

TextFrame.textBoxes

TextFrame.signatureFields

TextFrame.horizontalLayoutConstraints

TextFrame.verticalLayoutConstraints

TextFrameContents.PLACEHOLDER_TEXT_ARABIC

TextFrameContents.PLACEHOLDER_TEXT_HEBREW

TextFrameContents.PLACEHOLDER_TEXT_CYRILLIC

TextFrameContents.PLACEHOLDER_TEXT_GREEK

TextFramePreference.useFlexibleColumnWidth

TextFramePreference.textColumnMaxWidth

TextFramePreference.autoSizingType

TextFramePreference.autoSizingReferencePoint

TextFramePreference.useMinimumHeightForAutoSizing

TextFramePreference.minimumHeightForAutoSizing

TextFramePreference.useMinimumWidthForAutoSizing

TextFramePreference.minimumWidthForAutoSizing

TextFramePreference.useNoLineBreaksForAutoSizing

TextImportCharacterSet.MACINTOSH_GREEK_SHARED_CAPS

TextImportCharacterSet.MACINTOSH_ARABIC

TextImportCharacterSet.MACINTOSH_HEBREW

TextImportCharacterSet.WINDOWS_ARABIC

TextImportCharacterSet.WINDOWS_HEBREW

TextImportCharacterSet.ARABIC_ASMO

TextImportCharacterSet.ARABIC_ASMO_TRANSPARENT

TextPreference.quoteCharactersRotatedInVertical

TextStyleRange.checkBoxes

TextStyleRange.comboBoxes

TextStyleRange.listBoxes

TextStyleRange.radioButtons

TextStyleRange.textBoxes

TextStyleRange.signatureFields

TextStyleRange.paragraphKashidaWidth

WMF.linkedPageItemOptions

WMF.horizontalLayoutConstraints

WMF.verticalLayoutConstraints

Window.selectionKeyObject

Word.checkBoxes

Word.comboBoxes

Word.listBoxes

Word.radioButtons

Word.textBoxes

Word.signatureFields

Word.paragraphKashidaWidth

XmlStory.paraStyleMappings

XmlStory.charStyleMappings

XmlStory.tableStyleMappings

XmlStory.cellStyleMappings

XmlStory.checkBoxes

XmlStory.comboBoxes

XmlStory.listBoxes

XmlStory.radioButtons

XmlStory.textBoxes

XmlStory.signatureFields

XmlStory.paragraphKashidaWidth

Methods

Button.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

Document.createAlternateLayout(spreadItems,name,width,height,createTextStyles,linkTextStor ies,layoutRule)

Document.deleteAlternateLayout(name)

EPS.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

EPSText.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

FormField.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])

Graphic.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

GraphicLine.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptio ns])

Group.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

Guide.transformValuesOf(in)

Guide.resolve(location,in[,consideringRulerUnits])

Image.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

ImportedPage.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOpti ons])

Link.goToSource()

MasterSpread.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint] [,destinationLayer][,showingOptions])

MediaItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])

Movie.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

MultiStateObject.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showing Options])

Oval.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

PDF.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

PICT.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

Page.snapshotCurrentLayout()

Page.deleteLayoutSnapshot()

Page.deleteAllLayoutSnapshots()

Page.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint][,destin ationLayer][,showingOptions])

PageItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions] )

Polygon.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

Rectangle.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])

Sound.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

SplineItem.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOption s])

Spread.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,placePoint][,dest inationLayer][,showingOptions])

TextFrame.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions ])

WMF.contentPlace(pageItems[,linkPageItems][,linkStories][,mapStyles][,showingOptions])

Changed methods

Application.dumpFromMemoryMark(Array of from)

Application.dumpBetweenMemoryMarks(Array of from,Array of to)

Button.extractLabel(key)

Document.align(alignDistributeItems,alignOption[,alignDistributeBounds][,reference])

Document.distribute(alignDistributeItems,distributeOption[,alignDistributeBounds][,useDist ributeMeasurement][,absoluteDistributeMeasurement][,reference])

EPS.extractLabel(key)

EPSText.extractLabel(key)

FormField.extractLabel(key)

Graphic.extractLabel(key)

GraphicLine.extractLabel(key)

Group.extractLabel(key)

Image.extractLabel(key)

ImportedPage.extractLabel(key)

MediaItem.extractLabel(key)

Movie.extractLabel(key)

MultiStateObject.extractLabel(key)

Oval.extractLabel(key)

PDF.extractLabel(key)

PICT.extractLabel(key)

PageItem.extractLabel(key)

Polygon.extractLabel(key)

Rectangle.extractLabel(key)

Sound.extractLabel(key)

SplineItem.extractLabel(key)

TextFrame.extractLabel(key)

WMF.extractLabel(key)

With CS4, some things have changed

$
0
0
This topic is not about new features but changes, primarily in the object model, that will affect scripts that run perfectly well under CS3.

Bear in mind that as before, you can create a folder for previous version scripts and run from there, in which case the previous object model is employed -- indeed, CS4 allows you to do this for scripts all the way back to CS scripts. The Object Model Viewer in ESTK, once you've initialized it by opening it once and choosing the InDesign CS4 Object Model, allows you to see all four supported object models.

Delete Unused Paragraph Styles

$
0
0
Hi All,

I realize this one is probably pretty easy, but it has given me some grief these last few minutes. I'm trying to delete all unused paragraph styles in a document in InDesign CS. Here's the latest on what I have:

tell application "InDesign CS" to delete every unused paragraph style of document 1

I can't even get it to compile that. I've tried several variations, but all had the same result...it does not seem to like where I placed the word "unused", but I can't seem to figure out any other correct syntax.

Any help is greatly appreciated!

Call an ExtendScript Script from the Command Line

$
0
0

Hi! I can call an ExtendScript script from a command line or batch file just by using its path, but is there a way to pass parameters to the script? Thanks. -Rick


Script to find/change stroke in tables

$
0
0

Hi everyone,

I posted this very same question about a month ago but I got no reply so I thought I'd try again. Even if I can't obtain a free script that will do what I need, I'm happy to look at paying for one if someone can point me in the right direction.

I'm looking for a script that will target the stroke weight in tables and change them to a lighter weight, eg. from 0.5pt to 0.3pt.

 

I have a script that targets the fill at the following url:

 

http://forums.adobe.com/thread/681944

 

...but I'm looking for one that targets the stroke.

 

Just wondering if anyone might know where I can find one?

 

Thanks

Event Listener help for Radio Button Groups

$
0
0

Hello,

Is it possible to add a event listener for radiobuttonGroups1 and radiobuttonGroups3 where those two options can’t be selected at the same time?

So if you click a button in radiobuttonGroups1, all buttons in radiobuttonGroups3 are deselected and the other way around so only one of those two groups can be active at a time.

 

I found an example in Peter Kahrel’s ScriptUI for dummies but only for “new Window ("dialog”);” dialog type………nothing for the “app.dialogs.add type”

 

Any help would be greatly appreciated!

 

Below is the dialog code.

 

 

var myDialog = app.dialogs.add({name:"Color Swatch Options", canCancel:true});

with (myDialog){

with (dialogColumns.add()){

with (borderPanels.add()){

 

var myradiogroup3 = radiobuttonGroups.add();

with (myradiogroup3){

var myyesradiobutton3 = radiobuttonControls.add({staticLabel:'Check For Spot Color Usage "No"', checkedState:false});

var mynoradiobutton3 = radiobuttonControls.add({staticLabel:'Check For Spot Color Usage "Yes"'});

staticTexts.add({staticLabel:"", minWidth:15});

}

}

 

with (borderPanels.add()){

var myradiogroup2 = radiobuttonGroups.add();

with (myradiogroup2){

var myyesradiobutton2 = radiobuttonControls.add({staticLabel:'Delete All Unused Swatches "No"', checkedState: false});

var mynoradiobutton2 = radiobuttonControls.add({staticLabel:'Delete All Unused Swatches "Yes"'});

staticTexts.add({staticLabel:"", minWidth:17});

}

}

 

with (borderPanels.add()){

var myradiogroup1 = radiobuttonGroups.add();

with (myradiogroup1){

var myyesradiobutton1 = radiobuttonControls.add({staticLabel:'Convert Spot Colors To Process "No"', checkedState: false});

var mynoradiobutton1 = radiobuttonControls.add({staticLabel:'Convert Spot Colors To Process "Yes"'}); 

}

}

}

}

if (myDialog.show() == true){

 

var Spots2Process = myradiogroup1.selectedButton;

var DeleteUnusedSwatches = myradiogroup2.selectedButton;

var CheckForSpot = myradiogroup3.selectedButton;

 

myDialog.destroy();

}

 

 

Thanks is advance!!

M

Need script for find and change text

$
0
0

We have some set of texts that need to find and change in the entire InDesign CS4 document rather than doing manually. Kindly help me out to do the same successfully.

 

for e.g. find text - "mam" and replace with "man".

Extracting single pages out of InDesign documents

$
0
0

Is it possible to extract or export single pages from an InDesign document?

So far I've done it this way: I remove all the other pages, save to a new document and reopen the original document.

Here's my script https://gist.github.com/2964807

 

But obviously this is more of an hack. And the problem is that it's very obvious to the user, as the document is closed and re-opened. Is there a cleaner way of doing it?

 

Thanks in advance for your help.

Combine PDF-files using Indesign?

$
0
0

Hi,

 

Is it possible to combine, lets say 15, PDF-files using Indesign and some scripting magic?

 

I know it's easily done in Acrobat Pro, but I'd like to skip that step and make it even easier for my colleagues.

 

Any hints, tips or links are much appreciated.

 

Thanks,

 

Thomas

Viewing all 15932 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>