Paragraph Alignment question - is it possible with scripting?

Hello. I am working on a business card template that has a paragraph alignment problem. I have asked in other forums if it was possible, they pointed out that it might be, with scripting.
I need to know if it is, so I can dig further.
Here is the problem: I have a name and title on seperate line that need to be aligned to the right margin (the longest line touches the right margin) but centered above or below themselves. The text box is set to receive a large amount of characters. This is an automated system using InDesign Server so no manual adjustments are being made once the information has been submitted.
Is this possible?

Again, I don't know anything about ID Server, but you can try this. Label the text frame 'card' (select the frame, go to Window > Automation > Script label and enter a 'card' -- without the quotes).
try
   tf = app.activeDocument.textFrames.item ('card');
   p0 = tf.paragraphs[0];
   p1 = tf.paragraphs[1];
   p0.justification = Justification.rightAlign;
   p1.justification = Justification.rightAlign;
   p0left = p0.insertionPoints[0].horizontalOffset;
   p1left = p1.insertionPoints[0].horizontalOffset;
   if (p1left > p0left)
      p1.rightIndent = (p1left-p0left)/2
   else
      p0.rightIndent = (p0left-p1left)/2;
catch(_){}
This one doesn't rely on a selection.
Peter

Similar Messages

  • I want to change the name of paragraphs styles. Is this possible by script.

    I want to change the name of paragraphs styles. Is this possible by script.
    Thank you

    Hi Hasvi,
    May the below coding helps for your question:
    var myDocument = app.activeDocument
    var myPStyles = myDocument.paragraphStyles.everyItem().getElements()
    for(i=2; i<myPStyles.length; i++)
    myPStyles[i].name = "A_".concat(myPStyles[i].name);   //Please change as per your requirement
    //myPStyles[i].name = "BBBBBB_".concat(myPStyles[i].name);
    Please use the below URL for more details.
    http://forums.adobe.com/message/4909340#4909340
    If my answers helps you, please provide "Helpful" or "Correct Answer" for me.
    Thanks
    Siraj

  • Batch: Open Bridge 'Stacks' as layers in PS CS5 + run action. Is this possible with script??

    I posted this topic a couple of days ago - I didn't know about this forum/group so the thread appears in Photoshop Scripting and Bridge Windows. I haven't found a solution on those forums - can any one here help?
    http://forums.adobe.com/thread/880777?tstart=0
    http://forums.adobe.com/thread/880779?tstart=0
    I would like to automate part of my workflow that involves opening stacked images (in Bridge CS5) as layers in Ps CS5 and running an PS action that composites the layers and processes the image. Something similar to 'Process Collection' in Bridge CS5 only with my own action instead of merge to HDR/Panorama.
    Apparently this is possible with Mac 'Automator' - is there anything I can do in Windows? I don't have any experience with writing scripts, but have friends that can help. Can someone tell me if its possible and point me in the right direction please?
    This needs to be a batch process. I know how to open images as layers from Bridge so that I can manually run the PS action - I would like to automatically process lots of images in this same way.
    To clarify, the script if possible will need to
    1) find first stack (in Bridge [in selected folder])
    2) open as layers in PS
    3) run PS action
    4) save and close (as psd preserving layers)
    5) find next stack in Bridge (selected folder) and repeat.
    By 'stack' I mean a set of similar files (for instance same scene -2EV, 0EV, +2EV)
    Bridge's 'Process Collection' feature is great because it very cleverly recognises similar images (I think you have to stack them first) opens them and either processes them into a hdr or panoramic image. Instead or hdr or pano, wouldn't it be great if you could run your own action.
    Bridge's Image Processor is fantastic at opening a batch of individual files and running your own processing action, but it won't open groups of images ('Stacks' or sets) as layers.
    What I need is basically a hybrid of the two.

    In case you miss my late append in the other thread you may want to look at the auto collection script that ships with the Bridge and use it as a base for what you want to do. You may also be able to automat the creation of your stacks if their time stamps are close. The Auto Collection Script night now does two types of stacks  HDR and Panoramas.  You may be able to modify it to do a third stack type. You stack type and use your stack processing process instead of mearge to HDR or PhotoMerge.
    From Bridge help:
    The Auto Collection CS5 script in Adobe Bridge assembles sets of images into stacks for processing as high dynamic range (HDR) or panoramic composites in Photoshop CS5. The script collects images into stacks based on capture time, exposure settings, and image alignment. Timestamps must be within 18 seconds for the Auto Collection script to process the photos. If exposure settings vary across the photos and content overlaps by more than 80%, the script interprets the photos as an HDR set. If exposure is constant and content overlaps by less than 80%, the script interprets the photos as being part of a panorama.
    Note: You must have Adobe Bridge with Photoshop CS5 for Auto Collection CS5 to be available.
    To enable the Auto Collection CS5 script, choose Edit > Preferences (Windows) or Adobe Bridge CS5.1 > Preferences (Mac OS).
    In the Startup Scripts panel, select Auto Collection CS5, and then click OK.
    Select a folder with the HDR or panoramic shots, and choose Stacks > Auto-Stack Panorama/HDR.
    Choose Tools > Photoshop > Process Collections In Photoshop to automatically merge them and see the result in Adobe Bridge.

  • Would like to automate open stacks as layers + run action. Possible with script??

    I would like to automate part of my workflow that involves opening stacked images as layers in Ps CS5 and running an PS action that composites the layers and processes the image. Something similar to 'Process Collection' in Bridge CS5 only with my own action instead of merge to HDR/Panorama.
    Apparently this is possible with Mac 'Automator' - is there anything I can do in Windows? I don't have any experience with writing scripts, but have friends that can help. Can someone tell me if its possible and point me in the right direction please?

    Sorry but a script can not access Lightroom so your first step isn't possible.
    Second step is Lightroom not Photoshop.
    Maybe something could be done if you could work out a Photoshop Only workflow.

  • Is printing possible with script after the document with a password to prevent printing??

    I saved a pdf with a password to prevent printing. When I open the pdf with Adobe Reader, I want print the document with automatic.
    is this possible?? I used a many kinds method, all the scripts were refused because security level.
    please give me a any hint...

    Why did you prevent printing when you want print the file? That make no sense.

  • If it is possible a scripting can making contents of a book with the correct page numbers?

    I was wondering if it is possible a scripting can making contents of a book with the correct page numbers.
    I know indesign has already a function that can making contents in a same file, as long as some paragraph styles were indicated to make the contents.
    But if the title on the master page, it doesn’t work.
    If it is possible to make it happen on a whole book, in spite of what I choosing title was on the master page?
    Can somebody help me?
    Thanks!

    I work on one book which has 40 topic that follow immediately, each topic has a title, socalled section headed. They were put on the master page. What I want is the section headed and the each topic's starting number to make a contents.
    Each time, I work on this kind of book, I have to copy them 40 times to make a contents page, and I have to writing down the each section's starting page number and then type in the contents.
    I was wondering if it is a function can help me and let me easily to make a contents.
    can somebody help me
    thanks!

  • Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore

    Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore that I did was in march and the latest backup was in may....the reason being is that there were app that i had downloaded that are in my most recent back-up, that were not in the backup I restored to. Is it possible to just restore one application ie)itunes?

    See this post.
    tt2

  • Is paragraph alignment possible in RH 6 HTML?

    Hi all,
    Most of the topics I've created include text boxes, tables, and screen shots - all of which I can set the size for best viewing. But so far I haven't been able to find a way to control the paragraph text so that it doesn't stretch beyond the boxes, tables, and images when accessing the help pages without the content pane (TOC) open or having to minimize the page size. I've tried using the margin ruler, the paragraph alignment, and the page setup function, but nothing seems to do the trick. What I'm aiming for is nicely alignment topic when opened as a single help page or as part of a manual w/TOC.
    I'd appreciate your input. Thanks!

    Hi there
    You are probably looking for something RoboHelp doesn't help you with easily.
    If you hand edit the HTML code, you can insert a DIV on the page to make it adhere to a specific width.
    Basically the HTML *MAY* look something like this:
    This may make the editor look a bit odd as things are now inside a dotted rectangle frame. But it should work.
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Is it possible to duplicate an item in the project panel with scripts?

    Hey  all, I'm trying to make a script that will duplicate an item in the project panel. I know you can duplicate an item in a comp, but I'd like to duplicate a project Item...app.project.item(2).duplicate();
    Something like that, is it possible with some other coding to do that?
    Thanks

    Dave, I'm trying to duplicate in a script running inside AE.  I guess I could try to do a system command to duplicate, but I'd really like to do it inside AE so I can keep track of the new layer.

  • [SOLVED] Switch x displays with script instead of ctrl-alt fx

    Hi, I am looking for a way to switch x displays on a computer without using the keyboard. Is this possible with a bash script of some sort?
    EDIT: I found chvt but that only works from a tty, running sh chvt X doesn't work from a terminal emulator.
    EDIT2: SOLVED: read this http://superuser.com/questions/69807/wh … ot-under-x
    Last edited by RiceKills (2010-10-30 18:27:56)

    chvt command maybe what you need.

  • PLEASE LET ME KNOW IF THIS IS POSSIBLE WITH FLUID GRID LAYOUT?

    This is an example of what I'm trying to do. Excel was the best way for me to provide a visual. Is this possible? Every time I try to place divs in a similar layout, the div will not take up multiple rows. For example div 4 would move down and where row 7 is would now be row 4. Div 2 would have also moved down because of 5. I have a large image that needs to be placed to the left of a header and vertical menu. I'm trying to keep the header and menu seperate and the image needs to be aligned to the top left of the text. I'm sorry that I'm overcomplicating this. I must admit it surprises me that the fluid grid appears to be dictated by rows. I'm wondering if for this particular design I should just stick to a table.

    I'm perplexing by your question.  How do you expect the divs to move in other resolutions?  For the question to be whether this is possible with a fluid grid there has to be some transformation between the layouts.  If you are just looking for a static layout, that is possible.  If the heights are to be fixed like that you could just specify the heights on the divs to make the height.  If the divs are moving down then add the attribute clear:none; to the div, in this case 2 and 4.  This will prevent the float from being cleared and pushing the element down.

  • New here... question to start off with

    Hi everyone...
    New to the forum and excited to learn some things with Dreamweaver.
    A question to start off with.... How does one program Dreamweaver so that it will automatically format in different browsers (sizes).  Is this even possible?
    cheers...
    twingi

    Read post #3 again... the part about 100%
    Also... lots of tutorial links
    As well as the links below - another way to learn (including anyone else's bad habits) is to find a page you like, and then tell your web browser to show you the code view for the page and/or do a "Save As" and save the page to your computer to then copy & paste code segments into your file (in IE click View at the top, select Source from the options)
    HTML and/or DW Tutorials, and other information links that I have saved
    http://validator.w3.org/
    http://www.visibone.com/
    http://www.w3schools.com/
    http://www.hotscripts.com/
    http://webdesignledger.com/
    http://www.projectseven.com/
    http://www.adobe.com/devnet/
    http://www.scriptarchive.com/
    http://www.htmldog.com/guides/
    http://www.htmlcodetutorial.com/
    http://alistapart.com/topics/code
    http://www.how-to-build-websites.com/
    http://css.maxdesign.com.au/floatutorial/
    Download User Guide as PDF for easy search
    http://www.adobe.com/support/documentation
    http://www.ianr.unl.edu/internet/mailto.html
    http://lynda.com/ Hours of videos. (must pay)
    http://apptools.com/examples/pagelayout101.php
    http://www.thesitewizard.com/archive/css.shtml
    http://www.projectseven.com/tutorials/index.htm
    If not PDF (link above) an online guide to read
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/
    Nate's Forms http://www.mindpalette.com/scripts/
    Customizing the layouts that come with CS3 (VIDEO)
    http://www.adobe.com/designcenter/video_workshop/?id=vid0155
    FormMail http://www.bebosoft.com/products/formstogo/index.php
    For those using MySQL - Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Community MX lessons http://www.communitymx.com/abstract.cfm?cid=3D074
    http://www.adobe.com/cfusion/designcenter/search.cfm?product=Dreamweaver&go=Go
    The Contact Form Solution Pack is only $29.99. To learn more, visit
    http://www.webassist.com/go/cfsp
    Web advisor extension to DW
    Date and Time through Javascript http://www.mediacollege.com/internet/javascript/date-time/

  • Technical question:  Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??

    Technical question:
    Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??
    Here's a little more information on what I am trying to do.
    I have a desktop computer with 4tb worth of pictures that has Lightroom and Photoshop on it. I also have a laptop with Photoshop and Lightroom. I would like to be able to edit those same pictures with their current edits that are currently on my desktop on my laptop. If this can be done, I'm sure I need to be on the same wifi network for my laptop to be able to access my desktop's photo library. I am technically savvy enough to map a network drive, but how do I get my two Lightroom catalogs to sync when I make a change on one of my computers? Would i be working only on one catalog? Or two separate catalogs that would need to be manually synced to the other computer? Would it be beneficial to put my lightroom catalog on something like dropbox?
    I'd appreciate any information or tutorials if someone knows how to do this.

    I do this by having my LR catalog and photos on an external drive that I swap between the two computers.  I am on Windows and have the same drive letter assigned to the drive on both computers.
    Because the photos are on a portable drive I back up the portable drive to another hard-drive every night or after important work, because portable drives are susceptible to damage or loss.

  • What driver or software patches do i need to install in my windows 7 laptop, in order for the laptop to capture Bluetooth messages, which is possible with window 8?

    Hi,
    i am connecting a Bluetooth device to my laptop. I notice that Message Analyzer could capture Bluetooth messages only if I am using windows 8? I am using window 7. What driver or software patches do i need to install in my windows 7 laptop, in order for
    the laptop to capture Bluetooth messages, which is possible with window 8?
    Also, i notice that using window 8, i am able to capture Bluetooth message but i am not able to display wireless perfromance statistics such as signal strength, throughput, etc? Is there a way for me to get such information.
    Please help.

    If you look at the link you sent me:Default Trace Scenarios
    http://msdn.microsoft.com/en-us/library/jj659262.aspx
    "Windows 8 Bluetooth (Windows 8/Windows Server 2012 or later) 
    Troubleshoot Bluetooth issues"
    So what about Windows 8 earlier? Not supported?
    My question: What driver or software patches do i need to install in my windows 7 laptop, in order for the laptop to capture Bluetooth messages, which is possible with window 8?

  • If firefox automatically updates my computer past 3.6 I'm inundated with Script Freezes..how do I stop new automatic updates?

    Everytime I'm automatically updated past 3.6 my computer is inundated with Script Freezes..especially on the email page of gmail.
    This has happened many many times. As far as I can determine these Script Freezes (Says: A script is attempting to write on this page.."Continue"..Stop Script etc) are coming from Internet Explorer (I'm not sure of this) and it's tricky to delete any elements of Internet Explorer. But at any rate my computer freezes up until the Script problem is settled..I check the don't ask me again block..but it does no good.
    My real question is: Since things work fine in 3.6...how can I avoid any automatic updates?
    Also, why isn't there a Timer Window (or a timer bar)for Firefox?...sometimes I have to wait 5 minutes for it to load! If there was a timer at least I'd know that something is happening and I'd be willing to wait. When it does take forever to load..it seems to help if I delete all Prefetch and temporary files.
    Is there a safe way of turning off Internet Explorer temporarily?
    Thanks for your help
    Matthew
    [email protected]

    I tried this today, and it is working now:
    Click Firefox > Options > Options > Advanced ... then Uncheck the option "Use hardware acceleration when available"

Maybe you are looking for

  • Mozilla runs only in protected Mode Error Reports

    ID: 4f3e605c-1c38-4b19-9997-427d12140808 Signature: igd10iumd32.dll@0x7fa17 Details Metadata Modules Raw Dump Extensions Signature igd10iumd32.dll@0x7fa17 More Reports Search UUID 4f3e605c-1c38-4b19-9997-427d12140808 Date Processed 2014-08-08 10:59:2

  • How can i control NI-6115 to collect data from 2 channels and save as 2 files?

    I want to program NI-6115 card to collect data from 2 channels and save the two data into two different filenames that i specified? How do i write in labview codes?

  • MR8M reversal

    Dear All, we have an issue concerning the entries from MR8M (cancelation of IV) ex: Miro is posted with exchange rate diff. Cr. Supplier Dr: GR/IR Dr: Account for realized gain or loss when cancelling the previous entry from MR8M the result is : Dr.

  • HT3258 can I revert back to mac os 10.6 after upgrading to 10.8?

    can I revert back to mac os 10.6 after upgrading to 10.8?

  • Replacement  function modules in ECC6

    Hi, We are working Upgrade project in Ecc6. We found that function module 1. TABLE_COMPRESS and                                                    2. STRING_MOVE_RIGHT                                                                                3.