How to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scripting

how to get all how to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a  indesign file and write all info with para info into txt file with scripting

I write the script this one works
          var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
  for(var i=par.length-1;i>=0;i--)
       var font=par[i].appliedParagraphStyle.name;
        var font1=par[i].appliedFont.name;
         var size=par[i].pointSize;
        WriteToFile (par[i].contents  +   "\r" +  "Style  : " + font  + "\r" +  "FONT1  : " + font1  + "\r" +  "Size  : " + size  + "\r", reportFilePath);
                        function WriteToFile(text, reportFilePath) { 
    file = new File(reportFilePath); 
    file.encoding = "UTF-8"; 
    if (file.exists) { 
        file.open("e"); 
        file.seek(0, 2); 
    else { 
        file.open("w"); 
      file.writeln(text);  
    file.close(); 
Thanks for all your support

Similar Messages

  • My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?

    My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    kevinpowell1 wrote:
    how can i get it out of recovery mode?
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    If the issue persists...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • 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 ();

  • [AS] How to change a paragraph style within any folder in Find Grep?

    I want to change both text and paragraph style
    I do that job very easily until I put paragraph styles in a folder
    How to express the paragraph style "passage" within the folder "1st" in AppleScript?
    In line 18 below, "1st:passage" may be wrong... so I've tried and search for an hour, but I can't get the answer..
    sorry for bad english
    my main()
    on main()
      mySnippet_test()
      myTeardown()
    end main
    on mySnippet_test()
              tell application "Adobe InDesign CS5.5"
                        set myDocument to document 1
                        set find grep preferences to nothing
                        set change grep preferences to nothing
                        set include footnotes of find change grep options to false
                        set include hidden layers of find change grep options to false
                        set include locked layers for find of find change grep options to false
                        set include locked stories for find of find change grep options to false
                        set include master pages of find change grep options to false
                        set find what of find grep preferences to "\\n"
                        set change to of change grep preferences to "\\r"
                        set applied paragraph style of change grep preferences to "1st:passage"
                        tell myDocument
      change grep
                        end tell
      --Clear the find/change preferences after the search.
                        set find grep preferences to nothing
                        set change grep preferences to nothing
              end tell
    end mySnippet_test
    on myTeardown()
    end myTeardown

    Replace the red line with… Replacing name strings to yours…
    set myStyle to paragraph style "Style A" of paragraph style group "Style Group 1" of myDocument
    set applied paragraph style of change grep preferences to myStyle

  • How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
    Customized Progress Indicator - Captivate blog
    If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
    And my approach, since you talk about only one question: create a custom question, because you'll have total control then.

  • [JS, CS3] a script to change language in all paragraph styles

    Hi,
    I made a script to change the language in all paragraph styles to "French", but when I run it I get the error: "Invalid request on root style". Could you please tell me what am I missing?
    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i++)
    myStyle = myStyles[i];
    myStyle.appliedLanguage = "French";

    Thanks a lot!
    The problem is solved
    Ola

  • Script to change language to all Paragraph Styles?

    Is there a script out there that will change the language of all styles in a document? I frequently need to take US English files with multiple folders of styles and convert them for Canada English and French. Find/replace language does well enough for one-off use but I would like to clean up file as I go for future use without going through each style one and a time.
    -Thanks!

    If you are using OSX this AppleScript will change all the style definitions and text for the active document to French. Just edit the first line for the desired language so Canadian English would be:  set lang to "English: Canadian"
    set lang to "French"
    tell application "Adobe InDesign CS6"
        set pstyles to all paragraph styles of active document
        repeat with i from 1 to number of items in pstyles
            try
                set applied language of item i of pstyles to lang
            end try
        end repeat
        set cstyles to all character styles of active document
        repeat with i from 1 to number of items in cstyles
            try
                set applied language of item i of cstyles to lang
            end try
        end repeat
        try
            set applied language of every paragraph of every story of active document to lang
        end try
    end tell

  • When i go on icould their is my email adress and their is a another email adress and i dont know who is using it how can i delete that from my phone or my account

    when i go on icould their is my email adress and their is a another email adress and i dont know who is using it how can i delete that from my phone or my account and also every time i open icloud i get that persons information like contacts mail  what can i do about it

    That is a bug on Mac.
    See https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    ''(please do not comment in bug reports to avoid bug spam for the devs)''

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How to get iccid by using imei?i had lost my iphone and i want to find it back.

    how to get iccid by using imei?i had lost my iphone and i want to find it back.

    Ocean20 wrote:
    Not sure about ICCID but you can get your IMEI by going to the computer you normally sync to and open iTunes there click on edit then preferences then on the devices tab and then hover mouse over your backup and the IMEI and other info on your phone will appear
    Interesting. Yet another of the many Easter eggs dispersed throughout the system.

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • HP Officejet 6500A How do I scan a document with multiple pages into one file?

    HP Officejet 6500A Plus e-All-in-One Printer - E710n
    Windows 7 (64 bit)
    How do I scan a document with multiple pages into one file?  My old printer (psc 2110) asked after each scan if I wanted to scan another page.  At the end I had one pdf file with multiple pages.
    This new one creates one file for each page and I cannot find a way to create one pdf file with multiple pages.
    This question was solved.
    View Solution.

    Hi mpw101,
    If you load the papers into the ADF - Automatic Document Feeder, and then select Document to PDF then they will all be scanning into one file. Let me know if this works for you?
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • How to download alv grid output(with field catalog) into excel file format

    Hi all,
    How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
    Please help.
    Regards,
    Satya.

    Hi,
    On list where alv is displayed, select export icon( green color -> ),select spread sheet.
    This will display records in Excel sheet.

  • When i am trying to extract Dimension into .txt file. I am getting error.

    Hi All,
    When i am trying to extract the Essbase Dim into .txt file, i am getting below error.
    Please find the details.
    V10.1.3.5.0 and MySql server as database.
    com.sunopsis.sql.c: com.sunopsis.jdbc.file.FileDriver
         at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.t(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:662)
    Please help me in this issue.
    Regards,
    Krish
    Edited by: 897734 on Dec 20, 2011 2:40 AM

    If you think a file doesn't exists when you think it should, you can use code like this to print out what files are there:
    import java.io.*;
    public class Periscope {
        public static void check(File file) {
            if (file.exists()) {
                System.out.println("file exists: " + getPath(file));
                System.out.println();
                System.out.println("DUMP:");
                System.out.println();
                dump(file, "");
            } else {
                System.out.println("file does not exist: " + getPath(file));
                goUp(file);
        static void goUp(File file) {
            File parent = file.getAbsoluteFile().getParentFile();
            if (parent == null) {
                System.out.println("file does not have a parent: " + getPath(file));
            } else {
                check(parent);
        static void dump(File file, String indent) {
            System.out.println(indent + getPath(file));
            File[] children = file.listFiles();
            if (children != null) {
                indent += "    ";
                for(File child : children) {
                    dump(child, indent);
        static String getPath(File file) {
            try {
                return file.getCanonicalPath();
            } catch (IOException e) {
                e.printStackTrace();
                return file.getName();
        public static void main(String[] args) {
            check(new File("foo.bar"));
    }

  • Can I write the UID of a textframe into indd file ,and restore the uid when I open the indd file again

    I create a UID list for textframe, and I add Some extra properties the textframe,  now I want store these properties into  INDD file , and expecte to restore these properties from INDD file again when
    I  open the it again . anyone could tell me how to do this ,thanks in advance.

    Why don't you save the properties on the textframes itself by adding a of a persistent interface on the textframes. This way you will be able modify/restore(based on the persisted values) textframes each time the document is opened. Refer to BasicPersistence sample plugin to get an idea on how persistence works in InDesign. Also regarding restoring the UID, i don't quite get the need for it. Every object(well most of them) in InDesign has a unique ID which is called UID, this is allocated automatically and remains the same between document open sessions. I can't see any circumstance where we have a need to apply a particular UID to a particular object.
    Hope this info helps
    Thanks,
    Manan

Maybe you are looking for

  • Can I use the same iCloud account on more than one PC?

    I'm new to iCloud. I use Apple devices but a PC both at home and work. I'd like to have the same iCloud account on both PCs, but not sure if I can do this. Can anybody clarify please? Thank you.

  • I FOUND THE FIX: iPhone Photo Copying Error - Required file cannot be found

    This was driving me crazy for weeks. The solution is quite easy. I noticed that I could import new photos and they would copy. But when I tried to do folders that were there for a while, I would get the error. So I assumed some database had to be cor

  • Removal and adding tabs in user interface

    Hi,can anybody provide me solution for customizing the user interface page menu tabs in SUN Identity Manager. My requirement is,i need to remove and add main menu and sub menus in the user interface page in SUN Identity Manager. Thanks in advance. Ed

  • DPM Agent Installer Fails with errorcode =0x80070643

    I've seen this all over the place. Sometimes it's with DPM 2007 but I'm using an evaluation version of DPM 2010. I'm trying to install the agent on a protected server running Windows 2008 Standard with Service Pack 2. This is our Exchange 2007 server

  • HOW TO DISPLAY THE TEXT

    HI ALL I HAVE GOT THE TEXT USING READ_TEXT BUT HOW DO I DISPLAY THE RESULT IN ALV REPORT