How to cut a textframe and place it in the specific position in an another textframe?

I need to export to RTF. So I have to select the content of the textframe.

As you can see below,

first of all, I have to replace all the master page objects (like the task bar and the page number).

Second, then cut the two objects and paste them into the bodytext and set the anchor and position.

I have so many files to do from time to time.

pic1.jpg

So I write the code below (indesign cs 3 javescript, just trying to make a simple example):

var = app.documents jobbar [0] .pages [0] .textframe [0]

var pagnum = app.documents [0] .pages [0] .textframe [2]

var bodtex = app.documents [0] .pages [0] .textframe [1]

App.Cut (App.Select (jobbar))

bodtex.insertionPoints [0] .silence = app.paste)

App.Cut (App.Select (pagnum))

bodtex.insertionPoints [0] .silence = app.paste)

bodtex.textFrames [0].anchoredObjectSettings.anchoredPosition = AnchorPosition.ANCHORED

bodtex.textFrames [1].anchoredObjectSettings.anchoredPosition = AnchorPosition.ANCHORED

.....

It does not work.

I want to like this. The main problem is that I don't know how to put an object into the position of a textframe specfic.

pic2.jpg

Thanks in advance.

Ah, you want to create an anchored object (or an inserted object).

Refer to the instructions on the CS5 Scripting Guide p.89.

You will need to create a new image with bodtex.insertionPoints [0].textFrames.add () and then manipulate the properties. You may or may not have some success with the .properties property.

I can't see why you want to use the selection. It's always bad, but it can be easier.

app.select(jobbar);
app.cut();
app.select(bodtex.insertionPoints[0]);
app.paste();

But good scripts do not change the selection. Which should be reserved for interactive works.

Tags: InDesign

