help to fix my script please

Hi all

I created a script to change all my composer of universal paragraph styles and give all directions RTL but need to add a fit more around (alignment) in paragraph style

I need to replace it right if it is (left)

1.png

myDoc var = app.activeDocument;

var myPStyle = myDoc.allParagraphStyles;

for (i = 1; i < myPStyle.length; i ++) {}

Alert (myPStyle [i]. (Name)

composer myPStyle [i] = "Adobe world-ready paragraph composer";

myPStyle [i] .kerningMethod = "settings";

myPStyle [i] .paragraphDirection = ParagraphDirectionOptions.rightToLeftDirection;

}

Thank you all

Hi Susan,

Try this,

myDoc var = app.activeDocument;

var myPStyle = myDoc.allParagraphStyles;

for (i = 1; i

composer myPStyle [i] = "Adobe world-ready paragraph composer";

myPStyle [i] .kerningMethod = "settings";

myPStyle [i] .paragraphDirection = ParagraphDirectionOptions.rightToLeftDirection;

If (myPStyle [i] .justification = Justification.LEFT_ALIGN & myPStyle [i] .name! = "[no paragraph Style]")

myPStyle [i] .justification = Justification.RIGHT_ALIGN;

}

Tags: InDesign

Similar Questions

  • Please help me fix the script

    I try to write a script by my slef but not work

    app.findGrepPreferencest = firstLineIndent:8, leftIndent:8;

    app.changeGrepPreferences = firstLineIndent:8, leftIndent:16;

    app.changeGrep ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    Can someone please help me fix the script, please.

    Hello

    Try this.

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findGrepPreferences.firstLineIndent = '8 ';

    app.findGrepPreferences.leftIndent = '8 ';

    app.changeGrepPreferences.firstLineIndent = '8 ';

    app.changeGrepPreferences.leftIndent = "16pt;

    app.changeGrep ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    Kind regards

    Cognet

  • Please help me fix my script!

    Please help me fix my script

    I use this script that copy from the adobe forum:

    app.findGrepPreferences.findWhat = "\\r";

    app.changeGrepPreferences.changeTo = "\\r\\r";

    app.changeGrep ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    to change my back one or two, but it will always change all my documents.

    How can I tell the script that I only want to change the selection?

    Hello

    Note the syntax ==> target changeGrep()

    If the target is app ==> it runs through the entire application of the ways each open document

    If the target is doc ==> it runs through all doc

    It can be called for textFrame, story, paragraph..., any text object.

    In your use case

    App.Selection [0] .changeGrep ();

    or browse the selection and appeal

    App.Selection [i] .changeGrep ();

    Jarek

  • Fix my script please!

    Hello world

    Could someone please help me fix my script:

    docs var = app.documents.

    for (var i = docs.length - 1; i > = 0; i--)

    {

    var
    myTarget = app.target [0];

    If (instanceof InsertionPoint myTarget)

    {myTarget.insertionPoints [0] .underline = false;}

    }

    ElseIf (myTarget cell instanceof)

    {for (i = 0; i < myTarget.cells.length; i ++)}

    {myTarget.cells [i] .texts [0] .select ();}

    App.Selection [0]. Underline = false;

    }

    }

    ElseIf (myTarget instanceof Table)

    {for (i = 0; i < myTarget.cells.length; i ++)}

    {myTarget.cells [i] .texts [0] .select ();}

    App.Selection [0]. Underline = false;

    }

    }

    else {myTarget.Underline = false;}

    }

    }

    Goal to clear underscore that, in the inserpoint, the cells.
    tables, text.

    Thank you

    Respect of

    Teetan

    Just merge the two code and execute it.

    Vandy

  • Help me fix driver errors, please

    Hi, there, I got Windows Vista software alerts restore problems on pilots to be fixed and do I need to format these drivers? I have some info on PC restored it.
    Restore method would then execute?
    Thank you.

    Hello

    Unfortunately, it is clear exactly what the issues are.

    Use the startup clean and other methods to try to determine the cause of and eliminate
    the questions.

    ---------------------------------------------------------------

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

  • When I try to defrag, a window opens and closes and a file download-security warning. A loop repeats. Other programs to do the same thing. Please help me fix this loop? SOS?

    When I run defrag, an IE window opens and closes and a file download-security warning comes up and asks me to run or save the file name: c:\windows\system32 dfrgui.exe, if I hit then another warning of IE - sec stands up and says 'the Publisher could not be verified. Are you sure that you want to run. I struck and the loop repeats. I run a diag of the F10 boot menu with dell. They say that its software and non-material, pay! Microsoft says that Dell is responsible. Other programs to do the same thing. I've updated and rerun my AVG security without error. We are automatically updated, and no other programs were added. Please help me fix this loop? SOS?

    Vista - open file - security warning
    http://www.Vistax64.com/Vista-security/125044-open-file-security-warning.html

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
    http://support.Microsoft.com/kb/936212/#appliesTo

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    Your programs launch properly from Safe Mode?  Or Normal Mode if you create another user to test with?

    Vista advanced boot options
    http://Techblissonline.com/Vista-advanced-boot-options/

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking.  Try first by checking do not each box (that it will run in read-only mode) to see if it reports any problems file or hard drive.  If so, restart it by checking both boxes and restart to allow him to attempt to fix any problems found.

    I see a lot of recommendations here for programs such as -

    Malwarebytes' Anti-Malware
    http://www.Malwarebytes.org/MBAM.php

    SuperAntispyware
    http://SUPERAntiSpyware.com/

  • Please help improve the JavaScript script

    Please help improve the JavaScript scriptA.JPG

    Hello

    to increase or decrease the height of a subform, you use the following syntax in the click of + and - button

    cmdAdd::JavaScript

    _Row1.addInstance (1);

    var b is parseFloat (Subform3.h) - 6.5;.

    If (b<>

    b = 0;

    }

    Subform3.h = b + "mm";

    cmdRemove::JavaScript

    If (_Row1.count > 1) {}

    var b is parseFloat (Subform3.h) + 6.5.;

    Subform3.h = b + "mm";

    _Row1.removeInstance (this.parent.index);

    }

    This should do the trick, I hope this will help you

  • Smartphones blackBerry need help to fix it please

    right, I tried to update my blackberry "BOLD" and that she was his backup in advance its a completely frozen and I can't do anything with it. IO tried to take the battery and turn her on, but it refers just to go back to the backup screen where it does nothing. can anyone suggest a way to fix this problem please?

    You can't cancel it. You need to either let it be... I saw him take 8 to 24 hours or more (it shouldn't, but it does.) If you do not want to wait outside then you will need to wipe the device and reload the OS from scratch. If you do this, you will lose all your data if you do not have a backup.

  • Sorry, there is a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. "- How to fix?

    When I try to click in and see my emails it says "sorry, there is a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. "and mails never appear (I could see it on the list, but could not click on it to see it), but it has been like that for more than 48 hours, please help!

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Error message "your account has been locked" when trying to connect
    http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Fix my script

    Hello

    His operation but "Default setting for advanced Type" value is not updated in my Indesign file. Pls fix my script.

    var w = new Window ("dialog", "Template Checklist", undefined, {closeButton: false});
    w.alignChildren = "left";
    var check1  = w.add ("checkbox", undefined, "Preference settings");
    
    
       if (check1.value == true)
     {
        //this is 'Advanced Type' default setting
        myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;
        myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;
        myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
        myDocument.textPreferences.superscriptPosition=33;
        myDocument.textPreferences.superscriptSize=70;
        myDocument.textPreferences.subscriptPosition=33;
        myDocument.textPreferences.subscriptSize=70;
        myDocument.textPreferences.smallCap=75;
        app.imePreferences.inlineInput=true;
        }
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Ok");
    buttons.add ("button", undefined, "Cancel");
    w.show ();
    var ProgressBar = function(/*str*/title)
    {
         var w = new Window('palette', ' '+title, {x:0, y:0, width:340, height:60}),
              pb = w.add('progressbar', {x:20, y:12, width:300, height:12}, 0, 100),
              st = w.add('statictext', {x:10, y:36, width:320, height:20}, '');
         st.justify = 'center';
         w.center();
         this.reset = function(msg,maxValue)
              {
              st.text = msg;
              pb.value = 0;
              pb.maxvalue = maxValue||0;
              pb.visible = !!maxValue;
              w.show();
              };
         this.hit = function() {++pb.value;};
         this.hide = function() {w.hide();};
         this.close = function() {w.close();};
    };
    //------------------------------------------------
    //      SAMPLE CODE
    //------------------------------------------------
    function main()
    {
         var pBar = new ProgressBar("Running");
         var i;
         
         // Routine #1
         pBar.reset("Please wait Processing ...", 100);
         for( i=0 ; i < 100; ++i, pBar.hit() )
              {
              $.sleep(10);
              }
         // Routine #2 
         pBar.close();
         }
    main();
    exit();
    

    Pls fix my script

    by

    hasvi

    Hi Hasvi,

    Corrected code.

    var w = new window ('dialog', 'List of model checking', undefined, {closeButton: false});

    w.alignChildren = 'left ';

    var check1 = w.add ('checkbox', undefined, 'Préférences');

    var buttons = w.add ("group");

    Buttons.Add ('button', undefined, 'Ok');

    Buttons.Add ('button', undefined, 'Cancel');

    w.Show ();

    myDocument var = app.activeDocument;

    If (check1.value is true)

    {

    It is by default "Advanced Type"

    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;

    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;

    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    myDocument.textPreferences.superscriptPosition = 33;

    myDocument.textPreferences.superscriptSize = 70;

    myDocument.textPreferences.subscriptPosition = 33;

    myDocument.textPreferences.subscriptSize = 70;

    myDocument.textPreferences.smallCap = 75;

    app.imePreferences.inlineInput = true;

    }

    var ProgressBar = function(/*str*/title)

    {

    var w = new window ("palette", "' + title, {x: 0, y: 0, width: 340, height: 60}").

    PB = w.add ("progressbar", {x: 20, y: 12, width: 300, height: 12}, 0, 100);

    St = w.add ("statictext', {x: 10, y: 36, width: 320, height: 20}," ");

    St.Justify = 'center ';

    w.Center ();

    This.Reset = function (msg, maxValue)

    {

    St.Text = msg;

    PB. Value = 0;

    PB. MaxValue = maxValue | 0;

    PB.visible =! maxValue;

    w.Show ();

    };

    This.hit = function() {++ pb.value ;};}

    This.Hide = function() {w.hide ;};)

    This.Close = function() {w.close ;};)

    };

    //------------------------------------------------

    CODE EXAMPLE

    //------------------------------------------------

    main() function

    {

    var pBar = new ProgressBar ("Running");

    var i;

    Routine #1

    pBar.reset ("wait PLEASE treatment... (', 100);

    for (i = 0; i< 100;="" ++i,="" pbar.hit()="">

    {

    $.sleep (10);

    }

    Routine #2

    pBar.close ();

    }

    main();

    Exit();

  • Help with automatic guides? Please, I beg you!

    I hope that I can make this sense...

    I am a beginner with InDesign. I have been using Photoshop for years, I'm a photographer and I would like to say that I know my way around Photoshop well enough. I'm very uncomfortable with it. For InDesign is not TOO complicated for me. The big thing now is something I actually noticed on accident when I started using it. I hope this makes sense, please bear with me... haha

    As I resize images, I noticed that Adobe has been automatically guide me. It was showing me the widths and to help me fix the pictures in place so that they line up with the other objects in the document. It was GREAT! Helps the big time, both at work, my bosses are very particular about the margins and spacing. It is a very simple tool. Now, it's not to do! Is there a way to trigger? I must have hit something without realizing that has disabled it... I don't know but I sure am bummed at this point man. I don't know how it's called yet, so I don't know how to search for answers. ANY help would be great!

    Thank you very much!!!

    What do you look for

    View > grids and Guides > Smart Guides.

    It is a nice feature!

  • I have adware on my mac and I need help to fix it!

    I have adware on my mac and I need help to fix it!

    Try Malwarebytes for Mac:

    https://www.Malwarebytes.org/Mac-download/

    Is fast, effective and safe.

    Do not be mislead by one who can say that it is an anti-malware application.  It would be a false increased.

    Ciao.

  • My Windows Live Hotmail contacts are missing: "sorry, there is a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. »

    Cannot get Hotmail contacts.  Error message States "he has a problem with Hotmail right now. It should be fixed soon, so please try again in a few minutes. "The first sentence is repeated in the great blue and and then more small black font.  Then he gives a link "tries to return to Hormail.  It has been so since then, I believe, before Christmas. I can get my hotmail emails, my Windows Live ID page comes up, just no contacts.  Fortunately, my windows phone keeps my contacts.  I also use Outlook Connector, which synchronize my outlook, hotmail, and LinkedIn contacts nicely, but the hotmail contacts have disappeared.

    Hi GtoddG,

    Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:

    http://windowslivehelp.com/forums.aspx?ProductID=1

  • My brother bought window 7 and I use XP. What do we have to do for me to control his computer from my XP, so I can help or fix the errors.

    original title: remote assistance

    My brother bought window 7 and I use XP. What do we have to do for me to control his computer from my XP, so I can help or fix the errors.

    all you need is an application called "Remote Desktop Connection", it comes pre-installed in windows 7, if you have windows XP home, you can't get the remote desktop, but if you upgrade to XP Professional you can.

  • Popup Windows LIve Mail Message to help protect your account information, please sign once again

    Windows LIve Mail Massege

    Pop-up message to help protect your account information, please sign once again

    Hello

    You will need to create a post on www.windowslivehelp.com for questions and assistance in connection with the Windows Live programs and services.

Maybe you are looking for

  • B590 touchpad only presents itself as a PS/2 mouse

    Hello, I have looked around and could not find the answer, so I'll ask here. As the title indicates the touchpad watch just like a mouse and scrolling & the fn + f6 option not worked, I got it on win 8 & 7, worked on none of them. I couldn't find a d

  • Transfer of register in Labview

    Hi guys,. Forgive the question, but I'm completely new to Labview and recently inherited a fairly large code base that I will work on in the coming months. The code is quite complex, so I don't know that I'll be referring to documents available to th

  • Printer cannot communicate since the upgrade to windows 7

    My Lexmark x 4650 is unable to communicate since the upgrade from vista to Windows 7.  He asks me to authorize the communication of bidrectional, once I do this for a reason that it won't save any

  • Q10 blackBerry screen display

    I was just wondering if it's just my q10 or it is the same for all the q10... Basically, my screen is not very bright and does not show 'white' color as pure white. The entire screen is more than a grey tint to it. I took my screen stop snack protect

  • Updated da version 4.0 U1 went 5.1

    Buongiorno a tutti.Ho N.2 host version 4.0U1 a cui I would fare, through the update manager, aggiornamento e I like sapere to qualcuno mi Può dare una dritta su come successfully I driver Intel di by schede di rete 82576 nel cd di all'istallazione de