Tweaking FM_Outputs_Conditional_Text.jsx

I found what sees like a bug in C:\Program Files (x86)\Adobe\AdobeFrameMaker10\Samples\ScriptsAndUtilities\Conditional Text\FM_Outputs_Conditional_Text.jsx.
The script produces two PDFs, which I expected to be named <book_name>_Comment_Red.pdf and <book_name>_Blue_Green.pdf.
Instead, they're named <book_name>.book_Comment_Red.pdf and <book_name>.book_Blue_Green.pdf.
The relevant lines seem to be:
FileSource = OpenBook(InputFile);
SavePdf(FileSource,InputFile + OutPutFiles[output_no]);
Is there some way to tweak the second line so as to remove the .book extension from FIleSource? Or to define another variable minus the extension?

Assuming that InputFile is the path to the book, you can use this:
SavePdf(FileSource,InputFile.replace(/\.book$/i,"") + OutPutFiles[output_no]);
I haven't tested it, but it should work. It replaces the .book extension with an empty string.
Rick

Similar Messages

  • Image Processor Pro and Picture Processor load eps files without rasterizing them

    Hi. My name is Lucas. Im from Argentina, now living in Brazil. I have the problem that is in the title. Im new doing this stuff but reading a lot i discovered that both scripts open eps files and because they dont get reasterized, then saved files looks preety bad.
    I know that there are some parameters to open eps, ex:
    var epsOpenOptions = new EPSOpenOptions();
       epsOpenOptions.antiAlias = true;
       epsOpenOptions.mode = OpenDocumentMode.RGB;
       epsOpenOptions.resolution = 72;
       epsOpenOptions.constrainProportions = true;
    I have to say that looking for a solution a found a script and modified to suit partially my needs. I said partially because i need the script to look folders and save output files with same structure. Here is the script that manage one folder at a time:
    #target photoshop
    // Asks user for input folder
    var inputFolder = Folder.selectDialog("Select a folder to process");
    // Asks user for output folder
    var OutputFolder = Folder.selectDialog("Select a folder to save your Tiffs");
    if ( inputFolder != null && OutputFolder  != null ) {
       // Makes list of all files located in that folder
       var fileList = inputFolder.getFiles( "*.eps" );
       // Create a EPS option object [height & width are doc size]
       var epsOpenOptions = new EPSOpenOptions();
       epsOpenOptions.antiAlias = true;
       epsOpenOptions.mode = OpenDocumentMode.RGB;
       epsOpenOptions.resolution = 72;
       epsOpenOptions.constrainProportions = true;
       // Open each file in turn
       for (var i = 0; i < fileList.length; i++) {
          // open the file
          app.open( fileList[i], epsOpenOptions );
          var baseName = activeDocument.name.slice( 0,-4 );
          // put your code to 'save as' the file here
          var saveFile = new File ( OutputFolder + "/" + baseName + ".jpg" );
       SaveForWeb(saveFile,60); // set quality to suit
    function SaveForWeb(saveFile,jpegQuality) {
      var sfwOptions = new ExportOptionsSaveForWeb();
      sfwOptions.format = SaveDocumentType.JPEG;
      sfwOptions.includeProfile = false;
      sfwOptions.interlaced = 0;
      sfwOptions.optimized = true;
      sfwOptions.quality = jpegQuality;
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
    activeDocument.close( SaveOptions.DONOTSAVECHANGES ); 
    So, if you know some way modify image processor pro or picture processor i will be very pleased.
    Because i will only use the script to manage eps files and save them as jpg (save for web) i dont need an special button to activate that option. Keep it simple. Thanx!!

    You can tweak ImageProcessorPro.jsx by make the following edit.
    Search for code that looks like this:
    ImageProcessor.prototype.openDocument = function(file) {
      var self = this;
      var settings = self.settings;
      var mode = DialogModes.NO;
      var ext = file.strf("%e").toLowerCase();
      var isRaw = ImageProcessor.CAMERA_RAW_FILES.contains(ext);
      if (isRaw) {
    and insert this code right after it:
      if (ext == "eps") {
        var epsOpenOptions = new EPSOpenOptions();
        epsOpenOptions.antiAlias = true;
        epsOpenOptions.mode = OpenDocumentMode.RGB;
        epsOpenOptions.resolution = 72;
        epsOpenOptions.constrainProportions = true;
        try {
          var doc = app.open(file, epsOpenOptions);
        } catch (e) {
          Error.runtimeError(9002, ZStrings.UnableToOpenErr);
        return doc;
    I haven't tested this at all but it looks good from here.

  • Vertical axis direction and Javascript (jsx) app.documents.add()

    Hello
    I read a bit on the confusion that was caused when the coordinate quadrant was switched between CS4 and CS5.  I also found http://forums.adobe.com/message/3859266 and that script does work, also on CC
    What however is not influenced by the preferences tweaked through the script is how the jsx document creation works. That seems to insist on the pre CS5 behavior
    My question - is there any way I can make app.documents.add() create a document with artboard where the vertical axis directions is behaving as the default CC behavior (4th quadrant)
    Many thanks for any pointers or guidance!
    Peter

    Thanks for your patience.
    I have the impression that when first running
    app.preferences.setBooleanPreference ("isRulerOriginTopLeft",false);
    app.preferences.setBooleanPreference ("isRulerIn4thQuad",false); 
    both "File/New" and "app.documents.add();" will create documents with axis in first quadrant
    What is weird is that when using
    app.preferences.setBooleanPreference ("isRulerOriginTopLeft",true);
    app.preferences.setBooleanPreference ("isRulerIn4thQuad",true); 
    "File/New" creates documents with axis in the fourt quadrant but "app.documents.add();"  still creates documents in the first quadrant.
    Anyway, bottom line is I can get consistent behavior as long as I am happy working in the first quadrant, which at this point is just fine for me
    Tx again,
    Peter

  • CS3 IndexFromList.jsx  with a twist

    I'd like to thank Martin Fischer for rewriting the IndexFromList.jsx script for CS3: http://www.hilfdirselbst.ch/foren/Skript_zum_Index_generieren_P322824.html#322824
    It takes a list of index entries and indexes every occurence of the topics in the list. Usually the authors of the books I typeset have created such a topic list, so the script really speeds up the proces of finding the page references.
    The list drawn up by the authors needs tweaking, as they don't take into account the way Indesign's indexing deals with case, whole word and proper names.
    This is an example of what a portion of the concordance list could look like before and after tweaking:
    postmodernism
    postmodern
    postmodernism
    postmodernist
    postmodernists
    postmodernity
    In the final index these topics are grouped into the 'postmodernism' entry. But that leaves a lot of manual work changing the index topics of the similar terms. An added step to the script could perform this automatically, if you change the concordance list into a two column list. The right column indicates which terms should be grouped:
    postmodern | postmodernism
    postmodernism | postmodernism
    postmodernist | postmodernism
    postmodernists | postmodernism
    postmodernity | postmodernism
    So instead of adding (oneWord) the script would add the term in the second column:
    // Hinzufügen des Themas
    myDoc.indexes[0].topics.add(oneWord);
    Or is this too complicated a way to address the problem?

    Hi Gaphic,
    here's a new version of the script: http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=343938#343938
    // IndexFromList_withOneSubtopic_CS3.jsx  
    //DESCRIPTION: Erzeugt Indexeinträge anhand einer externen Konkordanzdatei, die über einen Dialog ausgewählt wird. 
    var myDoc = app.activeDocument;  
    var myList = File.openDialog ("Liste mit Indexbegriffen"); 
    if (!myList) exit(); 
    clearFindChangeSettings();
    app.findChangeTextOptions.wholeWord = true;
    app.findChangeTextOptions.caseSensitive = true;
    app.findChangeTextOptions.includeFootnotes = true;
    var myEntries = getWords(myList); 
    proceedWithList(myEntries); 
    alert("Erledigt!"); 
    // Konkordanzliste einlesen 
    function getWords (aFile) { 
    if (aFile.exists) { 
      aFile.open ('r', undefined, undefined); 
      var aText = aFile.read()+'\n'; 
      // löschen von Leerzeichen am Ende der Zeile + löschen von leeren Zeilen  
      aText = aText.replace(/ +\n/g, '\n').replace(/\n+/g, '\n');  
      // ersetzen von mehrfach aufeinander folgende Leerzeichen aller Art durch ein Leerzeichen 
      aText = aText.replace(/ {2,}/g, ' '); 
      var words = aText.split('\n');
      var myPairs = getPairs( words );
      aFile.close(); 
      return myPairs; 
    else { 
      exit(); 
    function getPairs( w )
    var thePairs = new Array;
    for (i = 0; i < w.length; i++ )
      thePairs.push( w[i].split(' | ') );
    return thePairs;
    // Begriffsliste abarbeiten 
    function proceedWithList (w) { 
    // bei Bedarf wird ein neuer Index erzeugt 
    if (myDoc.indexes.length == 0)  
      myDoc.indexes.add();  
    for (var i = 0; i < w.length; i++)  
      if (w[i] != "")  
       makeEntry(w[i]); 
    // Aktualisieurng des Index 
    myDoc.indexes[0].update(); 
    // Indexeintrag erzeugen 
    function makeEntry(oneEntry) {
    if ( oneEntry.length == 1 )
      app.findTextPreferences.findWhat = oneEntry[0];
    else
      app.findTextPreferences.findWhat = oneEntry[1];
    var myResult = myDoc.findText();  
    for (var i = myResult.length-1; i >=0; i--) {  
      // Fehler abfangen, z.B. Fußnoten ausnehmen 
      try { 
       // Hinzufügen des Themas 
       myDoc.indexes[0].topics.add(oneEntry[0]);  
       // Hinzufügen der Referenz 
       if ( oneEntry.length == 1 )
        myDoc.indexes[0].topics.item(myResult[i].contents).pageReferences.add(myResult[i], PageReferenceType.currentPage);  
       else
        //myDoc.indexes[0].topics.add( oneEntry[0]);
        myDoc.indexes[0].topics.item( oneEntry[0] ).topics.add( oneEntry[1]);
        myDoc.indexes[0].topics.item( oneEntry[0] ).topics.item( myResult[i].contents ).pageReferences.add(myResult[i], PageReferenceType.currentPage);  
      catch(e) {} 
    //Clear any existing find/change settings.
    function clearFindChangeSettings()
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    This version supports one topic and one topic with one subtopic.
    The list should look like this:
    topic 1
    topic 2 | subtopic 1
    topic 2 | subtopic 2
    topic 2 | subtopic 3
    You can manage multiple indexes (names, places, subjects) like this:
    names | Kafka
    names | Peirce
    names | Williams
    places | Berlin
    places | Munich
    subjects | health
    subjects | sunshine
    Maybe some day there will be a version which manages more than one subtopic.
    regards
    Martin Fischer

  • Photoshop Image Processor.jsx could not be found. CS5

    I like to use Bridge to export groups of photos and with past versions I've been able to select photos, go to Tools>Photoshop>Image Process and select one of my custom actions.  Now I get this error: Photoshop Image Processor.jsx could not be found.
    Any thoughts?
    Thanks

    By default the image processor script should be placed in the Application
    folder (on root level, not in the user
    account)/AdobePhotoshop/presets/scripts/ image Processor.jsx
    Also by default in Bridge preferences Start up Scripts Adobe Photoshop
    should have a checkmark in front of it.
    If you changed any of these there lies your fault, if it happened to fail
    out of the blue you first should try restart Bridge holding down option key
    and choose refresh preferences.
    First check if it works now and if it does again set preferences to your
    wishes. (obvious not deselecting the PS script... )
    Now I get this error: Photoshop Image Processor.jsx could not be found.

  • [svn:bz-trunk] 11030: Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null .

    Revision: 11030
    Author:   [email protected]
    Date:     2009-10-20 11:35:02 -0700 (Tue, 20 Oct 2009)
    Log Message:
    Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null. It appears that there is some logic in the LC remoting code that relies on a non-null class name to always exist. This change reverts to the old behavior of not allowing empty string as a value for the ASObject.namedType.
    This should fix bug 2448442 and its duplicates caused by the recent serialization changes.
    I don't think this is the perfect fix. Pending further investigation, a better fix would be either:
    a. If it's OK to assume that empty string should always mean null for the type of the ASObject, the code that enforces it should be in the setter/getter inside ASObject and not in the deserializer.
    b. ASObject doesn't guarantee that a named type exists or is valid. In that sense an empty string is as bad as some random characters that cannot be a valid class name in java, so depending on how disruptive it may be, the fix should be in any logic that uses ASObject.getType().
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/AbstractAmfInput.java

    Hi Pavan,
    "In your payload there is no namespace prefix for the elements under PayloadHeader element."
    Yes, you are right - but this message is standard AQ Adapter Header message - it's not defined by me. I just used message which was automatically added to my project when I have defined AQ Adapter.
    "In your process is the default namespace is same as namespace value of tns ??"
    Do you mean targetNamespace? If yes it's different as it points to process "targetNamespace="http://xmlns.oracle.com/PF_SOA_jws/PF_APPS/APPS_PROCESS" (names of application and process have changed as I try different ways to do that)
    ns1 is: xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/aq/PF_SOA/PF_APPS/PO_AQ"
    "another thing is tns and ns1 should have same values.."
    When I create a variable of header type, namespace ns1 is automatically created for it. I set it as property of receive activity. When process is instantiated on the serwer I get the error in which you can see that namespace is tns.
    Maybe I'm doing something wrong but I don't see how I could fix this in my process.
    You can see that the message I get on the server has nothing in common with the application/project/process names. Is it possible to define such variable?
    Regards
    Pawel
    PS:
    In Transformation xsl file, both variables (source and target) has tns namespace for Header and PayloadHeader, and no namespace for subfields.
    Edited by: pawel.fidelus on 2010-01-05 02:37

  • Set top and bottom inset spacing values in Text Frame Options via jsx script

    I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.
    For years, I have used a script that sets Preferences, such as:
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    I would like to add the code to this same script that would make Top = 0p2 and Bottom 0p2 but leave Left and Right as 0p0.
    Any help would be greatly appreciated.

    Here is the full .jsx file that we now use to set preferences.
    Ideally, this could be modified to include setting any text frame created to have 0p2 inset Top and Bottom, but 0p0 Left and Right:
    //ApplicationTextDefaults
    //An InDesign CS2 JavaScript
    //Sets the application text defaults, which will become the text defaults for all
    //new documents. Existing documents will remain unchanged.
    with(app.textDefaults){
        alignToBaseline = false;        // align to baseline grid
        try {
    //        appliedFont = app.fonts.item("Times New Roman");
            appliedFont = app.fonts.item("Helvetica");
        catch (e) {}
        try {
            fontStyle = "Medium";
        catch (e) {}
        autoleading = 100;
        balanceRaggedLines = false;
        baselineShift = 0;
        capitalization = Capitalization.normal;
        composer = "Adobe Paragraph Composer";
        desiredGlyphScaling = 100;
        desiredLetterSpacing = 0;
        desiredWordSpacing = 100;
        dropCapCharacters = 0;
        if (dropCapCharacters != 0) {
            dropCapLines = 3;
            //Assumes that the application has a default character style named "myDropCap"
            //dropCapStyle = app.characterStyles.item("myDropCap");
        fillColor = app.colors.item("Black");
        fillTint = 100;
        firstLineIndent = "0pt";
    //    firstLineIndent = "14pt";
        gridAlignFirstLineOnly = false;
        horizontalScale = 100;
        hyphenateAfterFirst = 3;
        hyphenateBeforeLast = 4;
        hyphenateCapitalizedWords = false;
        hyphenateLadderLimit = 1;
        hyphenateWordsLongerThan = 5;
        hyphenation = true;
        hyphenationZone = "3p";
        hyphenWeight = 9;
        justification = Justification.leftAlign;
        keepAllLinesTogether = false;
        keepLinesTogether = true;
        keepFirstLines = 2;
        keepLastLines = 2;
        keepWithNext = 0;
        kerningMethod = "Optical";
        kerningValue = 0;
        leading = 6.3;
    //    leading = 14;
        leftIndent = 0;
        ligatures = true;
        maximumGlyphScaling = 100;
        maximumLetterSpacing = 0;
        maximumWordSpacing = 160;
        minimumGlyphScaling = 100;
        minimumLetterSpacing = 0;
        minimumWordSpacing = 80;
        noBreak = false;
        otfContextualAlternate = true;
        otfDiscretionaryLigature = true;
        otfFigureStyle = OTFFigureStyle.proportionalOldstyle;
        otfFraction = true;
        otfHistorical = true;
        otfOrdinal = false;
        otfSlashedZero = true;
        otfSwash = false;
        otfTitling = false;
        overprintFill = false;
        overprintStroke = false;
        pointSize = 6.3;
    //    pointSize = 11;
        position = Position.normal;
        rightIndent = 0;
        ruleAbove = false;
        if(ruleAbove == true){
            ruleAboveColor = app.colors.item("Black");
            ruleAboveGapColor = app.swatches.item("None");
            ruleAboveGapOverprint = false;
            ruleAboveGapTint = 100;
            ruleAboveLeftIndent = 0;
            ruleAboveLineWeight = .25;
            ruleAboveOffset = 14;
            ruleAboveOverprint = false;
            ruleAboveRightIndent = 0;
            ruleAboveTint = 100;
            ruleAboveType = app.strokeStyles.item("Solid");
            ruleAboveWidth = RuleWidth.columnWidth;
        ruleBelow = false;
        if(ruleBelow == true){
            ruleBelowColor = app.colors.item("Black");
            ruleBelowGapColor = app.swatches.item("None");
            ruleBelowGapOverprint = false;
            ruleBelowGapTint = 100;
            ruleBelowLeftIndent = 0;
            ruleBelowLineWeight = .25;
            ruleBelowOffset = 0;
            ruleBelowOverprint = false;
            ruleBelowRightIndent = 0;
            ruleBelowTint = 100;
            ruleBelowType = app.strokeStyles.item("Solid");
            ruleBelowWidth = RuleWidth.columnWidth;
        singleWordJustification = SingleWordJustification.leftAlign;
        skew = 0;
        spaceAfter = 0;
        spaceBefore = 0;
        startParagraph = StartParagraph.anywhere;
        strikeThru = false;
        if(strikeThru == true){
            strikeThroughColor = app.colors.item("Black");
            strikeThroughGapColor = app.swatches.item("None");
            strikeThroughGapOverprint = false;
            strikeThroughGapTint = 100;
            strikeThroughOffset = 3;
            strikeThroughOverprint = false;
            strikeThroughTint = 100;
            strikeThroughType = app.strokeStyles.item("Solid");
            strikeThroughWeight = .25;
        strokeColor = app.swatches.item("None");
        strokeTint = 100;
        strokeWeight = 0;
        tracking = 0;
        underline = false;
        if(underline == true){
            underlineColor = app.colors.item("Black");
            underlineGapColor = app.swatches.item("None");
            underlineGapOverprint = false;
            underlineGapTint = 100;
            underlineOffset = 3;
            underlineOverprint = false;
            underlineTint = 100;
            underlineType = app.strokeStyles.item("Solid");
            underlineWeight = .25
        verticalScale = 100;
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.points;        // Ruler Units, vertical
    //General preference panel
    with(app.generalPreferences){
        pageNumbering = PageNumberingOptions.section;    // Page Numbering, View
        toolTips = ToolTipOptions.normal;                    // Tool Tips
    // Not supported in CS4
    //    toolsPalette = ToolsPaletteOptions.doubleColumn;    // Floating Tool Palette
        completeFontDownloadGlyphLimit = 2000;                // Always Subset Fonts...
        try {
            //Wrapped in try/catch in case it is run with CS4 and earlier to avoid the error
            preventSelectingLockedItems = false;                // Needed for CS5+
        catch (e) {}
    //Type preference panel
    with (app.textEditingPreferences){
        tripleClickSelectsLine = true;    // Triple Click to Select a Line
        smartCutAndPaste = true;        // Adjust Spacing Automatically when Cutting and Pasting Words
        dragAndDropTextInLayout = false;    // Enable in Layout View
        allowDragAndDropTextInStory = true;    // Enable in Story Editor
    with(app.textPreferences){
        typographersQuotes = true;            // Use Typographer's Quotes
        useOpticalSize = true;                // Automatically Use Correct Optical Size
        scalingAdjustsText = true;            // Adjust Text Attributes when Scaling
        useParagraphLeading = false;    // Apply Leading to Entire Paragraphs
        linkTextFilesWhenImporting = false;    // Create Links when Placing Text and Spreadsheet Files
    // Missing following (Font Preview Size, Past All Information/Text Only)
    //Advanced Type preference panel
    with(app.textPreferences){
        superscriptSize = 58.3;                // Superscript, size
        superscriptPosition = 33.3;            // Superscript, position
        subscriptSize = 58.3;                // Subscript, size
        subscriptPosition = 33.3;            // Subscript, position
        smallCap = 70;                        // Smallcap
    with(app.imePreferences){
        inlineInput = false;                // Use Inline Input for Non-Latin Text
    //Composition preference panel
    with(app.textPreferences){
        highlightKeeps = false;                    // Keep Violations
        highlightHjViolations = false;            // H&J Violations
        highlightCustomSpacing = false;            // Custom Tracking/Kerning
        highlightSubstitutedFonts = true;    // Substituted Fonts
        highlightSubstitutedGlyphs = false;    // Substituted Glyphs
        justifyTextWraps = false;                // Justify Text Next to an Object
        abutTextToTextWrap = true;                // Skip by Leading
        zOrderTextWrap = false;                    // Text Wrap Only Affects Text Beneath
    //Units & Increments preference panel
    with(app.viewPreferences){
        rulerOrigin = RulerOrigin.spreadOrigin;                    // Ruler Units, origin
    //    These are set at the end of the script after all the changes have been made
    //    horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
    //    verticalMeasurementUnits = MeasurementUnits.inches;        // Ruler Units, vertical
        pointsPerInch = 72;                    // Point/Pica Size, Points/Inch
        cursorKeyIncrement = 1;                // Keyboard Increment, Cursor Key
    with(app.textPreferences){
        baselineShiftKeyIncrement = 2;    // Keyboard Increment, Baseline Shift
        leadingKeyIncrement = 2;        // Keyboard Increment, Size/Leading
        kerningKeyIncrement = 20;            // Keyboard Increment, Kerning
    //Grids preference panel
    with(app.gridPreferences){
        baselineColor = UIColors.lightBlue;    // Baseline Grid, Color
        baselineStart = 48;                        // Baseline Grid, Start
        baselineDivision = 6;                    // Baseline Grid, Increment Every
        baselineViewThreshold = 50;                // Baseline Grid, View Threshold
        baselineGridRelativeOption = BaselineGridRelativeOption.topOfPageOfBaselineGridRelativeOption;    // Baseline Grid, Relative To
        gridColor = UIColors.lightGray;            // Document Grid, Color
        horizontalGridlineDivision = 12;    // Document Grid, Horizontal, Gridline Every
        horizontalGridSubdivision = 12;            // Document Grid, Horizontal, Subdivisions
        verticalGridlineDivision = 12;            // Document Gird, Vertical, Gridline Every
        verticalGridSubdivision = 12;            // Document Grid, Vertical, Subdivisions
        gridsInBack = true;                        // Grids in Back
        documentGridSnapto = false;                // snap to grid or not
        documentGridShown = false;                // show document grid
    //Guides & Pasteboard preference panel
    with(app.documentPreferences){
        marginGuideColor = UIColors.violet;                // Color, Margins
        columnGuideColor = UIColors.magenta;            // Color, Columns
    with(app.pasteboardPreferences){
        bleedGuideColor = UIColors.fiesta;                // Color, Bleed
        slugGuideColor = UIColors.gridBlue;                // Color, Slug
        previewBackgroundColor = UIColors.lightGray;    // Color, Preview Background
        minimumSpaceAboveAndBelow = 72;                    // Minimum Vertical Offset
    with(app.viewPreferences){
        guideSnaptoZone = 4;                            // Snap to Zone
    with(app.guidePreferences){
        guidesInBack = false;                            // Guides in Back
    //Dictionary preference panel
    with(app.dictionaryPreferences){
        composition = ComposeUsing.both;    // Hyphenatin Exceptions, Compose Using
        mergeUserDictionary = false;    // Merge User Dictionary into Document
        recomposeWhenChanged = true;    // Recompose All Stories When Modified
    // Missing (Lang, Hyph, Spelling, Double Quotes, Single Quotes)
    //Spelling preference panel
    with(app.spellPreferences){
        checkMisspelledWords = true;                    // Find, Misspelled Words
        checkRepeatedWords = true;                        // Find, Repeated Words
        checkCapitalizedWords = true;                    // Find, Uncapitalized Words
        checkCapitalizedSentences = true;                // Find, Uncapitalized Sentences
        dynamicSpellCheck = true;                        // Enable Dynamic Spelling
        misspelledWordColor = UIColors.red;                // Color, Misspelled Words
        repeatedWordColor = UIColors.green;                // Color, Repeated Words
        uncapitalizedWordColor = UIColors.green;    // Color, Uncapitalized Words
        uncapitalizedSentenceColor = UIColors.green;    // Color, Uncapitalized Sentences
    //Autocorrect preference panel
    with(app.autoCorrectPreferences){
        autoCorrect = true;                            // Enable Autocorrect
        autoCorrectCapitalizationErrors = false;    // Autocorrect Capitalization
    // Missing (Language, Misspelled word pairs)
    //Display Performance preference panel
    with(app.displayPerformancePreferences){
        defaultDisplaySettings = ViewDisplaySettings.typical;    // Preserve Object-Level
        persistLocalSettings = false;
    // Missing (antialiasiing, greek below
    //Story Editor Display preference panel
    with(app.galleyPreferences){
        textColor = InCopyUIColors.black;                // Text Color
        backgroundColor = InCopyUIColors.white;            // Background
        smoothText = true;                                // Enable Anti-Aliasing
        antiAliasType = AntiAliasType.grayAntialiasing;    // Type
        cursorType = CursorTypes.standardCursor;    // Cursor Type
        blinkCursor = true;                                // Blink
    // Missing (Font, Size, Line Spacing & Theme)
    //File Handling preference panel
    with(app.generalPreferences){
        includePreview = true;                        // Always Save Preview Images with Doc
        previewSize = PreviewSizeOptions.medium;    // Preview Size
    with(app.clipboardPreferences){
        preferPDFWhenPasting = false;                // Prefer PDF When Pasting
        copyPDFToClipboard = true;                    // Copy PDF to Clipboard
        preservePdfClipboardAtQuit = false;            // Preserve PDF Data at Quit
    // Missing (Enable Version Cue)
    //    Optical margin (hanging punctuation, outside margins)
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    //Wrap Up (do at end of script)
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.picas;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.inches;    // Ruler Units, vertical
    //    These two flags are turned off to avoid the error message about
    //    missing image links when InDesign opens an ad. This can especially
    //    be a problem when doing batch processes.
    with(app.linkingPreferences){
        checkLinksAtOpen = false;            // checkbox: true/false
        findMissingLinksAtOpen = false;        // checkbox: true/false

  • I don't want to fix, tweak, adjust, or God forbid, REINSTALL anything.

    I bought Adobe Premier Elements 7 with a new Dell XPS Studio with MS Vista, 12 GB RAM, 1 TB of disk space, and 1GB of video RAM. It came pre-installed. PE7 barely runs. Most times, I do not get to the "Share" phase because PE7 says there is an unexpected error and shuts down. I even get MS Visual Studio C++ Runtime errors. The dialog says MS is looking for a "solution", but it never responds that one was found. Other times, the Open Project fails, so that I cannot even open a saved project. Very frustrating. Normal (i.e. non-esoteric) program usage like adding scene transitions, or merely clicking on the scene scroll bar also causes the program to crash, but even that is not the worst. The worst comes after three hours of video crunching, the disk write fails causing all that time to be lost.
    Even with my powerful PC, I've taken all the normal precautions-- I run nothing else concurrently, only on a fresh startup or re-boot etc., but none of this seems to have any effect.
    I cannot imagine how or why a company like Adobe would release a program like this that is so not ready for prime time.
    UPDATE: After hours of re-doing yet another project, the program failed while processing the video during pre-burn processing. After walking away from the computer, I returned to find it re-booted and now although Premier Elements itself will start, that project will no longer load, causing a fatal error that causes the program to close. I've once again lost hours.
    Frankly, I'm not in the mood for yet another lame "fix."  The program (pre-installed by Dell) does not work on a brand new, top-of-the-line Dell. I don't want to fix, tweak, adjust, or God forbid, REINSTALL anything. How can I get my money back?

    Venting and a loud rant is good for the body, the mind, and the soul.
    We've all been there.
    After all the rants, the sad part is that nothing has changed to enhance your video editing experience.
    That being said, it might be something as simple as the source of your video assets, Project Presets, or exceeding the limitations of the application.
    If you decide to post some additional details, you may be pleasantly surprised at the help available on this Forum to get you to the primised land...

  • Part of Photoshop isn't functioning.  Under adjustments, when HDR toning is clicked on I get a code:  Error 48: File or folder does not exist.  Line:11  - $.evalFile(g_StackScriptFolderPath   "StackSupport.jsx");  How can it be fixed?

    The phone company was here working on something while I was gone.  They sat down at my computer (iMac) and since then HDR toning doesn't work.  Get the code:   Error 48: File or folder does not exist.    Line: 11     ->  $.evalFile(g_StacScriptFolderPatch + "StackSupport.jsx");   How can this be fixed?   

    Go to //Applications/Adobe Photoshop [Version]/Presets/ Scripts/Stack Scripts Only/ and see if StackSupport.jsx is there. If it is not, uninstall and reinstall Photoshop to have it added back in. If it is there, first try recreating the Photoshop Preferences (hold down Command+Option+Shift while launching Photoshop).

  • How to configure and tweak Safari settings on iPad Mini?

    Using my wife's iPad mini, it seems there are no setttings or ability to tweak or change the look and feel and especially the font size for the browser. I am not talking about the website text that shows up on any site visited but the text at the top of the browser, the names of bookmarked sites and so forth, the icons as well.
    Also, there is no HOME icon, no TABS icon to open a new tab,there is no History icon or option, same as View, Edit or File or even a Help link or icon/option. Safari settings on a laptop include a bookmark bar, menu bar and status bar you can include or disable, but on the iPad mini there are no such options. I just looked at the email program or app on the iPad and the time is showing at the very top center and it is so tiny even with reading glasses it still looks small.
    It's a shame, that I might have to download something to get this looking the way I need it.
    Thanks for any helpful suggestions!
    Jeff

    This is a rather unorthodox suggestion, but if the UI itself is physically too small and your iPad mini is a recent purchase, you might consider exchanging it for an iPad Air (or iPad 2).  The UI will be bigger, which may be enough to make the browsing experience more usable.
    I think you'll find that buttons will be smaller across most (if not nearly all) apps on iPad mini compared to iPad Air (or previous full-size iPads), so you may run into similar issues in other apps.
    Regarding a Home button in Safari, in addition to Meg's suggestions:
    1. You may enable the Favorites toolbar in Settings > Safari by changing the Show Favorites Bar setting to ON.  The list of sites is managed through a special folder in Bookmarks in Safari.
    2. There is also a list of Favorites when opening a new tab (the grid of icons that appears in a new tab).  This is also managed by a special folder in Bookmarks in Safari, but a separate folder from the toolbar folder.
    Good luck!

  • [CS4/JS] Pnglib.jsx -- A PNG creator function

    After seeing Marc Autret's marvellous pngswatch script, I spent several hours creating PNGs with Photoshop, copying its hex data into Javascript compatible format, finding the relevant color bytes to change ... and all the while I was thinking, "there was an uncompressed PNG format, wasn't there?"
    That's not because I have a bad memory.
    Sure, Marc created his PNG in some other program, saved it as a compressed file, and 'only' changed the palette part in his script -- which involves delving quite deeply into the actual PNG format --, and that's a feasible way of doing the stuff he intended to: change jsut the color. But if you want to actually create a dropdown or listbox image on the fly -- say, for a line widths dropdown --, you have to be able to create an entire image a-new. And PNGs are notoriously difficult to create, because the image pixels themselves are compressed using the very advanced zlib compression.
    But (as I was thinking) ... zlib also allows a "non-compressed" format!
    With some sleuthing I found a couple of hints to get me started, and found a totally useful utility as well: pngcheck, which can take a PNG to bits and tell you what's wrong with it. So, here you have it: a lightweight PNGLIB Javascript, that can create any PNG right out of nothing!
    Any image, apart from the limitations, that is.
    Its main limitation is that you can only create 8-bit palettized PNGs with it. I see no reason to add umpteen functions to cater for the occasional 1-, 2-, or 4-bit or true color PNG, or to add total support for all the different types of transparency that PNG supports. But, hey, its main use is for icons, and you'll have to do with the limits of "just" 256 colors -- or even less than that, if you reserve one or more colors for transparency. On the plus side again, it's total real pixel alpha-level transparency we're talking about (overall that can make your graphics still better than the average '90s DOS game).
    Using the function is easy; at the bottom of the script is an example, but it boils down to:
    Create a string for the palette's colors. Each color is a triplet, in RGB order.
    Create a string for the transparency indexes. Each single entry determines the transparency of the full palette color at that index; the first entry applies to color index #0, the second to color index #1, and so on. The value [00] indicates zero opacity (fully transparent), the value [FF] full opacity. The transparency index string doesn't need to define all of your colors' transparencies; unlisted values are "normal", non-transparent, and if you only need to make color index #0 transparent, you are done right there and then. By the way, the transparency string may be omitted entirely if you don't need it.
    Create a string for the image itself -- wide x high color indexes. Make sure you fill the entire image, 'cause my function will refuse to work if this string length isn't correct.
    Then call my function: myImg = makePng (wide, high, palette, pixels [, transparency]);
    The returned string can be used immediately as a source for a ScriptUI dialog image, or -- less useful, but might come in handy -- be written to a file.
    Tips: hmm. I dunno. Don't use this function to create super-huge PNGs, I guess. The non-compression format uses a couple of checksums on its own, and they are sure to fail on very large images. But, come on, be realistic: it's not a Photoshop replacement we're talking about, it's for icons!
    And Be Kind to Your Users: it's rather overkill to include all of the data for a static PNG image, such as a logo or something. Just create that once, and include the binary data in your script! This function is designed to create PNGs on the fly, from variable rather than static data.
    Before I forget: here it is. Enjoy!
    /****** PngLib.jsx ******/
    /* A Jongware Product -- based *very* heavily, however, upon Marc Autret's pngswatch
    /* script (http://forums.adobe.com/thread/780105?tstart=0), and with further
    /* help from the pages of David "Code Monk" Jones (http://drj11.wordpress.com/2007/11/20/a-use-for-uncompressed-pngs/)
    /* and Christian Fröschlin (http://www.chrfr.de/software/midp_png.html)
    /* Any errors, of course, must have crept in while I wasn't paying attention.
    /* [Jw] 26-Jan-2010
    var makePng = (function()
         // Table of CRCs of 8-bit messages
         var CRC_256 = [0, 0x77073096, 0xee0e612c, 0x990951ba, 0x76dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0xedb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x9b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x1db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x6b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0xf00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x86d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x3b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x4db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0xd6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0xa00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x26d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x5005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0xcb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0xbdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d];
         // PNG Cyclic Redundancy Code algorithm -- http://www.w3.org/TR/PNG/#D-CRCAppendix
         var crc32s = function(/*uint[]*/buf)
              var c = 0xffffffff, i;
              for( i=0 ; i < buf.length; i++ )
                   c = CRC_256[(c ^ buf.charCodeAt(i)) & 0xff] ^ (c >>> 8);
              return (c ^ 0xffffffff);
         var header = function ()
              return "\x89PNG\x0D\x0A\x1A\x0A";
         var i2s = function (/*int32*/i)
              return String.fromCharCode(i>>>24) + String.fromCharCode(i>>>16) + String.fromCharCode(i>>>8) + String.fromCharCode(i);
         var chunk = function (/*4 Char PNG code*/chunkType, /*data*/data)
              var buf = chunkType + data;
              var crc = crc32s(buf);
              buf = i2s (data.length) + buf + i2s (crc);
              return buf;
         var adler32 = function (/*string*/buf)
              var i, a = 1, b = 0;
              for (i=0; i<buf.length; i++)
                   a += buf.charCodeAt(i); s1 %= 65521;
                   b += a; b %= 65521;
              return (b<<16)+a;
         return function(/*int*/wide, /*int*/high, /*string*/ pal, /*string*/image, /*string*/transpIndex)
              var t, bits;
              if (pal.length % 3)
                   alert ("Bad Palette length -- not a multiple of 3");
                   return null;
              if (image.length != high*wide)
                   alert ("Size error: expected "+(high*wide)+" bytes, got "+image.length);
                   return null;
              bits = '';
              for (t=0; t<high; t++)
                   bits += "\x00"+image.substr(t*wide, wide);
              t = bits.length;
              bits += i2s (adler32(bits));
              var r = header() + chunk ('IHDR', i2s (wide)+i2s(high)+"\x08\x03\x00\x00\x00");
              r += chunk ('PLTE', pal);
              if (transpIndex != null)
                   r += chunk ('tRNS', transpIndex);
              r += chunk ('IDAT', "\x78\x9c\x01"+ String.fromCharCode (t & 0xff)+String.fromCharCode((t>>>8) & 0xff)+String.fromCharCode ((~t) & 0xff)+String.fromCharCode(~(t>>>8) & 0xff)+bits);
              r += chunk ('IEND', '');
              return r;
    /* Sample usage. Remove when #including the above in _your_ script! */
    var pngPal  = "\x00\x00\x00"+"\xff\x00\x00"+"\x00\xff\x00"+"\x00\x00\xff"+"\xff\xff\x00"+"\x40\x40\x40";
    var pngData =     "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+
                        "\x00\x01\x01\x02\x02\x03\x03\x04\x04\x00"+
                        "\x00\x01\x01\x02\x02\x03\x03\x04\x04\x00"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x01\x01\x02\x02\x03\x03\x04\x04\x05"+
                        "\x05\x05\x05\x05\x05\x05\x05\x05\x05\x05";
    img = makePng (10,11, pngPal, pngData, "\x40");
    var w = new Window("dialog", "Image test");
    w.add ('image', undefined, img);
    var f = new File(Folder.myDocuments+"/test-me2.png");
    if (f.open('w'))
         f.encoding = "BINARY";
         f.write (img);
         f.close();
    } else
         alert ("eh -- couldn't write test file...");
    w.show();

    Here is a more complicated (and useful ) example. (--Its actual usefulness is not as, erm, useful as I hoped, because it seems you don't have access to the built-in stroke styles! If anyone knows a work-around that, let me know ...)
    First, create a few custom Striped and/or Dashed stroke styles; then call this Javascript to see them created "live" in the drop down. Make sure you removed the sample code from the end of "pnglib.jsx", otherwise that dialog with interfere and mess up my nice program.
    #include "pnglib.jsx"
    function createStripeImg (styleIndex)
         var pngPal  = "\x00\x00\x00"+"\xff\xff\xff";
         var pngData = '';
         var x,y, ystart;
         var stripes = [];
         var i;
         for (y=0; y<app.activeDocument.stripedStrokeStyles[styleIndex].stripeArray.length; y++)
              stripes.push (Math.round (11*app.activeDocument.stripedStrokeStyles[styleIndex].stripeArray[y]/100));
         i = 0;
         for (y=0; y<11; y++)
              if (y >= stripes[i])
                   if (y <= stripes[i+1])
                        for (x=0; x<48; x++)
                             pngData += "\x00";
                        continue;
                   i += 2;
              for (x=0; x<48; x++)
                   pngData += "\x01";
         return makePng (48,11, pngPal, pngData, "\xff\x00");
    function createDashImg (styleIndex)
         var pngPal  = "\x00\x00\x00"+"\xff\xff\xff";
         var pngData = '';
         var x,y, xstart;
         var dashes = [];
         var i, len;
         len = 0;
         for (y=0; y<app.activeDocument.dashedStrokeStyles[styleIndex].dashArray.length; y++)
              len += app.activeDocument.dashedStrokeStyles[styleIndex].dashArray[y];
         xstart = 0;
         for (y=0; y<app.activeDocument.dashedStrokeStyles[styleIndex].dashArray.length; y++)
              dashes.push (xstart);
              xstart += Math.round (48*app.activeDocument.dashedStrokeStyles[styleIndex].dashArray[y]/len);
         dashes.push (47);
         i = 0;
         for (y=0; y<11; y++)
              if (y < 3 || y > 8)
                   for (x=0; x<48; x++)
                        pngData += "\x01";
              } else
                   xstart = 0;
                   for (x=0; x<48; x++)
                        if (x >= dashes[xstart])
                             if (x >= dashes[xstart+1])
                                  xstart += 2;
                             pngData += "\x00";
                        } else
                             pngData += "\x01";
         return makePng (48,11, pngPal, pngData, "\xff\x00");
    if (app.activeDocument.stripedStrokeStyles.length+app.activeDocument.dashedStrokeStyles.length < 1)
         alert ("This example needs a few custom stripe or dash stroke styles to play with");
         exit (0);
    var w = new Window("dialog", "Select a stripe type");
    var ddl = w.add("dropdownlist");
    for( i=0; i < app.activeDocument.stripedStrokeStyles.length; i++)
         (ddl.add('item', " "+app.activeDocument.stripedStrokeStyles[i].name)).image = createStripeImg (i);
    for( i=0; i < app.activeDocument.dashedStrokeStyles.length; i++)
         (ddl.add('item', " "+app.activeDocument.dashedStrokeStyles[i].name)).image = createDashImg (i);
    ddl.selection = 0;
    g = w.add ("group");
    g.orientation = 'row';
    g.add ("button", undefined, "OK");
    g.add ("button", undefined, "Cancel");
    w.show();

  • For itunes 11: movie that are not purchased via itunes are loaded into and catagorized as "home videos". I want all of my movies in one spot under Movies as they always were. How can i tweak this?

    for itunes 11: movie that are not purchased via itunes are now loaded into and catagorized as "home videos". I want all of my movies in one spot under Movies as they always were. How can i tweak/resolve this?

    Cdaver wrote:
    I have this issue too and want the same result, another feed suggests selecting the movie, going to get info, and changing this under options, but I suppose you have to do that movie by movie.
    You can select all the movies you want and change them at once.

  • Hp 550 upgrade of memory and cpu with possible unconventi​onal tweaks. not ideal, but no other choice

    HI guys, I hope you can help or at least give a point in the right direction.I'm a freelance photographer using much of the Adobe CS6 creative suite. After a disaster of a week I came home to find that the mother board on my editing workstation somehow is fried. I have no idea what happened though i wouldn't put it past my roommates carelessness.
    I'm desperate. I need to finish my current job before I am able to afford to buy a replacement. So I am forced to rely on stopgap measures, out of desperation to finish my project, which are less than ideal, but so far are faring better than I'd hoped.
    Im a photographer, Capture One, Adobe Photoshop Lightroom, Adobe Photoshop and Premiere Pro are the go to workhorse applications i need to work. without them i have no income. in order to have this machine run these apps,
    the machine i have left is an old hp 550 which was gathering dust in the closet. It was built for 32 bit Win XP and in no way is intended to run the power hog adobe products I use, especially Lightroom.
    Unfortunately Lightroom PS, and Premiere are 64 bit programs and LR and Premiere are hyper threaded. so I did research, and with the help of the windows 7 upgrade adviser utility's list of instructions I was able to get windows 7 Pro 64 bit to install and run.
    I know this isnt the ideal machine or situation but for a few weeks, i need to make it work.
    I really just have 2 simple questions. I had first gone to HP tech support. but they were not helpful. since the Laptop's warranty is long gone, they wouldnt even be polite and basically told me to shove off. Then on another forum, I argued back and forth with a know it all who consistently insisted that there was no way no how this pc could run 64 bit win 7, to which i thought what am i seeing things? its been running fine for 3 months. so i decided to come to you. your forums have been helpful on many occassions.
    basically I need this machine to be able to run these programs for the next month or so, until i can purchase a new machine.
    essentially, what I would like to know is will the motherboard support an upgrade of the processor? and if it will, what would you suggest as a replacement, considering my needs? The Core 2 duo is the barest minimum of what i can limp along with as photo/video rendering times are excessively slow.
    next I was talking to the crucial tech support staff about memory upgrades. and possibly tweaking the bios to force it to run 8 gigs of ram. they said they cold find no version of bios that would make that possible, but that by already forcing it to run 64 bit, that already allowed the pc to utilize the full 4 gigs of ram, which had been impossible in the 32 bit format. He then suggested that i buy 2 4 gig modules such as 4GB DDR2 PC2-5300 Unbuffered NON-ECC 1.8V 512Meg x 64 which can be seen at http://www.crucial.com/usa/en/memory/ct51264ac667 and try installing the full 8 gigs and see what would happened, saying he had a feeling i could get lucky. his logic being that the 64 bit system already opened up the ram limitations and who knows, you cant make an omelette without cracking some egg shells! he seemed very optimistic. So what do you think? does this seem likely to you because i would love it to work. or do you think the guy was a quack? and this whole endeaver is a waste of time and money?
    also any other suggestions about how to weather this month long storm that dont involve suggestions of buying new machines would be appreciated!
    so that you have exact details below are my system specs.
    Hewlett-Packard HP 550 F.05
    System Serial Number: CNU90716GN
    Asset Tag: CNU90716GN
    Chassis Serial Number: CNU90716GN
    Enclosure Type: Notebook
    Windows 7 Professional (x64) Service Pack 1 (build 7601)
    Install Language: English (United States)
    System Locale: English (United States)
    Installed: 8/4/2014 6:21:11 PM
    Boot Mode: BIOS (Secure Boot not supported)
    Processor a Main Circuit Board b
    1.80 gigahertz Intel Core2 Duo
    64 kilobyte primary memory cache
    2048 kilobyte secondary memory cache
    64-bit ready
    Multi-core (2 total)
    Not hyper-threaded Board: Hewlett-Packard 3618 KBC Version xx.xx
    Bus Clock: 200 megahertz
    BIOS: Hewlett-Packard 68MVU Ver. F.05 01/19/2009
    Drives Memory Modules c,d
    2320.47 Gigabytes Usable Hard Drive Capacity
    959.16 Gigabytes Hard Drive Free Space
    HL-DT-ST DVDRAM GSA-T50L ATA Device [Optical drive]
    Hitachi HTS543216L9A300 [Hard drive] (160.04 GB) -- drive 0, s/n 090108FB0200VCCPYM3B, rev FB2OC40F, SMART Status: Healthy
    ST1000LM 024 HN-M101MBB USB Device [Hard drive] (1000.20 GB) -- drive 3
    ST310005 28AS USB Device [Hard drive] -- drive 1
    WD 1600JS External USB Device [Hard drive] (160.04 GB) -- drive 2, s/n WD-WCANM2342148 4088 Megabytes Usable Installed Memory
    Slot 'DIMM #1' has 2048 MB (serial number 0000202A)
    Slot 'DIMM #2' has 2048 MB (serial number 00004042)
    thanks friends! i look forward to reading your advice!
    jodie
    This question was solved.
    View Solution.

    Here is the Manual:
    Service Manual
    Unfortunately the maximum configuration is a T5670 processor 1.8 ghz and 4 gigs of DDR2-667 memory which you already have. The CPU includes the 64 bit instruction set so it is not surprising it can run 64 bit Windows 7. My best advice is to save your money for when you can get a real working machine. The only other upgrade likely to help at all is a solid state drive, which you could use in the laptop and then also use in the new computer you are going to buy. 
    If this is "the Answer" please click "Accept as Solution" to help others find it.

  • A64 Tweaker and Improving Performance

    I noticed a little utility called "A64 Tweaker" being mentioned in an increasing number of posts, so I decided to track down a copy and try it out...basically, it's a memory tweaking tool, and it actually is possible to get a decent (though not earth-shattering by any means) performance boost with it.  It also lacks any real documentation as far as I can find, so I decided to make a guide type thing to help out users who would otherwise just not bother with it.
    Anyways, first things first, you can get a copy of A64 Tweaker here:  http://www.akiba-pc.com/download.php?view.40
    Now that that's out of the way, I'll walk through all of the important settings, minus Tcl, Tras, Trcd, and Trp, as these are the typical RAM settings that everyone is always referring to when they go "CL2.5-3-3-7", so information on them is widely available, and everyone knows that for these settings, lower always = better.  Note that for each setting, I will list the measured cange in my SiSoft Sandra memory bandwidth score over the default setting.  If a setting produces a change of < 10 MB/sec, its effects will be listed as "negligible" (though note that it still adds up, and a setting that has a negligible impact on throughput may still have an important impact on memory latency, which is just as important).  As for the rest of the settings (I'll do the important things on the left hand side first, then the things on the right hand side...the things at the bottom are HTT settings that I'm not going to muck with):
    Tref - I found this setting to have the largest impact on performance out of all the available settings.  In a nutshell, this setting controls how your RAM refreshes are timed...basically, RAM can be thought of as a vast series of leaky buckets (except in the case of RAM, the buckets hold electrons and not water), where a bucket filled beyond a certain point registers as a '1' while a bucket with less than that registers as a '0', so in order for a '1' bucket to stay a '1', it must be periodically refilled (i.e. "refreshed").  The way I understand this setting, the frequency (100 MHz, 133 MHz, etc.) controls how often the refreshes happen, while the time parameter (3.9 microsecs, 1.95 microsecs, etc.) controls how long the refresh cycle lasts (i.e. how long new electrons are pumped into the buckets).  This is important because while the RAM is being refreshed, other requests must wait.  Therefore, intuitively it would seem that what we want are short, infrequent refreshes (the 100 MHz, 1.95 microsec option).  Experimentation almost confirms this, as my sweet spot was 133 MHz, 1.95 microsecs...I don't know why I had better performance with this setting, but I did.  Benchmark change from default setting of 166 MHz, 3.9 microsecs: + 50 MB/sec
    Trfc - This setting offered the next largest improvement...I'm not sure exactly what this setting controls, but it is doubtless similar to the above setting.  Again, lower would seem to be better, but although I was stable down to '12' for the setting, the sweet spot here for my RAM was '18'.  Selecting '10' caused a spontaneous reboot.  Benchmark change from the default setting of 24:  +50 MB/sec
    Trtw - This setting specifies how long the system must wait after it reads a value before it tries to overwrite the value.  This is necessary due to various technical aspects related to the fact that we run superscalar, multiple-issues CPU's that I don't feel like getting into, but basically, smaller numbers are better here.  I was stable at '2', selecting '1' resulted in a spontaneou reboot.  Benchmark change from default setting of 4:  +10 MB/sec
    Twr - This specifies how much delay is applied after a write occurs before the new information can be accessed.  Again, lower is better.  I could run as low as 2, but didn't see a huge change in benchmark scores as a result.  It is also not too likely that this setting affects memory latency in an appreciable way.  Benchmark change from default setting of 3:  negligible
    Trrd - This controls the delay between a row address strobe (RAS) and a seccond row address strobe.  Basically, think of memory as a two-dimensional grid...to access a location in a grid, you need both a row and column number.  The way memory accesses work is that the system first asserts the column that is wants (the column address strobe, or CAS), and then asserts the row that it wants (row address strobe).  Because of a number of factors (prefetching, block addressing, the way data gets laid out in memory), the system will often access multiple rows from the same column at once to improve performance (so you get one CAS, followed by several RAS strobes).  I was able to run stably with a setting of 1 for this value, although I didn't get an appreciable increase in throughput.  It is likely however that this setting has a significant impact on latency.  Benchmark change from default setting of 2:  negligible
    Trc - I'm not completely sure what this setting controls, although I found it had very little impact on my benchmark score regardless of what values I specified.  I would assume that lower is better, and I was stable down to 8 (lower than this caused a spontaneous reboot), and I was also stable at the max possible setting.  It is possible that this setting has an effect on memory latency even though it doesn't seem to impact throughput.  Benchmark change from default setting of 12:  negligible
    Dynamic Idle Cycle Counter - I'm not sure what this is, and although it sounds like a good thing, I actually post a better score when running with it disabled.  No impact on stability either way.  Benchmark change from default setting of enabled:  +10 MB/sec
    Idle Cycle Limit - Again, not sure exactly what this is, but testing showed that both extremely high and extremely low settings degrade performance by about 20 MB/sec.  Values in the middle offer the best performance.  I settled on 32 clks as my optimal setting, although the difference was fairly minimal over the default setting.  This setting had no impact on stability.  Benchmark change from default setting of 16 clks:  negligible
    Read Preamble - As I understand it, this is basically how much of a "grace period" is given to the RAM when a read is asserted before the results are expected.  As such, lower values should offer better performance.  I was stable down to 3.5 ns, lower than that and I would get freezes/crashes.  This did not change my benchmark scores much, though in theory it should have a significant impact on latency.  Benchmark change from default setting of 6.0 ns:  negligible
    Read Write Queue Bypass - Not sure what it does, although there are slight performance increases as the value gets higher.  I was stable at 16x, though the change over the 8x default was small.  It is possible, though I think unlikely, that this improves latency as well.  Benchmark change from default setting of 8x:  negligible
    Bypass Max - Again not sure what this does, but as with the above setting, higher values perform slightly better.  Again I feel that it is possible, though not likely, that this improves latency as well.  I was stable at the max of 7x.  Benchmark change from the default setting of 4x:  negligible
    Asynch latency - A complete mystery.  Trying to run *any* setting other than default results in a spontaneous reboot for me.  No idea how it affects anything, though presumably lower would be better, if you can select lower values without crashing.
    ...and there you have it.  With the tweaks mentioned above, I was able to gain +160 MB/sec on my Sandra score, +50 on my PCMark score, and +400 on my 3dMark 2001 SE score.  Like I said, not earth-shattering, but a solid performance boost, and it's free to boot.  Settings what I felt had no use in tweaking the RAM for added performance, or which are self-explanatory, have been left out.  The above tests were performed on Corsair XMS PC4000 RAM @ 264 MHz, CL2.5-3-4-6 1T.     

    Quote
    Hm...I wonder which one is telling the truth, the BIOS or A64 tweaker.
    I've wondered this myself.  From my understanding it the next logic step from the WCREDIT programs.  I understand how clock gen can misreport frequency because it's probably not measuring frequency itself but rather a mathmatical representation of a few numbers it's gathered and one clk frequency(HTT maybe?), and the non supported dividers messes up the math...but I think the tweaker just extracts hex values strait from the registers and displays in "English", I mean it could be wrong, but seeing how I watch the BIOS on The SLI Plat change the memory timings in the POST screen to values other then SPD when it Auto with agressive timings in disabled, I actually want to side with the A64 tweaker in this case.
    Hey anyone know what Tref in A64 relates to in the BIOS.  i.e 200 1.95us = what in the BIOS.  1x4028, 1x4000, I'm just making up numbers here but it's different then 200 1.95, last time I searched I didn't find anything.  Well I found ALOT but not waht I wanted..

  • When I try to run a FindChangeByList.jsx in InDesignCS4, it will not let me select a txt file

    Hi all,
    I have a 100 page document that uses two javascript FindChange queries to cleanup an imported XML file. I've been using the same cleanup files for years and they have worked just fine. (I still only open it in CS4 because I've had some issues when trying to use this XML/Find-Change combo in CS5 and 6.) The only difference is my computer has been upgraded, the apps reinstalled, and I am now running 10.9.5
    I can import the XML just fine into my template, but when I double click on FindChangeByList.jsx, select Document, hit OK, nothing happens. I do not get a second dialog box asking me to choose my txt cleanup file.
    I only run this job once a year, so it's possible I am doing something wrong. I've place copies of my txt files in as many scripts folders as I can find on my computer, but they are greyed out in the FIndChange Support folder within InDesign.
    Please help, this is the only way to fix this XML!

    Hi,
    2 things:
    1. Assuming your script is original - it is not asking for a TXT file till it is found in expected location. You can choose between 2 solutions:
         to remove FindChangeList.txt from FindChangeSupport folder ==> script will ask for another file
         to override this file by your query ==> script will not ask but execute your query
    2. You can see greyed TXT files in Script Panel since this panel shows executable files (script's formats)
    Jarek

Maybe you are looking for

  • Why are Facebook Events not showing in iCal?

    Hi, I subscribed to my Facebook Events calendar in iCal an it was working fine. All of a sudden the events stopped showing in the calendar. The same happened on my iPhone. I check and the link is still the same. Anyone else having this problem/ found

  • Load 0SD_C03

    Dear Experts,                        Good Morning !                        I want to load data from Header and ITem for the Billing data source in to the sales cube 0SD_C03.data flow is ready .here I have two infopackage for each data source one for

  • Need some advice to install 2 nodes in cluster environment RAC

    Hi, I'm a new on oracle world. I want clustered two nodes oracle server 11.2.0.3 under windows 2008 R2 x64. I begin from scratch. Someone can advice me a good "how to" or an official document that explain how to do it? Thanks in advance for your help

  • What is done by Flash when you press "Show all" option???

    Hello, I need technical information. I'd like to know which kind of resizing is done by Flash when you press the "Show all" option. What differences between "Show all" and 100% are there??? I'm programming an application and the Flash Player Proyecto

  • MOVED: The PC shuts down by itself

    This topic has been moved to Vista problems. https://forum-en.msi.com/index.php?topic=112008.0