Similar Questions

  • How do I enter a publication of a folder and place it in the active model?

    I have an alphabetical list of comps inside a folder. I need to someone (at random) and place it in the active model (instead of just drag / move, I need to do this via a script)... Is there a method for placing a model in the active model?

    Here's a basic example. The first element in your project Panel is a model, the second is a folder. In the folder are a few other compositions.

    mainComp var = app.project.item (1);

    var app.project.item = folder (2);

    var randomNum = Math.floor (Math.random () * folder.numItems) + 1;

    mainComp.layers.add (folder.item (randomNum));

  • How can I disable People and Places in Photos.app@iOS10?

    I frequently get photos under NDA contract, not allowing any electronic assessment content photo due to the protection of data. Thus our admin has stopped any update of iOS10, because the new Photos.app of iOS10 seems to have no switch to disable extraction faces to the 'People' file or folder locations "places".

    How can I disable these processes demons or can be sure no processing happens on photos?

    Thanks for your help maintain our aircraft delivered by Apple and avoid spending somewhere else!

    Analysis of face detection is automatic and cannot be disabled.

    http://help.Apple.com/iPhone/10/#/iph9c7ee918c

    Photos scans your library of photos for the faces of the people and adds faces more frequently found in the album of the people. You can assign names to the discoveries of Photos of people, add people appear less frequently, people mark as Favorites and discovers memories that contain specific people. The more photos you have, more the first scan takes.

    You can only hide the detected people and refrain from naming people.

    The album places creates collections of photos and videos based on the place where they were taken.

    This example uses the photos embedded GPS tags. You would have to strip the EXIF in the photos tbefore tags you import them to avoid this problem.

  • How to merge multiple images into a single document and place them on the bottom

    I am trying to merge multiple images in a single document and arrange them on this document and save it.  Is it still possible?  There are five black and white drawings that I've resized at all have the same size.  Tutorials that I looked at, but it seems that everyone has another way to do this and all are very confusing.  Thanks for your help.

    It is not surprising that "everyone has a different way to do this." In Photoshop that is common. Try this:

    1. open a new file large enough to accommodate five drawings.

    2. open each design, click on it in the layers panel and drag and drop it in the layers panel to the new file.

    3. Repeat until all are in the new file

    4. use the move tool to reposition. (They are on separate layers)

    5 flatten the file if you wish (but save a version not flattened for future editing)

  • How to extract 1 ASA and put them in the new table

    Hello

    Can someone tell me how to extract a table and put in the new table. (eg. I have a table with no 1 to 1000, I would extract only 1, 30, 60, 90,...)  ?

    Please advise me.

    Thank you

    concerning


  • How to copy phone numbers and paste them into the Dialer?

    Hello everyone!

    I posed in the title, how can you copy phone numbers and paste them into the Dialer to make calls?

    Thank you!

    I can't send a report - I am a normal user like you but I was help other owners for awhile better as I can - to contact Sony care use this link http://www.sonymobile.com/global-en/support/contact-us/

  • How to use "Sélective" and "Color range" in the edition of video using Photoshop CC

    0 down vote favorite

    I am very familiar in the use of "Sélective" and "Color range" on the image, but not on video. I have a video with a few yellow flowers moving because of the wind. I want to make this black and white video and change the yellow color of the flowers in red. I can manage to do everything except to change the yellow color in red. It is very simple on the image editing because I used to use "range of colors" to have the mask that contains all the yellow and then apply a hue/saturation layer on this mask. If I want to use the same logic on a video, I should have a layer to "color range" which create a mask dynamically on all video frames but I don't know how to do in Photoshop CC and even if it is possible. Can someone help me? Is there a simple way to do it? Thank you.

    Best done in Adobe After Effects

  • How to install Lightroom 6 and active by using the serial number as I am a subscriber of Adobe CC?

    I'am an Adobe CC for Subscriber photographer and I have enabled the new computer Lightroom CC on my desk and one of my laptops. Yesterday, I buy a serial number Lightroom 6 of the purchase of Leica products.


    When I install lightroom 6 on my laptop to another, the installer asked me to connect using my Adobe which grouped my subscription ID. I couldn't find a place to enter the serial number and after that I connected, it is activated as Lightroom CC but not Lightroom 6.

    Does that help? Serialiser Lightroom trial to activate like Lightroom 6 CC

  • Search the text of paragraph style and place them in the new text block with width 50mm

    Hello

    I'm looking for voor a paragraph to find script dat styles and place them in a new text block with width 50 mm.

    Is there a solution?

    Kind regards

    Patrick

    Width: options General of the frame of the text, GBA: fixed width, then 50mm width

    Height: automatic block text size options

    (These two in the dialog box object styles)

  • How to cut a line with a rectangle using the Pathfinder

    I'm a complete newb in artificial intelligence (several years in Ps).

    I'm trying to cut (delete) a rectangular section of a grid which consists of several lines. I get the message, "the filter yielded no results. Please select two paths that intersect. »

    In its simplest form, I have a line of path (a path) and a rectangle filled (also a path). The rectangle is on top of the line.

    image1.gif

    I select both objects and choose less first plan in the Pathfinder palette.

    image2.gif

    And I get the message "the filter yielded no results. Please select two paths that intersect. "I tried all the options in the pane of Pathfinder.

    I want to do is to have the section of the line which is covered by the deleted rectangle, so I'd end up with two lines that looked like this:

    image4.gif

    If the rectangle overlapped the end of the line, I would that the section where they overlap deleted, and I'd end up with a single line.

    I'm sure I'm doing something wrong, but I have watched several videos on the Pathfinder, read a bunch of posts, and I'm still distraught.

    Thank you!

    It is not practical to change the lines into thin rectangles or cleck on each other by using the form builder.

    you don't have click on all of them, select your lines + the rectangle and Alt + click - drag the rectangle (from top down in your example) and everything will be gone at once.

  • My VISA card has been cancelled. How can I pay Adobe and continue you use the software CC?

    Your credit card may be cancelled cause of lost or stolen?

    For me, it was just a mistake of my Bank... Well Yes, it can Alosso happen.

    Here's the point: my credit card is unsueable so Adobe can't receive money, and I need more two weeks to receive another card.

    So, is there a way I pay Adobe (maybe the transfer) and continue you use the software great CC?

    Thank you!

    Arthur

    Hello

    I see that you have an adobe under the same email account as with the forums.

    I would go you through the link below for more information billing, please go through the last segment that reads: restart an inactive subscription

    Renew, restart, or extend your Adobe Creative Cloud membership

    Hope this helps!

  • How to create a class and a pointer to the Panel

    Hi all

    I'm new to Flex.  I created a dynamic group that has three children, added to it. The three children are Hbox and Vbox or an Hbox. The first Hbox with a label that should be updated every minute. I tried using getChildrenAt and it works and it seems .as Hack I'm doing like getChildrenAt (0) as Hbox, I have more than one group of experts and all the Panel must be updated values. So is it possible. I could create a class and has a pointer on the Panel and a pointer to the label, which will be called every minute and on the change of the label in the front of this update

    Thanks in advance

    Barro

    OK yes I think I understand now look to examples.  First heres my custom panel ELEMENT.

    package

    {

    Import mx.containers.Panel;

    Import mx.controls.Label;

    SerializableAttribute public class MyPanel extends Panel

    {

    private var _labelValue:String

    private var labelSet:Boolean;

    private var myLabel:Label;

    public void MyPanel()

    {

    Super();

    }

    public function set {labelValue(value:String):void}

    _labelValue = value;

    labelSet = true;

    invalidateProperties();

    invalidateSize();

    }

    public function get labelValue (): String {}

    Return _labelValue;

    }

    override protected function createChildren() (): void {}

    super.createChildren ();

    myLabel = new Sun;

    addChild (myLabel);

    }

    override protected function commitProperties (): void {}

    super.commitProperties ();

    If {(labelSet)

    MyLabel.set_Text = _labelValue;

    labelSet = false;

    }

    }

    }

    }

    Pretty basic it creates a tag in the Panel.  Opinion, he still has the labelValue public property which, when set, sets the text in the label.

    Now for the main application

    <>

    "xmlns:MX ="http://www.adobe.com/2006/mxml"

    Layout = "vertical" width = "100%" height = "100%".

    creationComplete = "createPanels ()" > "

    Used to store references to the panels when you create

    private var panelReferences:Array;

    My replacement for xml, but will work the same way.

    private var myData:Array = new Array)

    {panelName: "Group 1"},

    {panelName: "group 2"},

    ({panelName: "Group 3"});

    Look in the table (your XML and create panels

    private function createPanels (): void {}

    panelReferences = new Array();

    Create panesl and add on demand

    for (var i: int = 0; i

    var mPanel:MyPanel = new MyPanel();

    mPanel.labelValue = myData [i] .panelName;

    mPanel.width = 100;

    mPanel.height = 70;

    Add the panels also in the table of references

    panelReferences.push (mPanel);

    addChild (mPanel);

    }

    }

    private function changePanelHandler (): void {}

    Change the label of panels in the panelReferences table.

    Target group by using the index number

    panelReferences [ns.value] .labelValue = newLabel.text;

    }

    ]]>

    It loops through the data in the table that is the source for the panels.  As he does and creates a new Panel, it adds to the application, but also the reference to the panelReferences table.  Now in the demo app every time you want to set the value, you just do it on the reference in the references table and so it's a pointer property labelValue Panel Gets the value, and then updates the text in the Panel.

    I think that this covers what you want.

    With regard to the interfaces.  Tell everyone your signs accepts different types of data (they are all channels) and implemented the data in different ways.  Her you would use one interface.  This would ensure all panels used consistantly Sami methods, but might implement these different ways.

    I hope this helps

    Andrew

  • Why when using Microsoft Works and type the letters my cursor suddenly disappears and I type at the end or middle of another sentence?

    I was typing a letter when suddenly I hit in the middle of another paragraph (just did as I was typing this question!), why and when is it fixed? I asked the same question before and said "we are working on that." Well, FIX it!

    Hi anneemerson,

    1 are you facing this issue only when you use Microsoft works or with other applications too?

    2. you are using a laptop or a desktop computer?

    3. you are using a wired mouse / without wire/USB/PS2?

    4. have you tried to update the drivers for the mouse?

    You can try to reduce speed and other options for the mouse pointer or the keyboard.

    For more information about changing the mouse pointer settings, please visit the below given link:

    Change the settings of the mouse

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-mouse-settings

    If the problem only occurs with works, you must validate your request in the forum Office for assistance:

    http://answers.Microsoft.com/en-us/Office

    Hope this information is useful.

  • How to move an application from a mac on the DPS App generator on another mac

    When I try to download the Developer application, after adding new UDIDs for the certificate configuration, I get an error indicating that the application was built on another machine. Everything works fine once completed the original Mac I did build on. (This was created on a machine "freelance design" and it must now pass to the machine of the company. I tried to delete the app and start again, Ute the "Delete" option is grayed out. Using simple editing application.

    If you are a subscriber to creative cloud, you must have installed InDesign on the new Mac. Then you click "Create App" for Panel Builder Folio in InDesign on the new Mac. Who will launch DPS App Builder and integrate the folio in your application. Bottomline is you need to do this procedure on the new Mac.

    If you bought however DPS simple editing ($395) you can export the Folio of the producer Folio and then import the folio in DPS App Builder and continue buliding the App.

    I can remove the application for you, send me your DPS App Builder id and the name of the application via private Message.

  • How to take an extracted image and place it in the original image?

    Hey,.

    First of all, do not know if this is the right forum, but I can't find a bulletin board for NI Vision issues.

    Here's what I do.  To save time in the inspection process, I extracted my original image inspected a subimage.  I used this subimage of threshold to a very low threshold, which is where I get my time saving, but now I need to back under the image in the original image to the same place (just to put them in a viewer and make customers happy).  How can I do?

    Thank you

    Hey,.

    You can use IMAQ ImageToImage:

    Andrey.

Maybe you are looking for

  • Cannot see/Run JCarousel with FireFox

    Cannot see/run JCarousel with Firefox. I am able to see the main image and the images over the primary image line; but the javascript code which changes at each successive image does not work. I can't run any JCarousel with FireFox. National Geograph

  • Problem bluetooth L412

    Hey,. I have a laptop L412 (4403 product version - 38G) running with WIN7. As well the producer's Web pages and pages of company that I bought in Europe, indicate that the game contains of bluetooth device. However, this device is not considered in t

  • Files not found when I run autorun

    I used autorun and I see there are a lot of entries that say file not found. Should I remove them? It would make my computer run better?  IAM using xp home edition. Thank you!

  • Temporary files cleaning disc

    Hello I just ran the disc cleaner after using my computer for a few years. The thing is my temporary files proves to be 273 GB. Check the forums I have not seen a number of as much so I'm just curious to know if I should remove it or not? Thank you

  • Fault of sync blackBerry Smartphones

    Sync my Torch 9800 has always worked for me, until today. It goes through all the motions, but stops with a message 'Conversion data BlackBerry calendar' (new line) 'read 3450 records. ' I rebooted the PC and the phone. Office software is version 7.1