Applied styles

Hello,
I have a document and there are several paragraph and character style applied in the text.
I need to display  the paragraph style and character style used in all the paragraphs in the indesign document.
Is there any JS script?
Thanks,
Thomas

I want to display used style in the Indesign document. See below screenshot.
Thanks,
Thomas

Similar Messages

  • How to apply style sheet (.css) in Weblogic directory listing

    Hi,
    We are migrating a directory listing application from Apache to Weblogic.
    Earlier we did this by Apache httpd.conf entry like below :
    <Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder">
    IndexOptions FancyIndexing FoldersFirst NameWidth=* XHTML
    IndexOrderDefault Descending Date
    IndexStyleSheet "/css/style.css"
    </Directory>
    /opt/apache/httpd-2.1.9/htdocs folder has all it's usual resource files.
    We were able to see documents in "Myreportfolder".
    Now we have moved to Weblogic and using virtual directory mapping as below and we are trying to achieve the same thing:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    - <wls:container-descriptor>
    <wls:index-directory-enabled>true</wls:index-directory-enabled>
    <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by>
    </wls:container-descriptor>
    - <wls:virtual-directory-mapping>
    <wls:local-path>/Myreportfolder</wls:local-path>
    <wls:url-pattern>/*</wls:url-pattern>
    </wls:virtual-directory-mapping>
    <wls:context-root>/getreports</wls:context-root>
    </wls:weblogic-web-app>
    We are able to view the reports but we do not get look-and-feel of Apache like directory listing.
    but we encounter below issues:
    1) File/Folder icons are not visible - we want to use style sheets in http header from the response that is returned from weblogic server
    2) Filename is limited to 29 characters when it is showing
    3) Files are not sortable as Descending order - we sorted using tag <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by> but the latest file is shown at the last
    We are thinking that Weblogic must be having some configuration like Apache httpd.conf where we can apply style sheets (css ).
    We would appreciate af anyone can provide better insight into the issue.
    or is it possible to extend weblogic.servlet.fileservlet class to serve this purpose.
    Thanks & regards,
    Rabi

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • Shortcut to: Apply (style), Clear Overrides  ?

    Hi there,
    I'm working on a approx 100pg price list that I've set up a tables for, and the design of it has changed slightly (sigh). It looks like a basic excel spreadsheet and I have imported the text already. Basically, I'm going through and applying a cell style to various rows, not equidistant from each other -- some 3 rows apart, some 15. I need to, and have been, highlighting the row, right-clicking the particular cell style, and doing the "Apply (style), Clear Overrides" to get the desired result. So, what I was wondering, Is there ANY way to create a shortcut to do this? I know how to apply the style with a shortcut, but not the overrides option.
    Even better, if anyone knows how to select multiple rows at once and apply, that would be fantastic.
    Love this forum and thanks in advance!

    I was just thinking about that cost/benefit analysis on my way to work this morning. If it takes me a whole hour to gin up that script, then how many months before I make those hours back in time saved? My parastyles always have numpad shortcuts (e.g. Control + numpad 8), and my "Clear All Overrides" shortcut is Control + Shift + numpad Enter, so it might be a long, long time before the saved fraction of a second from using a single script instead of two keyboard shortcuts that are right next to one another adds up to the hour of Javascript fumbling.
    (Then again, if I cared that much about saving milliseconds, I wouldn't be posting this. )

  • Applying a shortcut to "Apply "style" then next style"

    In CS2, is there a way to apply a keyboard shortcut to the "Apply 'style name' then next style" command in the paragraph styles menu.
    thanks
    jon

    Gerald,
    I retrieved the script for CS2 which I've copied below. I changed the name of the tag to fit my book but I have a problem running it. When it gets to the line:
    if (app. selection. length> 0) {
    I get an error: undefined is not an object
    Can you offer any quick help? Thanks very much. Script below:
    / FirstAndNextStyles.jsx
    var myFirstPStyle = "X Appendix Co. Name";
    Object.prototype.isText = function()
    switch(this.constructor.name)
    case "InsertionPoint":
    case "Character":
    case "Word":
    case "TextStyleRange":
    case "Line":
    case "Paragraph":
    case "TextColumn":
    case "Text":
    case "TextFrame":
    return true;
    default :
    return false;
    if (app.selection.length > 0) {
    var myDoc = app.documents[0];
    for (oneSel = 0; oneSel < app.selection.length; oneSel++) {
    if (app.selection[oneSel].isText()) {
    // apply paragraph style to the first of selected paragraphs
    try {
    app.selection[oneSel].paragraphs[0].appliedParagraphStyle = myDoc.paragraphStyles.item (myFirstPStyle);
    catch(e){
    // apply paragraphs next style to the following paragraphs
    if (app.selection[oneSel].paragraphs.length > 1) {
    for (oneP = 1; oneP < app.selection[oneSel].paragraphs.length; oneP++)
    app.selection[oneSel].paragraphs[oneP].appliedParagraphStyle = app.selection[oneSel].paragraphs[oneP-1].appliedParagraphStyle.nextStyle;
    else if ((app.selection[oneSel].paragraphs.length == 1) && (app.selection[oneSel].paragraphs[0].insertionPoints[-1].paragraphs[0])) {
    app.selection[oneSel].paragraphs[0].insertionPoints[-1].paragraphs[0].appliedParagraphSty le = app.selection[oneSel].paragraphs[0].appliedParagraphStyle.nextStyle;

  • Applying style sheets to Jato

    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda

    There is some confusion here. The JatoSample project that shipped with the
    Developer CD does not include the Components samples (which includes the Date
    example). The "live" sample that is viewable on the intenal web site
    http://ias.red.iplanet.com/jato/ does include the Component samples.
    We intentionally disabled the Component samples in the Developer CD version
    because at the time that it shipped we had an unresolved issue with running the
    Component samples on certain servlet containers. That issue has been favorably
    resolved.
    The downloadable version of Jato 1.2 should contain a version of the JatoSample
    which does have the Component sample enabled.
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, November 29, 2001 8:39 AM
    Subject: RE: [iPlanet-JATO] applying style sheets to Jato
    Belinda,
    Sorry for the delay. JATO is now available on http://developer.iplanet.com
    and the JATO Sample WAR file is available separately for download - so make
    sure you have this latest example. The sample is available LIVE on internal
    sites which I will send you offline. We are working to have this and other
    samples running live on the public web site shortly.
    For the Date component example please check out the Components section in
    the Index of the running application and the following in the WAR file
    WEB-INF/classes/jatosample/module1/E0130Viewbean.java
    WEB-INF/jatoSample.tld
    WEB-INF/classes/jatosample/components
    Could you please elaborate on your requirements for style sheets. Other
    than using style sheets normally as you would with JSPs, what are you trying
    to do? We would like to be focused in our answers.
    matt
    -----Original Message-----
    From: Belinda Garcia [mailto:<a href="/group/SunONE-JATO/post?protectID=014056235009078154169082148140172241239144044214017123152006048067">belinda.garcia@s...</a>]
    Sent: Tuesday, November 27, 2001 5:08 PM
    Subject: [iPlanet-JATO] applying style sheets to Jato
    Is there an example of this somewhere or some documentation? I'm using Jato
    1.2.
    Also, in the emails that fly back and forth I have seen a date sample
    mentioned.
    Where is this? I have got the JatoSamples.war deployed and I don't see a
    date
    example. I just wonder if I'm missing some other Jato examples.
    Thanks.
    Belinda
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    [Non-text portions of this message have been removed]

  • Get Text with Applied Style

    Hi all,
    I am using InDesign CS3 on OS 10.5. I'm trying to write something in Applescript that can look at a document and give me the text that has a certain applied style.
    For example, if a document contained the text "Hello, world" and had an applied paragraph style called "Greeting," then what I want is to use my script to tell that document something like this:
    tell application "Adobe Indesign CS3"
    set theDoc to document 1
    set theText to get every paragraph of theDoc whose applied paragraph style is "Greeting"
    end tell
    theText
    -->should return: "Hello, world"
    Obviously, I tried that script, but it doesn't work. I get the error "Adobe InDesign CS3 got an error: Cant get every paragraph of document "MyDocument.indd" whose applied paragraph style = "Greeting"."
    I'm not sure if I am just using the wrong commands or what. Any help is greatly appreciated!

    Hi Hayden,
    The trouble is, theDoc doesn't have paragraphs. If you open the InDesign dictionary and look at the document object, you'll see text frames, and you'll see stories, but no paragraphs. To get all of the paragraphs, you'd use something like this:
    set theText to every paragraph of every story
    But getting every paragraph of every story whose applied paragraph style is a specific style is harder to do using a filter ("whose") clause, because it has multiple conditions. Shane can probably do it, but I'm not having much luck. All the same, why bother? InDesign has a perfectly good find text method that will do what you want. Something like this:
    tell application "Adobe InDesign CS3"
    --Clear the find text preferences
    set find text preferences to nothing
    set applied paragraph style of find text preferences to paragraph style "Greeting" of document 1
    tell document 1
    set myFoundItems to find text
    end tell
    end tell
    Thanks,
    Ole

  • Can't Apply Styles

    I have a working Pages doc. There is a ton of info in a word doc I need to include. When I copy paste it into Pages, I then can not apply styles from the style drawer. What is that all about? Is there some way to be able to apply styles to info I paste? I dropped word because it displays ridiculous behavior like this. Is pages just as much of a useless time waster? Any help would be appreciated I'm extremely frustrated. Who has time for this kind of annoyance?!?!?!

    You have to select the text you want to use a style on.
    For more information on Styles download the Pages User Guide. It is downloadable from your Pages Help menu.

  • How to apply style sheets to table layout

    hi i want to apply styles to my table layout region, i gave style sheets which are in OAF myhtml\OA_HTML\cabo\styles but i dint find any changes in my table layout, can any give one give me an idea of how to do it....

    Check the OAF personalization guide for details on custom CSS. It won't be possible for me to summarize the whole thing here.
    --Shiv                                                                                                                                                                                                                                                                               

  • Apply styles to subpictures

    Can I somehow apply styles to subpictures in Encore? Basically, I want to customize the look of text-buttons in three states: normal, selected and activated using styles (eg to make them glow,change stroke color etc) rather then simply change the color of the text.
    I also tried to find an option to make a text as text or as button transperent (with a colour stroke style applied so you can actually read it) but couldn't :( Is it at all possible?
    Thanks for any advice

    In a word, no.
    You may be able to apply styles, but they will be ignored when you preview the menu or build the DVD.
    In the DVD-Video format, a subpicture is defined as a 2-bit RLE graphic overlay - one color value, and one opacity value. That means no drop shadows, glows, gradients, etc can be rendered by DVD players for subpicture information.
    A color table is used for the subpicture layer that allows you to combine up to three of these 2 bit graphics. Using this color table, you can get a little tricky and use up to three different 2-bit graphics to make the subpicture look a bit more impressive. There's a tutorial on this site that shows how to do that.
    But even using this trick, DVD-Video subpictures will never even get close to looking like Photoshop styles on a 32 bit monitor. :)
    I don't understand the second part of your post. Can you clarify what it is you are trying to do there? (it seems separate from the styles question)

  • Create/find tables and apply style

    Hello,
    I'm very new to scripting. I want to learn the basics like creating a table, creating anchored frames, textframes, etc.
    Now, I want to create/find tables in a document and I would like to apply styles. I saw a script to do this. When I paste the script in Extendscript CS4, than the program crash.
    The program crash in part 1. When I create another script with only part 2 (see //part 2) then there is no problem.
    What do i wrong? And can anyone tell me what part 1 of the script do?
    Thanks,
    // part 1
    // using your version; I'd prefer to return 0 if table not found
    function findTable(obj) {
             while (obj.constructor.name != "Table") {
            obj = obj.parent;
            if (obj.constructor.name == "Application") {
                throw "Can't find table"
        return obj
    // part 2
    var myTable = 0;
    if (app.documents.length > 0 && app.selection.length > 0)
        myTable = findTable(app.selection[0]);
    // check for at least enough rows for 1 top row, 1 body row, 1 bottom row
    if (myTable != 0 && myTable.rows.length >= 3) {
        // delete all rules; set insets to 0
        myTable.cells.everyItem().appliedCellStyle = "[None]";
        // format bottom row
        // (remember rows uses 0-based count)
        a = myTable.rows.length - 1;
        myTable.rows[a].cells.everyItem().appliedCellStyle = "4.cell_body_last";
        // format middle rows
        first = 1;
         last = myTable.rows.length - 2;
        for (a = first; a <= last; ++a)
            myTable.rows[a].cells.everyItem().appliedCellStyle = "3.cell_body";
        // format top row
        a = 0;
        myTable.rows[a].cells.everyItem().appliedCellStyle = "2.cell_header";

    Part 1 expects the text cursor to be anywhere inside a table -- either in the regular text, or with a cell, row, column, or the entire table selected.
    It walks "up" using its parent until it arrives at the table object itself.
    This will only work if the text cursor actually is anywhere inside a table. It does nothing when you are somewhere else, and it only works with the "current" table.

  • How to get certain applied styles using script?

    Hi All,
    I need to know how to get certain applied styles using ID Scripting. I don't have much experience in InDesign so need some help.
    Here is a screenshot with a sample text with the said styles applied and highlighted.
    I need to know what texts in my document have these styles applied like All Caps, Strikethrough, Underline, Subscript and Superscript etc.
    Please help.
    Thanks!

    Hi Poortip87
    The first thing you have to understand is how to refer to "where" you want to apply the style.
    If you want the script to apply the style to the selected text then you would use for example app.selection[0].strikeThru = true;
    If you for example want to underline the last word of the first paragraph of the first story you would use app.activeDocument.stories[0].paragraphs[0].words[-1].underline = true;
    If you just wanted the first letter of that word underlined then you would add .characters[0] after the words[-1]
    To for example apply All Caps to all the text in all the stories you would use
    app.activeDocument.stories.everyItem().texts[0].capitalization = Capitalization.ALL_CAPS;
    The easiest way to find how to set properties to a selections is to set them manually and make the selection and then run the script below.
    You should be able to find all the properties you want very easily after running the script.
    Or you can use Jongwares excellent reference guide. Indesign JavaScript Help
    HTH
    Trevor
    // script to show most of the selection properties by Trevor
    // Creative-Scripts.Com (Still not ready!) available (sometimes) for custom scripts $$$
    // scripts {at} Creative-Scripts [dot] Com
    $.level = 0; // set debug mode to allow try catch (not read only as stated in manual);
    if (!app.selection.length) exit();
    var c = 0, s = app.selection[0], p,
          a = [], n, er;
    for (n in s) {
        try {
            p = s[n];
            if (p && p.constructor.name === "Enumerator") p = getEnum(p ,n);
            a[c++] = n + ": " + p;
        } catch (er) {a[c++] = n + ": ???"}
    var f = new File (Folder.temp + +(new Date) + ".txt");
    f.open('r');
    f.encoding = "UTF-8";
    f.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";
    f.open('w');
    f.write("\uFEFF" + a.join("\r"));
    f.close();
    $.sleep(300);
    f.execute(true);
    function getEnum (q, n) {
        var enums = ["AcrobatCompatibility",
        "AddPageOptions",
        "AdornmentOverprint",
        "AlignDistributeBounds",
        "AlignOptions",
        "AlignmentStyleOptions",
        "AlternateGlyphForms",
        "AlternatingFillsTypes",
        "AnchorPoint",
        "AnchorPosition",
        "AnchoredRelativeTo",
        "AnimationEaseOptions",
        "AnimationPlayOperations",
        "AntiAliasType",
        "ArrangeBy",
        "ArrowHead",
        "AssetType",
        "AssignmentExportOptions",
        "AssignmentStatus",
        "AutoEnum",
        "AutoSizingReferenceEnum",
        "AutoSizingTypeEnum",
        "BalanceLinesStyle",
        "BaselineFrameGridRelativeOption",
        "BaselineGridRelativeOption",
        "BehaviorEvents",
        "BevelAndEmbossDirection",
        "BevelAndEmbossStyle",
        "BevelAndEmbossTechnique",
        "BindingOptions",
        "BitmapCompression",
        "BlendMode",
        "BlendingSpace",
        "BookContentStatus",
        "BookletTypeOptions",
        "BoundingBoxLimits",
        "BuildingBlockTypes",
        "BulletCharacterType",
        "BulletListExportOption",
        "Capitalization",
        "ChangeBackgroundColorChoices",
        "ChangeCaseOptions",
        "ChangeConditionsModes",
        "ChangeMarkings",
        "ChangeTextColorChoices",
        "ChangeTypes",
        "ChangebarLocations",
        "ChangecaseMode",
        "ChapterNumberSources",
        "CharacterAlignment",
        "CharacterCountLocation",
        "CharacterDirectionOptions",
        "ClippingPathType",
        "ColorModel",
        "ColorOutputModes",
        "ColorRenderingDictionary",
        "ColorSettingsPolicy",
        "ColorSpace",
        "ComposeUsing",
        "CompressionQuality",
        "ConditionIndicatorMethod",
        "ConditionIndicatorMode",
        "ConditionUnderlineIndicatorAppearance",
        "ContainerType",
        "ContentType",
        "ContourOptionsTypes",
        "ConvertPageBreaks",
        "ConvertShapeOptions",
        "ConvertTablesOptions",
        "CoordinateSpaces",
        "CopyrightStatus",
        "CornerOptions",
        "CreateProxy",
        "CrossReferenceType",
        "CursorTypes",
        "CustomLayoutTypeEnum",
        "DataFormat",
        "DefaultRenderingIntent",
        "DesignOptions",
        "DiacriticPositionOptions",
        "DigitsTypeOptions",
        "DimensionsConstraints",
        "DisplayOrderOptions",
        "DisplaySettingOptions",
        "DistributeOptions",
        "DocumentIntentOptions",
        "DocumentPrintUiOptions",
        "DynamicDocumentsJPEGQualityOptions",
        "DynamicDocumentsTextExportPolicy",
        "DynamicMediaHandlingOptions",
        "DynamicTriggerEvents",
        "EPSColorSpace",
        "EPSImageData",
        "EditingState",
        "EmptyFrameFittingOptions",
        "EndCap",
        "EndJoin",
        "EpubCover",
        "EpubVersion",
        "EventPhases",
        "ExportFormat",
        "ExportLayerOptions",
        "ExportOrder",
        "ExportPresetFormat",
        "ExportRangeOrAllPages",
        "FeatherCornerType",
        "FeatherMode",
        "FeatureSetOptions",
        "FindChangeTransliterateCharacterTypes",
        "FirstBaseline",
        "FitDimension",
        "FitMethodSettings",
        "FitOptions",
        "Fitting",
        "FlattenerLevel",
        "Flip",
        "FlipValues",
        "FloatingWindowPosition",
        "FloatingWindowSize",
        "FollowShapeModeOptions",
        "FontDownloading",
        "FontEmbedding",
        "FontStatus",
        "FontTypes",
        "FootnoteFirstBaseline",
        "FootnoteMarkerPositioning",
        "FootnoteNumberingStyle",
        "FootnotePrefixSuffix",
        "FootnoteRestarting",
        "GIFOptionsPalette",
        "GlobalClashResolutionStrategy",
        "GlobalClashResolutionStrategyForMasterPage",
        "GlowTechnique",
        "GoToZoomOptions",
        "GradientType",
        "GridAlignment",
        "GridViewSettings",
        "GuideTypeOptions",
        "HeaderFooterBreakTypes",
        "HeaderTypes",
        "HorizontalAlignment",
        "HorizontalOrVertical",
        "HyperlinkAppearanceHighlight",
        "HyperlinkAppearanceStyle",
        "HyperlinkAppearanceWidth",
        "HyperlinkDestinationPageSetting",
        "ICCProfiles",
        "IconSizes",
        "ImageAlignmentType",
        "ImageConversion",
        "ImageDataTypes",
        "ImageExportOption",
        "ImageFormat",
        "ImagePageBreakType",
        "ImageResolution",
        "ImageSizeOption",
        "ImportFormat",
        "ImportPlatform",
        "ImportedPageCropOptions",
        "InCopyUIColors",
        "IndexCapitalizationOptions",
        "IndexFormat",
        "InkTypes",
        "InnerGlowSource",
        "InteractiveElementsOptions",
        "InteractivePDFInteractiveElementsOptions",
        "JPEGOptionsFormat",
        "JPEGOptionsQuality",
        "JoinOptions",
        "JpegColorSpaceEnum",
        "Justification",
        "KashidasOptions",
        "KentenAlignment",
        "KentenCharacter",
        "KentenCharacterSet",
        "KinsokuHangTypes",
        "KinsokuSet",
        "KinsokuType",
        "LanguageAndRegion",
        "LayoutRuleOptions",
        "Leading",
        "LeadingModel",
        "LibraryPanelViews",
        "LineAlignment",
        "LineSpacingType",
        "LinkStatus",
        "ListAlignment",
        "ListType",
        "LiveDrawingOptions",
        "Locale",
        "LocationOptions",
        "LockStateValues",
        "MapType",
        "MarkLineWeight",
        "MarkTypes",
        "MatrixContent",
        "MeasurementUnits",
        "MojikumiTableDefaults",
        "MonoBitmapCompression",
        "MoviePlayOperations",
        "MoviePosterTypes",
        "NestedStyleDelimiters",
        "NoteBackgrounds",
        "NoteColorChoices",
        "NothingEnum",
        "NumberedListExportOption",
        "NumberedParagraphsOptions",
        "NumberingStyle",
        "OTFFigureStyle",
        "ObjectTypes",
        "OpenOptions",
        "OpenTypeFeature",
        "OutlineJoin",
        "OverrideType",
        "PDFColorSpace",
        "PDFCompressionType",
        "PDFCrop",
        "PDFJPEGQualityOptions",
        "PDFMarkWeight",
        "PDFProfileSelector",
        "PDFRasterCompressionOptions",
        "PDFXStandards",
        "PNGColorSpaceEnum",
        "PNGExportRangeEnum",
        "PNGQualityEnum",
        "PPDValues",
        "PageBindingOptions",
        "PageColorOptions",
        "PageLayoutOptions",
        "PageNumberPosition",
        "PageNumberStyle",
        "PageNumberingOptions",
        "PageOrientation",
        "PagePositions",
        "PageRange",
        "PageReferenceType",
        "PageSideOptions",
        "PageTransitionDirectionOptions",
        "PageTransitionDurationOptions",
        "PageTransitionOverrideOptions",
        "PageTransitionTypeOptions",
        "PageViewOptions",
        "PaginationOption",
        "PanelLayoutResize",
        "PanningTypes",
        "PaperSize",
        "PaperSizes",
        "ParagraphDirectionOptions",
        "ParagraphJustificationOptions",
        "PathType",
        "PathTypeAlignments",
        "PdfMagnificationOptions",
        "PerformanceMetricOptions",
        "PlacedVectorProfilePolicy",
        "PlayOperations",
        "PointType",
        "Position",
        "PositionalForms",
        "PostScriptLevels",
        "PreflightLayerOptions",
        "PreflightProfileOptions",
        "PreflightRuleFlag",
        "PreflightScopeOptions",
        "PreviewPagesOptions",
        "PreviewSizeOptions",
        "PreviewTypes",
        "PrintLayerOptions",
        "PrintPageOrientation",
        "Printer",
        "PrinterPresetTypes",
        "Profile",
        "ProofingType",
        "RangeSortOrder",
        "RasterCompressionOptions",
        "RasterResolutionOptions",
        "RecordSelection",
        "RecordsPerPage",
        "RenderingIntent",
        "RepaginateOption",
        "ResizeConstraints",
        "ResizeMethods",
        "ResolveStyleClash",
        "RestartPolicy",
        "RotationDirection",
        "RowTypes",
        "RubyAlignments",
        "RubyKentenPosition",
        "RubyOverhang",
        "RubyParentSpacing",
        "RubyTypes",
        "RuleDataType",
        "RuleWidth",
        "RulerOrigin",
        "SWFBackgroundOptions",
        "SWFCurveQualityValue",
        "Sampling",
        "SaveOptions",
        "ScaleModes",
        "Screeening",
        "ScreenModeOptions",
        "ScriptLanguage",
        "SearchModes",
        "SearchStrategies",
        "SelectAll",
        "SelectionOptions",
        "Sequences",
        "ShadowMode",
        "SignatureSizeOptions",
        "SingleWordJustification",
        "SmartMatchOptions",
        "SnapshotBlendingModes",
        "SortAssets",
        "SoundPosterTypes",
        "SourceFieldType",
        "SourceSpaces",
        "SourceType",
        "SpanColumnCountOptions",
        "SpanColumnTypeOptions",
        "SpecialCharacters",
        "SpreadFlattenerLevel",
        "StartParagraph",
        "StateTypes",
        "StaticAlignmentOptions",
        "StoryDirectionOptions",
        "StoryHorizontalOrVertical",
        "StoryTypes",
        "StrokeAlignment",
        "StrokeCornerAdjustment",
        "StrokeFillProxyOptions",
        "StrokeFillTargetOptions",
        "StrokeOrderTypes",
        "StyleConflict",
        "StyleSheetExportOption",
        "SyncConflictResolution",
        "TabStopAlignment",
        "TableDirectionOptions",
        "TableFormattingOptions",
        "TagRaster",
        "TagTextExportCharacterSet",
        "TagTextForm",
        "TagTransparency",
        "TagType",
        "TagVector",
        "TaggedPDFStructureOrderOptions",
        "TaskAlertType",
        "TaskState",
        "TextExportCharacterSet",
        "TextFrameContents",
        "TextImportCharacterSet",
        "TextPathEffects",
        "TextStrokeAlign",
        "TextTypeAlignments",
        "TextWrapModes",
        "TextWrapSideOptions",
        "ThumbsPerPage",
        "TilingTypes",
        "ToolTipOptions",
        "ToolsPanelOptions",
        "TrapEndTypes",
        "TrapImagePlacementTypes",
        "Trapping",
        "UIColors",
        "UITools",
        "UndoModes",
        "UpdateLinkOptions",
        "UserInteractionLevels",
        "VariableNumberingStyles",
        "VariableScopes",
        "VariableTypes",
        "VersionCueSyncStatus",
        "VersionState",
        "VerticalAlignment",
        "VerticalJustification",
        "VerticallyRelativeTo",
        "ViewDisplaySettings",
        "ViewZoomStyle",
        "WarichuAlignment",
        "WatermarkHorizontalPositionEnum",
        "WatermarkVerticalPositionEnum",
        "WhenScalingOptions",
        "XFLRasterizeFormatOptions",
        "XMLElementLocation",
        "XMLElementPosition",
        "XMLExportUntaggedTablesFormat",
        "XMLFileEncoding",
        "XMLImportStyles",
        "XMLTransformFile",
        "ZoomOptions"];
        var l = enums.length,
            s = q.toString(), e, er, a;
        while (l--) {
            try {
                e = $.global [enums[l]];
                if (e.hasOwnProperty (s) && q === e[s]) {
                    a = e.reflect.properties;
                    a.pop();
                    a = (a.length < 2) ? "" : "\r[Possible " + enums[l]+ " Enumerations for " + n + "]:\r" + enums[l] + "." + a.join ("\r" + enums[l] + ".");
                    return enums[l] + "." + q.toString () + a;
            catch (er) {};
        return "???." + q.toString ();

  • Applying styles to place assest from AppleScript. CS5.5

    We are running a script that based on a csv file, loads various elements from a library then imports XML.  An example of these elements might be designed to have 4 separate item records within it and each item record might contain a few text boxes and an image and each of these items have xml tags.  To better understand, think of  a supermarket circular where they might have 4 meat items in one section with a description, size, price and an image.  We've broken it into different sections and based on data coming from our database we can relate to a specific element in our indesign library and know how many items will need to be loaded in that section.  This all works fine so far and is pretty cool how it loads but we are looking to maybe pass a basic page theme which might be both object and paragraph styles so we'd like to apply these styles through our script because it is possible that different elements might get different styles in same load or even same elements might be re-used in same load and have different styles so really can't define elements with styles we'd like or associate specific xml tages with styles because might be different in each element.
    I can in Applescript apply paragraph and object styles to by either index like applying style x to paragraph 1 but would like to do it to element that we placed on page.  Here is an example of our script to maybe better understand.  Look for comments where we place our assets(elements) on page.  Looking to how we can apply style to say paragraph 1 or text frame 1 of placedAsset says can't get text frame 1 or paragraph 1 of group xxx.
    Tried variations of:
    tell application "Adobe InDesign CS5.5"
    set myDocument to active document
    set myPage to active page of active window
    set placedAsset to place asset asset "7" of library "GT.indl" on myDocument
    move placedAsset to {0.65, 0.6}
    tell myDocument
      set myStyle to paragraph style "Style1"
      set objStyle to object style "objStyle"
    --This works for just applying styles by index
      tell paragraph 1 of text frame 1
       apply paragraph style using myStyle
      end tell
      tell text frame 1
       apply object style using objStyle
      end tell
    --This gives error described above
      tell text frame 1 of placedAsset
       apply object style using objStyle
      end tell
    end tell
    end tell
    Script which runs now but is not set to apply styles yet:
    try
    set CSVstr to "Please locate your CSV file..."
    set CSV_File to (choose file with prompt CSVstr) as text
    set csvData to read file CSV_File
    set csvEntries to paragraphs of csvData
    tell application "Adobe InDesign CS5.5"
      set myDocument to active document
      tell XML view preferences
       set show attributes to false
       set show structure to true
       set show tagged frames to false
       set show tag markers to false
       set show text snippets to true
      end tell
      tell XML import preferences
       set allow transform to false
       set create link to XML to false
       set ignore unmatched incoming to true
       set ignore whitespace to true
       set import CALS tables to true
       set import style to merge import
       set import text into tables to false
       set import to selected to false
       set remove unmatched existing to false
       set repeat text elements to true
      end tell
      set myPage to active page of active window
      set AppleScript's text item delimiters to ","
      repeat with i from 1 to count csvEntries
       set csvEntry to csvEntries's item i
       set {fldElement, fldLocationX, fldLocationY} to csvEntry's text items
       --  display dialog fldElement
       set placedAsset to place asset asset fldElement of library "GTElements.indl" on myDocument
       move placedAsset to {fldLocationX, fldLocationY}
    --This is where we'd like to apply styles to placed asset contents. This placed asset will have a few text frames and at
    --least one image.  We would just pass extra fields in our csv file with names of styles to be applied
      end repeat
      set AppleScript's text item delimiters to {""}
      tell myDocument
       set XMLstr to "Please locate your XML file..."
       set XML_File to (choose file with prompt XMLstr)
       import XML from XML_File
      end tell
      tell application "Adobe InDesign CS5.5"
       set find text preferences to nothing
       set change text preferences to nothing
       set find what of find text preferences to "mykzlplx"
       set change to of change text preferences to ""
       tell active document
        change text
       end tell
       set find text preferences to nothing
       set change text preferences to nothing
       set find what of find text preferences to "Â"
       set change to of change text preferences to ""
       tell active document
        change text
       end tell
       set find text preferences to nothing
       set change text preferences to nothing
      end tell
    end tell
    end try

    It would be a lot easier to help you if you were more succint. You should practice narrowing down the problem to the smallest possible case that demonstrates it. This is a good skill for two reasons: (1) It makes it easier to find the problem yourself (2) It makes it easier for others to help you.
    I believe your problem is you are asking for the first textframe of the placed asset:
    set placedAsset to place asset asset "7" of library "GT.indl" on myDocument
    tell myDocument
    --This gives error described above
      tell text frame 1 of placedAsset
       apply object style using objStyle
      end tell
    end tell
    end tell
    At least in JavaScript, the place command returns an array of objects, without regard to type. I suspect that's true in AS as well.
    So you probably want something like "tell first item of placedAsset" rather than "text frame 1". And if you want to make sure it is a text frame, because there are other things in the placedAsset, you'll need to use a filter. ("first item of placedAsset whose constructor is textFrame" or something like that).
    Again, my applescript is really rusty, but I think that's the general idea.

  • Apply Style or Favorites options in Live Type?

    Hello, just trying to figure out live type, and I have a question.
    I am using it to create info graphics on a dvd presentation, and I am wondering:
    Do I have to manually format each different line of text, or is there a way that I can save a set of formatting parameters (font, size, drop shadow settings, color) and apply a style to given text, or do I have to format each line every time. I looked in the manual, and searched this forum and didn't find anything helpful.
    I can't believe there isn't a way to do it, but I can't find it. Maybe saving it as a LiveType (even though there is no motion or effects)?
    Let me know what you think.
    Thanks,
    Ken

    You've got a couple choices here.
    You can always copy a text track...paste it on a new track and then change your text.
    If you have a more involved and layered graphics you could also create a template.
    To save your project as a template:
    1 Place the project file (.ipr) in a folder in this location: /Library/Application Support/
    LiveType/Templates.
    2 Generate a short QuickTime movie of the project (with the same name but an
    appropriate movie extension, such as .mov or .mp4).
    Once you do this, the template will appear in the preview window of the
    Template Browser.

  • Keyboard shortcuts for applying styles in Pages 5.0

    In Pages '09, you could set a function key as a keyboard shortcut to apply either paragraph or character styles. But I don't see this in Pages 5.0. Have they taken it away or is there another way to do this?
    This feature was key for me—it saved me a lot of mouse clicks and drags and made formatting text very easy and consistent. I'll miss it if it's gone, and may even have to keep using the old version of Pages for this reason.

    Gone along with 90 other features.
    Pages '09 should still be in your Applications/iWork folder. Use that and review/rate Pages 5 in the App Store and delete or archive it to prevent it from opening .pages files accidentally.
    Peter

  • How to apply style to partial text within a tag in xml file

    I have created a webpage using Dreamweaver CS4 Spry Regions. Everything is functioning as expecting, however now I need to apply a style to part of the text. Every occurance of the company name needs to be in italics - the problem is that the company name appears within different parts of the text within a set of tags.
    http://www.certifiedangusbeef.com/private1/sales/facts/index.php
    ie - <description> this is my company name which must appear in italics</description>
    In this example, only "company name" needs to be italicized. We have created an XSL file that applies the italics properly when the XML file is viewed in the browser. But it does not have any effect on the final web page - as though spry is blocking the XSL or we've missed a step in linking all the files together.
    Here's the XSL code:
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="facts.xml" --><!DOCTYPE xsl:stylesheet  [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="text()[ancestor::description]" name="replace">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template match="text()[ancestor::item]" name="replace1">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
    </xsl:stylesheet>

    An element attribute is set with the method
    setAttribute(String name,
                             String value)or the
    setAttributeNode(Attr newAttr)method.

  • InDesign CS5.5 fonts not displaying correctly when applying styles

    Hi there,
    My problem is this - I've set up character and paragraph styles in a document. Yesterday everything in the document was working as expected. Today I open the file and some of the fonts are displaying incorrectly ie instead of a selection of type being bold (where a character style has been applyed) the whole paragraph is now bold and doesn't respond to having the character style removed.
    There are no error messages, the program loads, doesn't crash, did go slow but I resaved all the linked files and it moved along at it normal speed - it is quite a complicated document. Other files seem to behave, so I thought it might be a corrupt file. However when I tried to save to IDML  the process was interminable, so I cancelled it (tried this several times and with a simplified file - removed all the images).
    I've cleaned out the font caches.
    I  trashed the program preferences.
    Hope somebody out there has a idea.
    Thanks
    imac, OSX 6.8, 12 mgs ram, InDesign CS5.5 with the latest patch updated. Use Suitcasefusion for font management - have the latest version
    Message was edited by: ne18ell

    Most likely reasons for what you are seeing is the paragraph has the bold style assigned to the whole thing as a character style (maybe nested without a valid end trigger?), or the basic character attibutes of the paragraph style were changed to bold. Slightly less likely is that you managed to apply Bold to the whole paragraph as a local override (which owuld show up as a + sign next to the paragraph style name).

Maybe you are looking for

  • Connecting to an old Mac across mobil internet

    Tried to connect from Leopard per afp://url to an old iMac with MacOS 9.x on which a ftp-server is running, have now full access withot identification. Has this everyone? Regards, Karl

  • Qosmio F - New BIOS settings can't be saved

    When I enter BIOS and when I do some changes and want to save them I can not. It seems I have to restart. I have the latest BIOS update. Come on Toshiba. Who do I have to contact to report problems such as this or the fact that my function buttons st

  • What is the best way to control pdf display in web browser - the preferences settings don't seem to work?

    I'm able to display the pdf in the browser - but it comes in too large and the first page is a single and the second pages are a double page - and i don't want it to scroll. there must be soem script to control this?

  • Time Machine on a PC formatted external drive

    Hi. My girlfriend plugged in an external drive with some data (Photos, mp3, docs etc...) from a Windows OS PC to a new iMac. Time machine asked her to use it for backup. She answered yes thinking old data would never be cleaned. At the end of Time Ma

  • Need advice on troubleshooting

    I have a new form that runs and saves data without error. However, when the same form is called from another form using Open_Form I suddenly start getting the error after I save data: FRM-41039: Invalid alert id 0. No fuctionality seems to be lost an