Possible to change the contents of text inside the group frame?

Hello world

I'm newbibe to Indesign forums.

I had grouped image placed on the rectangle frame and the text. now I need change content text frame using indesign Javascript

Possible to change the content of text inside the group frame... ?

-yajiv

Hello

Try the following lines.

main();

function main() {

    if  (app.documents.length != 0  &&  app.selection.length == 2 ) {
        if( app.selection[0].constructor.name == "Group" && app.selection[1].constructor.name == "Group" ) {
            var sel1 = app.selection[0];
            var graphics1 = sel1.allGraphics[0].itemLink;
            var text1 = sel1.textFrames[0].contents;

            var sel2 = app.selection[1];
            var graphics2 = sel2.allGraphics[0].itemLink;
            var text2 = sel2.textFrames[0].contents;

            sel1.textFrames[0].contents = text2;
            sel2.textFrames[0].contents = text1;

            var fP1 = File( graphics1.filePath );
            var fP2 = File( graphics2.filePath );

            graphics1.relink( fP2 );
            graphics2.relink( fP1 );
        } // if
        else {
            alert ( "Select 2 groups!" );
        } // else
    } // if
    else {
        alert ( "Wrong selection!" );
    } // else
} // main

Although it might work for you, it is probably not advisable, because if you apply other content on the chassis, you modify the content, but not the formatting. Even with the restoration of the links of the images.

So a better solution may be, separate frames, move them and group them back.

Tags: InDesign

