Update the Configurator panels via the Script?

Can I update via script/jsx panels? I don't see no callback function to do so. If there is an option please point me in the right direction.

Thank you

Gregor

The content of the Panel cannot be updated programtically except for the content of the HTML widget. You can program in HTML with HTML/JavaScript widget to update the content and also can invoke to run Photoshop or InDesign ExtendScript. See "HTML sample Panel" that you can download on the home page when you open the Configurator 3.1.1.

Another option is to use the Extension Builder to program in ActionScript.

Tags: Adobe

Similar Questions

  • Sequence of update the script of a function

    Hi all

    I discovered the sequences of lot very effective to deal with many files.

    This time, I want to update a single function of my script (which contains many other features).

    So far, I have not found how to do this with a sequence.

    I'd appreciate any help.

    Thanks in advance

    Michel

    Lol it has:

    this.addScript ("ScriptName", "ScriptCode");

  • Convert [VB Script] link updated the script to CS to CS4

    Hello

    I have problems with my old VB script conversion to a CS4 version.

    The part that updates the links in my document is no more compatible with CS4.

    I know that CS4 manages files related differently than previous versions, but I find a way to make it compatible CS4.

    My script does the following:

    -Open InDesign

    -Open the file

    -update all links (these are +/-75 tagged text files)

    -Save the file as EPS file

    -close InDesign file without saving changes

    -close the application InDesign

    The script:

    REM InDesign open and file

    Set myInDesign = CreateObject ("InDesign.Application.CS4")

    The value of myDocument = myInDesign.open("C:\files\InDesignDocument.indd",False)

    REM update all links

    For each link in myDocument.Links

    link. Update

    Next

    Error resume next

    REM, save the file as EPS

    myInDesign.EPSExportPreferences.EPSColor = 1129142603

    myDocument.Export "EPS","C:\export\InDesignDocument.eps".

    REM, close the document without saving changes and quit InDesign

    myDocument.Close 1852776480

    myInDesign.Quit 1852776480

    Y at - there someone who can help me with this?

    Thanks in advance,

    Bastiaan

    in CS4 - you cannot update link - if she does not need to be updated, bug or feature

    Try this:

    error resume next

    for a = myDocument.Links.Count to 1 step - 1

    call the myDocument.Links.Item (a). Update

    Next

    on error goto 0

    and - as in my example - don't use for each because there is bug - no more 255(256?) elements will be processed

    Robin

    www.adobescripts.co.UK

  • How do I update the script on Linux

    I try to use powerful Linux system and run OATS there. Original screenplay has been developed under Windows and it contains the absolute path as "C:/users/oats...file.properties". I moved in together the OTF file in Linux, tried to run the script (stupid me)-got 'file 'C:/users/oats...file.properties' not found. Fine. Make sense. Fixed path on Linux to the appropriate location as ' / apps/oats/...file.properties'. Run again in BTA (thank you, developers of OATS, for not supporting OpenScript on Linux)-same error. Congested OTF directory, copy, difficulty of location - folder always wanted under C:.

    Obviously olt set cached an older version of the script somewhere finding files gave nothing. Where could this be?

    Resolved. BTA doesn't source, editing without OpenScript compilation produces no result. BTA runs GTM files that are compiled by OpenScript.

    So what worked:

    Modify the script in Windows OpenScript (fixing here at Linux and correct path)

    Build in OpenScript (or simply play again)

    Copy the JWG files in Linux

    Enjoy.

  • Dave Saunders update find the script style/change case

    How can I update a script of Dave Saunders of CS1 and CS2 to CS5?

    He wrote a brilliant script that looks for a paragraph style and becomes the upper case or lower.

    However, it was for CS1 and CS2.   I can't make it work on CS5.

    it triggers in

    app.findPreferences = null;
    object does not support the "findPreferences".

    Here's the script.  Thanks for your help!

    DESCRIPTION: Converts the text referred to the designated case parastyle

    If ((app.documents.length! = 0) & & (app.selection.length! = 0)) {}
    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    myStringList = myStyles.everyItem () .name;
    myCaseList = ["uppercase","tiny", "Title case", "Sentence case"];
    myCases = [ChangecaseMode.uppercase, ChangecaseMode.lowercase, ChangecaseMode.titlecase, ChangecaseMode.sentencecase];

    myDialog = app.dialogs.add var ({name: 'Case changer'})
    {with (MyDialog)}
    {with (dialogColumns.Add ())}
    with (dialogRows.add ()) {}
    with (dialogColumns.add ()) {}
    staticTexts.add ({staticLabel: "Style of paragraph :"});})
    }
    with (dialogColumns.add ()) {}
    myStyle = dropdowns.add({stringList:myStringList,selectedIndex:0,minWidth:133});)
    }
    }
    with (dialogRows.add ()) {}
    with (dialogColumns.add ()) {}
    staticTexts.add ({staticLabel: "change case to :"}); "})
    }
    with (dialogColumns.add ()) {}
    myCase = dropdowns.add({stringList:myCaseList,selectedIndex:0,minWidth:133});)
    }
    }
    }
    }
    Ditto var = myDialog.show ();
    If (ditto! = true) {}
    the user has clicked Cancel
    myDialog.destroy ();
    errorExit();
    }
    theStyle = myStyle.selectedIndex;
    Case = myCase.selectedIndex;
    myDialog.destroy ();

    app.findPreferences = null;
    app.changePreferences = null;
    myFinds = myDoc.search (', false, false, undefined, {appliedParagraphStyle:myStyles[theStyle]});})
    myLim = myFinds.length;
    for (var j = 0; myLim > j; j ++) {}
    myFinds [j] .texts [0] .changecase (myCases [theCase]);
    }

    } else {}
    errorExit();
    }

    +++ Functions start here +++

    function errorExit (message) {}
    If (arguments.length > 0) {}
    If (app.version! = 3) {beep()} / / CS2 includes beep() function.
    Alert (message);
    }
    Exit(); CS ends with a beep; CS2 left silently.
    }

    I had wanted this script to work for centuries, as well, but I started studying javascript in InDesign several weeks reading Scripting InDesign CS3/4 with Javascript by Peter Kahrel. Even though it says CS3/4, he won't be in CS5. Not sure if Peter put updated recently or not.

    In any case, thanks to that and Haakenlid and Manan help, I was able to update the script and make it work successfully. I the extent of change "app.findPreferences = null;" to "app.findTextPreferencess = NothingEnum.NOTHING;", but I was stuck on line 43 (myFinds = myDoc.search...). I had to change something in the code of Haakenlid: "appliedParagraphStyle" should be "appliedCharacterStyle". Without further ADO, here's the script fixed:

    DESCRIPTION: update the script of ChangeCaseOfSelectedStyle of Dave Saunder for CS5 and later

    If ((app.documents.length! = 0) & (app.selection.length! = 0)) {}

    myDoc = app.activeDocument;

    myStyles = myDoc.characterStyles;

    myStringList = myStyles.everyItem () .name;

    myCaseList = ["uppercase","tiny", "Title case", "Sentence case"];

    myCases = [ChangecaseMode.uppercase, ChangecaseMode.lowercase, ChangecaseMode.titlecase, ChangecaseMode.sentencecase];

    myDialog = app.dialogs.add var ({name: 'Case changer'})

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    with (dialogRows.add ()) {}

    with (dialogColumns.add ()) {}

    staticTexts.add ({staticLabel: "Style of character :"});})

    }

    with (dialogColumns.add ()) {}

    myStyle = dropdowns.add({stringList:myStringList,selectedIndex:0,minWidth:133});)

    }

    }

    with (dialogRows.add ()) {}

    with (dialogColumns.add ()) {}

    staticTexts.add ({staticLabel: "change case to :"}); "})

    }

    with (dialogColumns.add ()) {}

    myCase = dropdowns.add({stringList:myCaseList,selectedIndex:0,minWidth:133});)

    }

    }

    }

    }

    Ditto var = myDialog.show ();

    If (ditto! = true) {}

    the user has clicked Cancel

    myDialog.destroy ();

    errorExit();

    }

    theStyle = myStyle.selectedIndex;

    Case = myCase.selectedIndex;

    myDialog.destroy ();

    app.findTextPreferences = NothingEnum.NOTHING;

    app.changeTextPreferences = NothingEnum.NOTHING;

    app.findTextPreferences.appliedCharacterStyle = myStyles [theStyle]; var myFinds = myDoc.findText ();

    myLim = myFinds.length;

    for (var j = 0; myLim > j; j ++) {}

    myFinds [j] .texts [0] .changecase (myCases [theCase]);

    }

    } else {}

    errorExit();

    }

    +++ Functions start here +++

    function errorExit (message) {}

    If (arguments.length > 0) {}

    If (app.version! = 3) {beep()}

    Alert (message);

    }

    Exit();

    }

  • Photoshop layer redesign, rename the script for Illustrator

    The Photoshop scripting guru Paul R more to RetouchPro has created a really cool to rename script and layers of selected Photoshop batch numbers. I did find something similar on the side of the Illustrator.

    He gave his permission for me to post it here in hopes that some Illustrator scripting genius could come up with a similar script for Illustrator. It would be terribly difficult to convert into something that could use Illustrator?

    http://www.mediafire.com/file/g7usr73u0236p0a/rename _ & _Renumber_Selected_Layers.jsx

    http://www.mediafire.com/file/dbah74x13bsa74c/rename _ & _Renumber_Selected_Layers.jsx.zip

    rename-layers.png

    Hola Julio, I updated the script to rename the sublayers or visible layers and also fixed the color

    #target illustrator
    
    main();
    function main(){
        if(!documents.length) return;
        //var allLayers = app.activeDocument.layers;
        var win = new Window( 'dialog', '' );
        g = win.graphics;
        //  var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]); // CS5
        var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.50, 0.50, 0.50, 1]); // CS6
        g.backgroundColor = myBrush;
        win.orientation='stack';
        win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
        win.g1 = win.p1.add('group');
        win.g1.orientation = "row";
        win.title = win.g1.add('statictext',undefined,'Rename Visible Layers or Sublayers');
        win.title.alignment="fill";
        var g = win.title.graphics;
        g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
        win.g5 =win.p1.add('group');
        win.g5.orientation = "column";
        win.g5.alignChildren='left';
        win.g5.spacing=10;
        win.g5.st1 = win.g5.add('statictext',undefined,'New layer name');
        win.g5.et1 = win.g5.add('edittext');
        win.g5.et1.preferredSize=[250,20];
        win.g10 =win.p1.add('group');
        win.g10.orientation = "row";
        win.g10.alignment='fill';
        win.g10.spacing=10;
        win.g10.st1 = win.g10.add('statictext',undefined,'Serial Number');
        win.g10.et1 = win.g10.add('edittext',undefined,'1');
        win.g10.et1.preferredSize=[50,20];
        win.g10.et1.onChanging = function() {
          if (this.text.match(/[^\-\.\d]/)) {
            this.text = this.text.replace(/[^\-\.\d]/g, '');
          }
        };
        win.g10.st1 = win.g10.add('statictext',undefined,'Length');
        var nums=[2,3,4,5];
        win.g10.dl1 = win.g10.add('dropdownlist',undefined,nums);
        win.g10.dl1.selection=0;
        win.g15 =win.p1.add('group');
        win.g15.orientation = "row";
        win.g15.alignment='fill';
        win.g15.cb1 = win.g15.add('checkbox',undefined,'Reverse layer order');
        win.g15.cb2 = win.g15.add('checkbox',undefined,'Rename Sublayers Only');
        win.g100 =win.p1.add('group');
        win.g100.orientation = "row";
        win.g100.alignment='center';
        win.g100.spacing=10;
        win.g100.bu1 = win.g100.add('button',undefined,'Rename');
        win.g100.bu1.preferredSize=[120,30];
        win.g100.bu2 = win.g100.add('button',undefined,'Cancel');
        win.g100.bu2.preferredSize=[120,30];
        win.g100.bu1.onClick=function(){
            if(win.g5.et1.text == ''){
                alert("No layer name has been entered!");
                return;
            }
            win.close(0);
    
            var sublayersOnly = win.g15.cb2.value;
            var visibleLayers = [];
            getVisibleLayers (app.activeDocument, visibleLayers, sublayersOnly);
    
            if(win.g15.cb1.value) visibleLayers.reverse();
    
            for(b=0; b		   
  • Run the script in local path calc

    @Hi all,

    We have a requirement in which an a certain application calc script is run to clear data. The data to be erased (months) are mentioned in a file that we receive the ETL.

    The mechanism is so that, from workday1 up to Workday4, we have a clear current and previous months and workday5 until the rest days, delete us the data of the current month.

    We were doing this manually so far and we need to automate the process. We used VBScript to read the contents of the file that is sent by ETL and change the script to calc.

    But the problem is the calc script which is getting changed is present in the local system and not on the application server.

    Please suggest some options where I can call the calc updated the script locally and executed him from maxl.

    Appreciate any help on this!

    Hello Sadhana,

    When you create a calc script VB logic on the local computer, then you can probably develop it a little and write a MaxL script with the calculation inside. Then you can run this script on your local computer where MaxL has been installed.

    Kind regards

    Philip Hulsebosch

  • Meaning of ' n3, n4 ' in the script of edge fonts

    Recently, I designed a website and used open without police, I liked then used in conjunction with a second site too. But the second time of the police was different.

    I compared the different bits of code and discovered that the first has:

    " < script src =" http://use.edgefonts.NET/open-sans:N3, N4:default.js "type =" text/javascript"> < / script > "

    While the second was:

    " < script src =" http://use.edgefonts.NET/open-sans:N3:default.js "type =" text/javascript"> < / script > "

    the difference being the first to n3, n4 and the just second n3. (All the other stuff is the same - family of police, police-weight, size etc.)

    I know fonts make slightly differently on various devices, but I like the 'n3, n4' better than just "n3" that I find too light for my needs.

    n3n4comp.jpg

    So, I'm happy to keep the 'n3, n4', but nobody knows what that means? I want to especially make sure that there is not a conflict being created which looks good on my screen but does unpredictable things elsewhere.

    Thank you very much!

    The number n in the edge script fonts refers to the font. N3, 300, n4 means 400.

    N4 (400) returns to normal. N3 (300) is a little lighter.

    Normally, when you apply a font for a page, Dreamweaver should automatically update the script fonts of edge. However, if your styles in an external style sheet (which they would normally be), the script don't update automatically on every page that is attached to the style sheet when you add a new weight of fonts to the current page. In these conditions, the browser will try to simulate the new weight if it is not downloaded from edge fonts. Simulation of weight always look more rough than the correct weight.

    To update the edge script fonts, go to commands > Clean Up Web Fonts Script tag (the current Page). There is no way to apply the update to the whole site, because the weight required for individual pages depend on the styles applied to them.

  • Error: The Windows Update components must be repaired. One or more components of Windows Update are configured incorrectly

    Original title: Windows Ypdate default data locations have changed. By MS Fix - it = need to change the locations of update of widows to the default settings of Windows. How do I do that?

    All the Windows security updates fail since late May. Used MS Fix Center, issued found = "components Windows Update must be repaired. One or more components of Windows Update are configured incorrectly. "Need to"places of Windows Update change to the default settings of Windows. How can I do?

    1 McAfee Total Protection, 27/02/2013 expiration date. No other anti-spyware or firewall, only MS Windows firewall.

    2. any other Norton or McAfee has never been installed.

    3 McAfee is installed in the PC.

    4. no
    4B. no
    4 c. [all except KB2718704]
    4 d all found.
    4th. KB2393802 12/02/12 and Ko 971029 3/17 / 12.

    5. ask to Google Chrome

    6 Java is U.5 V.7.

    7. do not use Registry cleaners.

    8. never install repair or cleaning set

    Fact: McAfee (and Norton) applications are notorious for not not upgrade (or uninstalling) itself. Evidence for many years of McAfee "leftovers" is the troublemaker more likely here.

    Roll up your sleeves & cross your fingers...

    ACTIONS

    [You will see that there is quite a bit to do this, you may want to print these instructions for reference offline. Perform ALL steps below in a 1 meeting - allow a minimum of 1 hour.  Don't skip the steps!  [Note: If a step said to restart, restart! ]

    1. click right on the following link to download the McAfee Consumer products Removal tool, select SAVE as... & download the utility on your desktop: http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe

    2. close all open applications (that is, anything with an icon on the taskbar).

    3. After completing some you have a copy of your key of handy product, uninstall McAfee Total Protection via Start | Control Panel | Programs: Programs and features.

    4 IMPORTANT! -Online make sure that the Windows Firewall is activated immediately after the reboot!  (Should be done automatically, but I want you to check.)

    NB: Now you're "working without a net": do not to ANYTHING else online (e.g., navigation reading E-mail; cat) until you have finished step #7 below!

    5. double-click on the file that you saved in #1 above to run the utility. DO TAP not your keyboard until the race ends, then restart.

    (6 do a clean install of McAfee Total Protection (using your product ID, if need be) & restart). If you purchased the software directly from McAfee, go to https://home.mcafee.com/Secure/Protected/Login.aspx to connect and download your software.

    Note: McAfee Total Security includes a firewall, Windows Firewall should be disabled now (that is, you shouldn't have too much active).

    7. on several occasions the McAfee application manually update until you get a "not more than updated" or similar prompt.

    8A. Start | Settings | Control Panel | Add/Remove programs. Set Program Access and Defaults: select (check) the CUSTOM [<>] configuration option, and then click the arrows pointing to the far-right | Browser: select "Internet Explorer" here (to not "use my current... »).

    Illustration: http://teamtutorials.com/wp-content/uploads/2007/05/set-program-access-defaults-02.jpg

    8B. now check your settings here: IE tools | Internet Options | Programs | Default web browser: If the make default button is NOT dimmed, click/press it. [1]

    9. right click on the following link and SAVE the download to your desktop: http://www.slipstick.com/problems/reg/chromehtml.reg [2]

    9. b double-click the file that you saved in # 9 above & accept invites him to MERGE with the registry data.

    10. open Internet Explorer (only!) to http://support.microsoft.com/kb/923737 [ignore the warnings of DO NOT APPLY and the section will APPLY to] & run the difficulty.

    Note => for best results, check the option Remove personal settings .

    12. open Internet Explorer (only!) to http://support.microsoft.com/kb/910336 [ignore the title & symptoms].

    12 b. IMPORTANT!-online make disappear/close theTroubleshooting Windows Update tool ""pop up! "   " -then...

    12. ignorant of the "not recommended" or similar warnings, run difficulty he 50202 in DEFAULT modes and AGGRESSIVE. [3]

    13 restart once more.

    [Take a break! Go outside & run your yard to wake you up! [Take a beer, if you want - then...]

    14. assuming that everything is fine, open Internet Explorer (only!) at http://windowsupdate.microsoft.com . Select CUSTOM and scan | See if you manage to install all security updates (for example, KB2698365;) KB2699988) available now; Follow all the instructions.

    -Online if an update of root certificates is listed under the category of updates software optional on the left side of the window of scan results, install it to enjoy greater security of IE8.

    -Online Tip: do NOT install any other updates software optional or any updated material in option .

    15 Reply to this post with a status report and (hopefully) confirm that KB2698365, KB2718523, KB2691442, KB2655992, KB2719985, KB2699988, KB2685939, KB2707511 & KB2718704 are all listed in Add/Remove Programs now.

    Good luck!

    ==================================================
    [1] after that we ended up this thread, do not hesitate to reaffirm Chrome as a default, if you wish.

    [2] trust Source: http://www.slipstick.com/problems/this-operation-has-been-cancelled-due-to-restrictions/

    [3] full Disclosure: running the utility of automated troubleshooting will remove your history of update but not the list of installed updates.

  • load via the script use

    Hello

    How can I charge a use (*.uri) via the script? Check the plug current if the plug-in is already loaded?

    Greetings,

    Martin

    Hi Martin

    The following will let you know what is the revision of a pluggin of data.

    The second function updates the plugin data upon request.

    Enjoy!

    Paul

    ' Gets the version of a use

    function GetDatapluginVersion (strDatapluginName)

    Dim oMyDataPlugin

    Set oMyDataPlugin = Navigator.Settings.RegisteredDataPlugins (strDatapluginName)

    GetDatapluginVersion = oMyDataPlugin.Version

    "Call the MsgBoxDisp (oMyDataPlugin.Version)."

    EndFunction

    Sub CheckUpdateAOP5

    Dim strAOP5CurrentVersion, strAOP5LatestVersion

    Dim MyVar

    protected path2AOP5: Path2AOP5 = 'Yours to fill. "

    strAOP5CurrentVersion = GetDatapluginVersion ("AOP5")

    strAOP5LatestVersion = "11.0.1f5081".

    If strAOP5CurrentVersion = strAOP5LatestVersion then

    ' msgbox ("AOP5 latest version:" & strAOP5LatestVersion & "is equivalent to" & strAOP5CurrentVersion)

    on the other

    MyVar = MsgBox ("AOP5 use requires an update now?", vbYesNo + vbQuestion, "DIAdem")

    Select if MyVar

    Case VbYes

    Call ExtProgram (Path2AOP5)

    Select end

    end if

    EndSub

  • Automatically update the drivers via WSUS 3.0 SP1

    Posted November 16, 2010, 15:51

    Hello

    Recently at the company that I work we started pushing updates to the video card driver via WSUS. While users have no problems of installation, we had difficulty to automate the process. Basically, we have 7 computers that are run continuous tests that cannot be interrupted, except for 430 in the morning when they restart. We have a script that does the reset and we try to make these computers to install updates before restarting. I tried WuInstall, Remote X Reboot, this script:http://www.wsus.info...?showtopic=7298 and this: http://msdn.microsof...28VS.85%29.aspx where all work, ideal for installing Windows updates but none of them install updates of the driver as well! The updates appear as high priority and all other updates installed without problem, every single script/program that I use to try to automate the updates says "No update available" even if the Windows Update icon is still there. We tried this on Windows XP and Windows 7 computers and got the same result, we use WSUS SP1 on Server 2008. Any help/link to a program/script would be greatly appreciated.

    Thank you

    Please repost your request in the Forum of WSUS.  Thank you! Carey Frisch

  • Pass information from the Panel to the Script?

    Hello

    I wrote a JSX script to automatically generate forms of grid for me, then used 4 configurator to create a panel that triggers the script.

    It would be much more useful if I could have text fields so that users can specify how many grid lines, columns, etc., but I don't see any method to do that in the configurator.

    Is it possible to pass on a panel user input in a script?

    I use CS6.

    Chaila

    Hi eshan.mathur,

    I would say that's not possible, but I'm not a big expert Configurator 4.

    If you need a simple GUI on CS6, I suggest to use a scripted dialog box. It is not difficult if you do not want stuff, to see this code snippet:

    var yourFunction = function(first, second, third) {
        // Do whatever you need here
        alert("Params\nFirst: " + first + "\nSecond: " + second + "\nThird: " + third);
    }
    
    var res = "dialog { \
        margins: 15, spacing: 20, \
        preferredSize: [200,100], \
        orientation: 'column', \
        text: 'Demo Scripted Dialog', \
        alignChildren: ['right', 'top'], \
        \
        firstParam: Group { \
            sText: StaticText { text: 'First Parameter:' }, \
            eText: EditText { \
                characters: 4, \
                text: '10' \
            } \
        }, \
        secondParam: Group { \
            sText: StaticText { text: 'Second Parameter:' }, \
            eText: EditText { \
                characters: 4, \
                text: '20' \
            } \
        }, \
        thirdParam: Group { \
            sText: StaticText { text: 'Third Parameter:' }, \
            eText: EditText { \
                characters: 4, \
                text: '30' \
            } \
        }, \
        buttonsGroup: Group { \
            cancelButton: Button {text: 'Cancel'}, \
            okButton: Button { text: 'OK' } \
        } \
    }"
    
    var w = new Window(res);
    var retVal = w.show();
    
    if (retVal == 1) { // User clicked OK
        var firstParam  = w.firstParam.eText.text,
            secondParam = w.secondParam.eText.text,
            thirdParam  = w.thirdParam.eText.text;
        yourFunction(firstParam, secondParam, thirdParam);
    }
    

    Hope this helps,

    Davide Barranca

    ---

    www.davidebarranca.com

    www.cs-extensions.com

  • Sort by name via the script

    Hello world

    I would be grateful if someone could give some clues to sort by name from the

    Paragraph Styles, character Styles, Styles of object and panels color chart

    via the script.

    Thank you in advance.

    Edson Furman

    [email protected]

    To sort the styles I used the script below - works in CS3 and CS4 if it has been awhile since I finally tried. It could be coded with more elegance, but it worked well as it is. He does not account groups of style: I don't know what happens if your documents contain a sort you would better try.

    As for shades, these are not so easy to sort. There was a discussion about this at one of these sites:

    http://www.Hilfdirselbst.ch/gforum/gforum.cgi?jump=Forum%3d4

    http://InDesign-FAQ.de/

    Peter

    #target indesign
    
    sort_par_styles (app.documents[0]);
    sort_char_styles (app.documents[0]);
    sort_obj_styles (app.documents[0]);
    
    //-------------------------------------------------------------------------------
    
    function sort_par_styles (doc)
        {
        var string_array = sort_par_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.paragraphStyles.item (string_array[i]).move (
                LocationOptions.after, doc.paragraphStyles[i+2])
        }
    
    function sort_par_names (doc)
      {
      var array = doc.paragraphStyles.everyItem().name;
      array.shift (); array.shift ();  // exclude [No p.] and [Basic p/]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function sort_char_styles (doc)
        {
        var string_array = sort_char_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.characterStyles.item (string_array[i]).move (
                LocationOptions.after, doc.characterStyles[i+1])
        }
    
    function sort_char_names (doc)
      {
      var array = doc.characterStyles.everyItem().name;
      array.shift ();  // exclude [None]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function sort_obj_styles (doc)
        {
        var string_array = sort_obj_names (doc);
        for (var i = 0; i < string_array.length; i++)
            doc.objectStyles.item (string_array[i]).move (
                LocationOptions.after, doc.objectStyles[i+4])
        }
    
    function sort_obj_names (doc)
      {
      var array = doc.objectStyles.everyItem().name;
      array.shift (); array.shift (); array.shift ();  array.shift (); // exclude  [None], [Basic Graphics Frame], [Basic Text Frame], [Basic Grid]
      return array.sort (case_insensitive);
      }
    
    //-------------------------------------------------------------------------------
    
    function case_insensitive (a, b)
      {
      return a.toLowerCase() > b.toLowerCase()
      }
    
  • SQL script to update the Peoplesoft database information

    Hi all

    I'm a new DBA for a charity running both PS financials & HR which often must create test, training and instances of dev of our production environments. Doing so currently requires a number of manual steps to update the different nodes and paths to those required for the new instance, and naturally I did not become a DBA to do manual work ;-)

    I'm looking for these steps, but the schema PS script being what it is, I'm not having much joy to find where relevant data could be. If someone had a script to do something similar, or could point me in the direction of the tables, I would be extremely grateful. The kind of things that we currently do through the interface are:

    PeopleTools > Integration Broker > Configuration of integration > nodes
    PeopleTools > Security > security objects > Single Sign-on
    PeopleTools > Public Services > Administration > URL
    PeopleTools > Integration Broker > Configuration > Quick Setup > Integration Broker areas
    PeopleTools > Portal > node definitions
    PeopleTools > the Ren Server Configuration > Ren Server Cluster

    We are currently running MS SQL Server, but all the PL SQL scripts would be great - I just need to know what are the tables contain the data.

    Thank you very much


    Andy

    Well, it is very dependent on version Peopletools.
    An easy way might be to open the corresponding page that you speak, and then display the definition of page and the associated record. At least that is what I use to do.
    Then, update you the table background and see if she takes your new values.

    To be brief, here is an excerpt of these tables (non-exhaustive list, PT.48):
    Node of single sign - we built: pstrustnodes
    Scheduler process definition: ps_serverdefn
    Run the command: psprcsruncntl
    Message channels: pschnldefn
    The e-mail table of contents: psapmsgpub *, psapmsgsub *, psapmsgarc *.
    Definition of message node: psmsgnodedefn
    URL: psurldefn
    Definition of employment: ps_prcsjobdefn
    OPRID (e-mail address): psoprdefn
    ...

    Then fill out your own list with the method that I gave above.

    Nicolas.

  • JavaScript script works correctly on all web browsers outside Firefox (the script no longer works correctly updated after FF).

    Hello

    script work correctly on all web browsers. Unfortunately after (probably) last update Firefox stopped handling with it.

    Script is part of the popular based on MyBB forum (http://www.mybb.com/). I put a screenshoot below, which should easily show how the script worked.

    http://screenshooter.NET/data/uploads/UG/TG/Dyre.jpg

    After clicking on any icon (e.g. "BOLD" 'B'), it shows "[undefined = undefined]" and then clicking on shows no effect.

    Errors of "Console of WWW" after clicking on icon:
    TypeError: mnu is undefined - line 641
    TypeError: tag is undefined - line 1163

    I posted here the problematic script:
    http://pastebin.com/D8HmLEKK

    Best regards!

    See [939971/questions/939971]

Maybe you are looking for