How Can I write a script for change first indent?

How can I write a java script to tell indesign:
what ever the text first indent is, I want to change first indent =
1) 8mm
2) 0mm
3)-8mm (if left indent is 0, change the first indent to 8mm, and then change first indent = -8)
3 scripts
Please someone help me, please!

Hi hasive, thank you for your responses, thank you very much,
I need three scripts
1st script, I want to set the first indent to 8mm;
2nd script, I want to set the first indent to -8 mm, but if the left indent is 0, please set the left indent to >8mm then set the first indent to -8mm;
3rd, I want to set the first to 0mm, if the first indent is 8mm or -8mm;
thank you
Harvey

Similar Messages

  • How can I write a script for set left indent?

    In three cases as below:
    for example:
    left indent:8mm; first indent:0mm
    left indent:0mm; first indent:8mm
    left indent:8mm; first indent:-8mm
    How can I write a script to tell Indesign, wherever the text indent is, each time when I run the script once, the text can put just a step rightward, and “one step = 8mm”.
    Please!

    Hi, Trevor
    I use change by list as below:
    grep {leftIndent:48mm} {leftIndent:56mm}
    grep {leftIndent:40mm} {leftIndent:48mm}
    grep {leftIndent:32mm} {leftIndent:40mm}
    grep {leftIndent:24mm} {leftIndent:32mm}
    grep {leftIndent:16mm} {leftIndent:24mm}
    grep {leftIndent:8mm} {leftIndent:16mm}
    grep {firstLineIndent:8mm, leftIndent:48mm} {firstLineIndent:8mm, leftIndent:56mm}
    grep {firstLineIndent:8mm, leftIndent:32mm} {firstLineIndent:8mm, leftIndent:48mm}
    grep {firstLineIndent:8mm, leftIndent:24mm} {firstLineIndent:8mm, leftIndent:32mm}
    grep {firstLineIndent:8mm, leftIndent:16mm} {firstLineIndent:8mm, leftIndent:24mm}
    grep {firstLineIndent:8mm, leftIndent:8mm} {firstLineIndent:8mm, leftIndent:16mm}
    grep {firstLineIndent:-8mm, leftIndent:48mm} {firstLineIndent:-8mm, leftIndent:56mm}
    grep {firstLineIndent:-8mm, leftIndent:32mm} {firstLineIndent:-8mm, leftIndent:48mm}
    grep {firstLineIndent:-8mm, leftIndent:24mm} {firstLineIndent:-8mm, leftIndent:32mm}
    grep {firstLineIndent:-8mm, leftIndent:16mm} {firstLineIndent:-8mm, leftIndent:24mm}
    grep {firstLineIndent:-8mm, leftIndent:8mm} {firstLineIndent:-8mm, leftIndent:16mm}
    but not that perfect,
    I want to useing jave "if{}" or "for{}" to write this script, but I don't kown the syntext.

  • How can i write the trigger for Global Temporary Table

    Hi Grus,
    How can i write the trigger for Global Temporary Table.
    I was created the GTT with trigger using the below script .
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    trigger was create successfully, but the wouldn't insert into to EMPNAME Table..
    Please guide whether am correct or not? if not kindly give a correct syntax with example
    Thanks in Advance,
    Arun M M

    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    you are referencing old value in insert stmt.
    BEGIN
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    END;then run ur application it works fine...
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo');
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    dbms_output.put_line(:OLD.EMP_C_NAME);
    END;
    create table EMPNAME as select * from GLOBAL_TEMP where 1=2
    insert into GLOBAL_TEMP values('fgfdgd');
    commit;
    select * from GLOBAL_TEMP;
    select * from EMPNAME;
    output:
    1 rows inserted
    commit succeeded.
    EMP_C_NAME          
    fgfdgd              
    1 rows selected
    EMP_C_NAME          
    fgfdgd              
    1 rows selectedgot it Arun
    Edited by: OraclePLSQL on Dec 28, 2010 6:07 PM

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • How can I install asian script for language support for bangla in safari and install a font??

    how can I install asian script for language support for bangla in safari and install a font? Some websites are working fine in ipad and iphone4 but not in mac osx supported imac or macbook. Example: www.sonarbangladesh.com.

    You just need to install a font, like one of these:
    https://sourceforge.net/projects/onkur/
    http://www.ekushey.org/?page/osx
    For non-Unicode sites, see
    http://m10lmac.blogspot.com/2011/04/reading-non-unicode-indic-language-web.html

  • How can i write properties file for Hindi font

    Hi All,
    i'm using jdev 11.1.1.5.0
    in my use case i have worked on internationalization where i want to use hindi font
    like this link -
    Majid Hussain: Internationalization of ADF 11.1.1.3 Applications
    as in above post majid used german language and write properties file for german language(which is using english character).
    but my problem is that i want to use hindi language
    so how can i write propery file which support hindi font.
    Manish

    Hi Manish,
    We also had same requirement where we need to show indian local language(Hindi ,Bengali and many more ).
    We had implemented following approach and perhaps it will helpful for you.
    1-First we changed the encoding value in jdeveloper.
       go to jdeveloper --> tools --->preference-->encoding , select to UTF8
    2-We used to get the properties and it's translated value from business and then we were manually put these pair into related resource bundle.
    And using this we were able to implemented multilanguage support.
    Thanks
    Prateek

  • How can I write a script to regularly transfer a file between two iMacs on a network?

    I keep all our family photo files (iPhoto Library) on my wife's iMac.  Because we can't share the library simultaneously, I want to automate the copying of the library from her iMac to mine say, once a week in the wee hours (it's a big file). Both of our iMacs are on our common (wired) home network.  Is there a way to write a script that will accomplish that?  If it matters, we both maintain independent external backup drives and use 'Time Machine' judiciously.  Thanks in advance for any guidance!!!

    Hi Paul,
    http://fmforums.com/forum/topic/85381-applescript-to-copy-file-from-network-volu me/
    http://stackoverflow.com/questions/5134568/copy-a-file-in-applescript

  • How can I generate PDF bookmarks for change bars?

    I want to generate PDF bookmarks for text that is marked by change bars when I save as PDF from structured Framemaker 7.1. That way the proofreader can go directly to the pages that contain change bars and proof only that text.

    Adding to Arnis' reply:
    It is also possible to generate PDF bookmarks for change bars through FrameMaker-to-Acrobat TimeSavers + Presentation Assistant, as follows:
    Change bar has to use a unique color, with a known RGB value
    A PDF layer is created automatically based on the specified RGB value, containing all change bars (layer can be set as initially hidden and/or as a non-printing one)
    A generic bookmark can be created automatically for each change bar. Since this is not related to the specific text being indicated, the bookmark text has a user-controlled label, optionally autonumbered (eg "Change Bar #1", "Change Bar #2", etc).
    After setting the different parameters above, the process is entirely automatic (results are present as soon as the file is Save as PDF or distilled into a PDF).
    If this approach is of interest, I can set up sample FM + PDF files.
    A different approach -- based on custom markers inserted, with unique text and note attributes -- resulting in Quick-Access Bookmarks, is discussed/demonstrated at http://www.microtype.com/ImprovePDF06.html .
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker/Acrobat training & consulting * FM-to-Acrobat TimeSavers/Assistants
    1-hour webinar (free), starting 10am PDT | 1pm EDT | 5pm UTC/GMT:
    Thursday, Sept. 10: Liven up your PDFs with FrameMaker-to-Acrobat TimeSavers/Assistants 
    https://student.gototraining.com/register/8019702938678710980

  • How can I login to iTunes for the first time with apple ID which already exists, without my credit card

    I`ve got an appleID. And now I want to enter iTunes Store. But it asks me to write my credit card number(Visa/MasterCard/Amex) But I don`t have such a card. So I can`t log in. How can I log in without this card???

    Hi 6323540,
    In order to use an Apple ID without a credit card in the iTunes store, you will want to change the payment information associated with that Apple ID. See the guidelines in this article -
    Change or remove your payment information from your iTunes Store account (Apple ID)
    http://support.apple.com/kb/HT1918
    If you have not yet created an Apple ID and went to create one without a credit card, follow the steps in this article -
    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/HT2534
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Time Capsule and Time Machine: How can I force Ethernet Connection for the first backup ?

    Hi,
    How can I force the Time Capsule - Time Machine Couple to communicate via an Ethernet cable for the initial backup without changing the wi-fi configuration of the Time Capsule?
    I do not want to change the wi-fi configuration of the TC because it appeared that I was not able to restaure it proprerly after a first "ethernet backup".
    Please note that I do not want to use my TC to extend my wi-fi network nor create a new one. But, when I disable the wi-fi on the TC, as I want to restaure it, I only can see "expend" or "create a network" options within the wirless config page of AirPort Utlity; "Connect to a network" is not shown in the list!
    Thx a lot for your attention,
    François
    MBP 15' mid-2010
    OS X 10.8.2 (12C54)
    Time Capsule end-2011 (2TB - v7.6.1)

    You MUST change the TC mode to something other than join a wireless network.. because in that mode, TC turns off the ethernet ports. 
    The join a wireless network is hidden option because apple do not support it and it works poorly.
    You can access it by holding down the option key.
    You can also save the current settings and restore them after you finish the ethernet backup.
    Please note using join means double hop wireless and your TC data speed to the Mac will be extremely slow.. this will also affect your other internet connections and any other computers on the wireless network as it will use most of the capacity for much longer period than directly connecting to the TC.
    Basically that is why Apple do not support it.. it is lousy way to work a TC in a network.

  • How can I write a script or create a macro for gaming.

    Now I know this may be a petty and or silly question for most apple users but I am going to throw it out there anyway. I play an online game called Battle Pirates. When you make an attack you have up to 5 ships to control. I am looking for a way to control multiple ships with a "macro" or "script" and using only 1 key. For example: Select ship 2, 3, and 4 while leaving ship 1 and 5 alone. Yea I know it is childish but indulge me. Hahaha.
    I know you can write Macros with Windows and you can even use something called "Auto Hotkey". I just wanted to see if anyone knew of a way to do this with what Apple already has in place. What I have commonly found out with Apple products is that since I have come from being a Windows user to Apple, I usually overthink the process. LOL. Mac's are soooooo much easier....if you know where to start.
    Any help would be greatly appreciated! By the way, I have read the tutorial on "Script Editor" but I am having trouble understanding it mostly because you kinda would have to have SOME programming knowledge. Obviously I lack in that area. Thanks for bearing with me.

    Can you expand on that? How do you use automator in your game? Can you give me a rough idea of how and what you do with it? I have watched a tutorial on Automator and it seems more useful for documents.

  • Can I write a script to change Firefox to 32 bit when it detects the need for it and switches back when I leave the site?

    Sometimes I go to a website and Firefox 4 gives me a yellow bar notice "This site requires a plug-in for 32 bit mode.
    Click to restart in 32 bit mode."
    #1. Does Firefox then remain in 32 bit until I restart it? Or does it automatically revert to 64 bit when I surf to a different site?
    #2. Does anyone know a hack script to trigger Firefox on appearance of this warning to automatically restart in 32 bit.. and just as importantly, to shift it back to 64 bit upon cruising elsewhere??
    Is this asking too much? Sees like a cool improvement to me...

    # Close Firefox
    # Open the Applications folder in Finder
    # Right click or control-click the Firefox.app icon
    # Select "Get Info"
    # Select or deselect "Open in 32-bit mode"
    # Close the "Firefox Info" window
    # Restart Firefox

  • How can i write sql query for this result ?

    Hello Dear,
    Here is the script first.
    CREATE TABLE ACC_TEST(
    AD_ID NUMBER,
    AD_NAME VARCHAR2(50),
    AD_SPM_ID NUMBER);
    /data are
    Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (136,'Saleh Ahmed',129);
    Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (142,'Hamidur Rahman',136);
    Insert into ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) values (124,'Jasim Uddin',null);
    INSERT INTO ACC_TEST (AD_ID,AD_NAME,AD_SPM_ID) VALUES (129,'Sazib',124);I Need The Following Result When I Pass A Value Of Ad_Id. For Example I Pass 142 Then Result Should Be
    Select Ad_Id,Ad_Name
    From..
    where ad_id=142
    Ad_Id   Ad_Name
    136     Saleh Ahmed
    129     Sazib
    124     Jasim Uddin
    If I Pass Ad_Id=136 Then Result Should Be
    Ad_Id   Ad_Name
    129     Sazib
    124     Jasim Uddin
    If I Pass Ad_Id=129 Then Result Should Be
    Ad_Id   Ad_Name
    124     Jasim Uddin Database 10G XE
    Any help will be helpful

    Hi,
    HamidHelal wrote:
    WoW ! you acutely got my point. How did you understand that ? lLuck guess. Guessing is usually not the best way to solve problems. It's usually faster and more reliable to say exactly what you want, as well as give an example.
    ittle bit more i want to know, if i want to restrict the output not more then 2, what would be sql ?Now you're not even giviing an example!
    Maybe you want something like this:
    SELECT     ad_id
    ,     ad_name
    FROM     acc_test
    WHERE     LEVEL     BETWEEN 2 AND 3          -- Changed
    START WITH     ad_id     = :target_ad_id
    CONNECT BY     ad_id     = PRIOR ad_spm_id
    ;which will show jsut the parent and the grandparent of the given row.
    I do work with forms developer very much. Sql knowledge is as oracle sql book(cerfitication 9i). But this type of sql isn't available there.
    where can i learn this type of sql ? Different sql then ordinary ?Certification is a different topic entirely.
    There are books and web sites dealing with more advanced techniques. Sorry, I don't know any well enough to recommend them. Some authors (such as Tom Kyte) are consistently good.
    Here are a couple of sites that explain CONNECT BY queries:
    http://www.adp-gmbh.ch/ora/sql/connect_by.html
    http://www.oradev.com/connect_by.jsp

  • How can i get java script for apple

    java script turned off cant get it back on.

    The interpreter to handle JavaScript is built in.
    To turn the JavaScript interpreter on and off for all pages:
    Firefox > Preferences > Content tab
    If you already have JavaScript enabled on this tab but some sites tell you that JavaScript is ''not'' enabled, this might be the result of an add-on, a script filter, or many other possibilities.
    You didn't provide a lot of information in your post. Can you indicate where you have this problem, when it started, and whether you recall making any changes in Firefox or on your system before this happened?

  • How can I write an installer for filter plugin ?

    Hi,
    My filter works with several files.
    I should take some files in different folders (Actions, Filters, Styles, Textures...)
    Which installer can I use? Which installer knows the Photoshop directory?
    Thnx for any help
    Felix

    You can also use this to find the photoshop executable:
    RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshp.exe', 'Path', sPath);
    ("HKEY_LOCA_MACHINE\SOftware\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe")
    The problem with the plugin path is that its named differently depending on your os language, e.g. "Zusatzmodule" in german. Now, since you do not know wich version is installed, you can't query the reg-key I stated first and without it you can never be sure how the plugin folder is named on the target platform.
    Now either you try a reg-key for each version 1.0 to 10.0 until you get a valid entry or you can use the reg-key from above and put your plugin directly into photoshops root folder - it will be found there too. Of course that's a bit messy, but you don't have to worry about plugin-folder name and/or ps version that way.

Maybe you are looking for