Similar Questions

  • is it possible to change the color of the text background and foreground?

    is it possible to change the background and foreground color of the text on a simple two-color with Photoshop 6.0 jpg image?

    Yes, but given that the jpg file is flattened, you would have to make a selection of the text - the magic wand tool could work to do this, without seeing what you are working on. Then simply use fill to fill in desired fg or bg color.

  • Is it possible to change the formatting of all the text captions in a project?

    Hello.

    I am wanting to change the following formatting options on all text captions in my projects:

    Caption type

    Police

    Font size

    Font color

    Spacing of

    Is it possible to change this for all text captions, or do I have to change them individually? I tried to change the options in the style of the object manager, but I think that works only for when you create a new text caption, not for those that already exist.

    I use 7 Captivate.

    Thank you.

    Depends: you are using the default style for text captions? In this case, you can change the default style in the Style of the object manager and applied it to all legends.

    Or you can edit a text caption, and in its properties panel choose the option "Save changes to existing style" of the upper part of the menu right (see screenshot). Both methods will work if you did not override the default Style of a legend to these legends. ATTENTION: Quiz objects can use another style.

  • Is it possible to change the text in a smart object in illustrator?

    Is it possible to change the text in a smart object in illustrator? Thank you much for the help!

    And can anyone recommend educational resources for someone (me) who is a user HAVE ten years who need to work in PS for web models? Anything other than a basic PS tutorial. Something this specific task-oriented. I'm not a beginner PS - but especially used for the correction of photo so far.

    Truly - thank you! BTW - I'm in the Suite of 6 CS and CC will not be at my disposal.

    If you double-click on the smart object icon in the palette layers in Photoshop, it will open the original illustrator file in illustrator to be able to change it.

  • Possibility to change the color of the text in a text layer?

    Hello

    Is it possible to change the color value of a text via ExtendScript layer?  I scanned the documentation, but didn't notice anything that would allow me to access this property immediately.  Is this possible?  Otherwise, there is no work around?


    Thank you

    Arie

    Change the text color to Red:

    var app.project.activeItem = myComp;

    var myTextLayer = myComp.layer (1);

    var mySourceText = myTextLayer.property("ADBE_Text_Properties").property ("ADBE Text Document");

    var myTextDoc = mySourceText.value;

    myTextDoc.fillColor = [1, 0, 0];

    mySourceText.setValue (myTextDoc);

    Dan

  • It is possible to change the text in the admin console?

    I'm just curious... as someone who is trying to create a site of BC for a non-profit, is it at all possible to change the language or the language of the console administrator of BC? I think especially of the e-Commerce section.

    Thank you!

    Hello

    Not at this stage that the CRM admin cannot be customized yet.

    Only option we provide is the translation of language (Spanish, Japanese, Dutch, German, Swedish, French).

    Kind regards

    -Sidney

  • possible to change the font size of the bookmark toolsbar?

    possible to change the font size of the bookmark toolsbar?
    upgrade to firefox v22 and notice this bookmark toolsbar got bigger, some bookmark font cannot be displayed, it is normal? possible to change?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution.
    You can adjust the resolution of your screen.
    To change it follow these steps:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • Is it possible to change the ToolTips delay?

    Hello

    I often find the easiest way to distinguish it from the similar windows on the taskbar is by the complete path provided in the ToolTip. However, with the display of thumbnails enabled, you must first hovering over the taskbar button, there is a slight delay before the thumbnail appears, there is a longer delay before the ToolTip text appears. Once the thumbnail appears I can move the cursor on the other buttons bar tasks and their thumbnails appear instantly, but there are still delays for the ToolTip text. It becomes quite boring.

    Is it possible to change the deadlines so that a) the thumbnail appears a little faster, and b) the ToolTip appears much more quickly (preferably at the same time as the thumbnail)?

    There are other places in the UI I want tooltips to climb faster. For example in Explorer or on the desktop, in some views, the full name is too long to see if I need the ToolTip to read. Is it possible to change the tooltip thus delays?

    Personally, I prefer to have ToolTips set up instantly and maybe a way to make them disappear if they get in the way. In fact, what Windows needs is a status bar as at the bottom of most browser windows. Then, there would be a permanent area to display additional information without cluttering the user interface. Too bad Windows 7 doesn't have it.

    Thank you.

    OK, are you up to now?

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify]
    "BalloonTip' = dword:0000000 has

    Messages rating helps other users

    Mark L. Ferguson MS - MVP

  • It is possible to change the front in a textbox

    For Acrobat Reader.

    It is possible to change the front in a textbox control. I think that to change the color, size, and type. It seems that it is only possible to change the properties of the image/box. How can solve this problem - I think it was possible in older versions.

    I am looking forward to hear from you.

    Best

    Thomas

    Select the text and press ctrl-e.

  • Is it possible to change the head of HTML within the Muse tag?

    Hello

    is it possible to change the head of HTML within the Muse tag already? I found a topic where he said it would be supported in the future, which was 2012.

    I want to apply effects to text css like a shadow to a title.

    Hi Sabrina,

    Please refer to:How to use CSS in Muse?

    Kind regards

    Akshay

  • Is it possible to change the Red to black when you use drawing annotations?

    Drawing annotations are all red when I try circling a text. Is it possible to change the color to black?

    You can right click on a line and select Properties. You can usually get a Properties menu by using ctrl-E.

  • Is it possible to change the sensitivity of the mouse in the sierra?

    Is it possible to change the sensitivity of the mouse in the sierra?

    Open system preferences > mouse

    See: Customize your mouse > the basics of the Mac: set your preferences - Apple Support

  • Is it possible to change the playlist view back to display columns on iTunes?

    Is it possible to change the playlist view back to display the columns?

    View > view as > songs.

    TT2

  • Is it possible to change the external color of the iPhone?

    I wanted to know if its possible to change the external color of the iPhone. My mother bought a pink iPhone, but she could not get used to it, so she gave it to me, and I want to know if its possible to pass to a rose grey.

    Thank you.

    None

  • Is it possible to change the default channel strip settings?

    Is it possible to change the default channel strip without having to depend on models?

    For example, I always wish to have:

    • Follow the value Name = 3 lines instead of the default line 1.
    • 'Follow the icons' checkbox deselected
    • Always follow box color
    • Control surface Bars always deselected

    Stuff like that... This apples to any screen that is affected by the Configuration of channel strip window. (View mixer or titles).

    Thank you!

    Is it possible to change the default channel strip without having to depend on models?

    NO.

    But why not use a template? You use a template of this moment anyway, the default value of project. Just change and set the Start Action that you configured

    Fact

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

Maybe you are looking for

  • composite reflectivity loop (animated weather radar image) does not work in Firefox.

    Just switched from XP to Windows 7 Pro. Installed Firefox. When you try to view a loop of composite reflectivity (animated weather radar image) on the site of the National Weather Service, I get an error message that a plug-in is missing, but no furt

  • Driver problem Tuner TV PCI DVB-T/analog on Qosmio G30-126 & Win7 64 bit

    Hi all! I have red all messages on problem Toshiba PCI TV DVB-T/Analog hybrid Tuner on Toshiba Qosmio G30-126 and Windows 7 64-bit (x 64).Unfortunately, I did not find solution in messages. I have computers portable two Toshiba, former a Toshiba Qosm

  • Get the Data Type of queue

    I'm working my way through my first vi producer consumer and I have two questions. 1 I am the queue data x, y samples acceleration waveform type z. The code snippet shows how to set the data type in the queue to get. It is rather ugly and disturbing,

  • Detected CMOS battery failure

    If after system start it shows "the firmware has detected a CMOS battery failure. Press Enter to continue. "It happens every day when the computer is idle.  When the computer is used, no problem.  But I'm tired to reset the date/time and disconnect t

  • the Task Manager cpu fluctuating bad

    the Task Manager cpu fluctuating bad