Assign text to a text frame Indesign CS4 JC

Hi,
I have a little challenge. I assigned text to a text frame many times, but the line wouldn't work now. Could you help me with it:
try{
var myNumber = app.activeDocument.selection[0];
if (myNumber instanceof Rectangle){
    myNumber.fillColor = "White";
catch (e){
alert ("Please create and select Rectangle");
exit();
myNumber.contentType = ContentType.TEXT_TYPE;
//myNumber = String ();
myNumber.contents = "mamma";
It wouldn't input my value into the frame (the pink line).
Thank you very much for your help.
Yulia

//Try this
if(app.selection.length>0){
    var myNumber = app.selection[0];
    try{
        if (myNumber instanceof Rectangle){
            myNumber.fillColor = "Paper";
    catch (e){
        alert ("Please create and select Rectangle");
        exit();
    myNumber.contentType = 1952412773;
    //Seems to have lost the reference to the Rectangle
    app.selection[0].texts[0].contents = "Test";
} else {
    alert("No items selected");

Similar Messages

  • How do I unthread text frames in CS4 InDesign Mac?

    I've looked everywhere and tried what I found in Adobe help. I can't FOR THE LIFE OF ME figure out how to unthread text frames in InDesign CS4 [Mac].
    Please help. I know it must be simple.
    Thank you,
    Margot

    Run the SplitStory scipt thats in the samples in the scripts panel.
    A waord of caution, though. Splitting a threaded story caused ID to treat the text at the top of each frame as a new paragraph, even if it was caninued from a previous frame. This can result in unwanted changes like an indent, if such is called for in the paragraph style, or an extra number or bullet item in a list.

  • Urgent - help with Text direction in InDesign CS4

    Hello,
    I use InDesign CS4 on Windows 7. It's a standard version (without options for right-to-left languages).
    Whenever I make a new text frame, it seems to have a right-to-left "logic" of the text. The text types left to right, but the period in the end would go all the way right.
    It also mixes up tabs. It looks like this:
    Instead of:
    Usually I get around it by pasting another correctly formatted text-frame or text, and it works.
    Now I'm trying to create a new document with master frame (in order to be able to easily change the layout successively of a many-paged document), where I need to insert existing (formatted) text. But this text take this "right to left logic", whether I past the text, or even a whole text frame.
    I could find nothing in the character/paragraph options to get rid of this.
    I would greatly appreciate if you could help me.
    with respect,
    Jerusalem Nun.

    This behaviour is normal. Changing the default property of any style, when no document is open, changes the style for every new document, but not for existing document.
    Take a look what is your basic style where all other styles are build up on it, in your case, go to the paragraph style and look what is the basic style which was used.
    If the default style was used (it is the one in brackets), you have always a problem. You should not use it in any case.
    Because you don't have a ME version of InDesign you can't change direction directly, but you can create a new document with the default settings and the same paragraph (and character, table and cell styles) in a new document without RTL styles. Save this document, no content is required.
    Go to the 'infected' document, open the paragraph style panel and in the panel menu take "Load all text styles", select the new document and overwrite with the incoming styles.
    If necessary you might repeat it with the Table, Cell, Character and Object Styles, as all of them have some kind of direction settings.
    I don't know how good your styles were created, you have to adjust your document. And I would strongly recommend—I repeat—I strongly recommend to work always with styles.

  • Text wrap type syntax is not supported in Indesign CS4

    Dear all,
    Text wrap type syntax is not supported in Indesign CS4. How to set the text wrap type in indesign CS4

    Hey!
    app.selection[0].textWrapPreferences.textWrapMode = TextWrapModes.CONTOUR;
    TextWrapModes.BOUNDING_BOX_TEXT_WRAP
    Wraps text around the object's bounding box.
    1651729523 = 'bsds'
    TextWrapModes.CONTOUR
    Wraps text around the object following the specified contour options.
    1835233134 = 'mcon'
    TextWrapModes.JUMP_OBJECT_TEXT_WRAP
    Forces text to jump above or below the object, so that no text appears on  the object's right or left.
    1650552420 = 'band'
    TextWrapModes.NEXT_COLUMN_TEXT_WRAP
    Forces text to jump to the next available column.
    1853384306 = 'nxfr'
    TextWrapModes.NONE
    No text wrap.
    1852796517 = 'none'
    tomaxxi

  • Image text is missing in InDesign CS4

    Hi everybody,
    I am using InDesign CS4 with MAC OS X 10.5.8. I encountered a problem that the Text is missing in the eps image, when imported on InDesign document. Refer below screenshot.
    I have used “Times New Roman” Type1 font in InDesign document. And for images I have used the same “Times New Roman” as OTF font. Refer below screenshots.
    Type 1 fonts used in InDesign:
    Open Type Font used in Images:
    Here, I caught one more finding. If I save the image as Adobe Postscript as “Language Level 2”, I don’t have any text missing issue in InDesign document. But, if I save the image as “Language Level 3”, I found this missing text issue in the document. Refer below screenshots.
    Could anyone hlep me what the exact issue. Any help is much appreciated!!

    Yes Bob. This new thread was raised by me to explain the issue in detail.
    Further to my analysis, I found that when I load the job fonts in “Applications/Adobe InDesign CS5/Fonts”, we got this text missing issue. And the same job fonts, when I load in “Users/<user_name>/Library/Fonts”, it showing correct.
    Any thoughts?

  • Copying and pasting Arabic text in InDesign CS4 ME

    We have an arabic document in pdf and word formats and we have InDesign CS4 ME and we are trying to copy and paste text from the pdf/word document but the font isn't transferring, there is nothing only boxes. We have turned on the arabic keyboard and that didnt help either. Working on a mac.
    Can anyone help us? What is the solution?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    We have turned on the arabic keyboard and that didnt help either.
    Well, why should it. Unless you are typing Arabic, that won't do anything at all. Copy-and-paste is not typing.
    If copy-and-paste does not copy the font along so you get the pinky squares in InDesign, it only means that your default InDesign font does not support those characters. Select your text and then choose another font -- one you are sure of contains Arabic.
    If you still get pink squares, it's more likely the text in the PDF is not encoded properly, and in that case no-one can't help you -- but it ought to work directly from Word.

  • Indesign CS4 freezes when copying text to Word 2007

    I have a user that copies text from Indesign CS4 to Word 2007 documents.  She has Word 2007 open, then opens an InDesign file and copies the text.  She then clicks on the Word document and pastes the copied text.
    She is unable to go back to the Indesign file.  Clicking on InDesign on the toolbar does not activate the InDesign window.  The only open she has is to right-click and close InDesign.
    She has been doing this without any problems until approximately three weeks ago.
    Is this a known problem?  What is causing the conflict?

    The OS is XP SP3.  We are using Adobe Type Manager with Adobe fonts.  The only other application running was Outlook 2007.
    The user is out today but I will check if Alt Tab will cycle back.

  • Maintaining Text Formatting from Indesign CS4 to Illustrator CS4

    Hey folks,
    I'm trying to transfer copy a section of text with bullets from InDesign CS4 back into Illustrator CS4.  When I copy it over to Illustrator, I lose my bullets.  I know I could do this in CS3 and maintain the bullets, but the approach I used in CS3 doesn't work for CS4.
    Anyone know how to pull this off without me having to go into Illustrator and kluge together some bullets from scratch?
    Thanks!
    -Dusty.

    Thanks for the response Bob.
    How do I convert my Indesign bullets to text, or are you saying I need to create them as Wingdings or somesuch and not as actual bullets?
    The bullets are the main issue, but my formatted text isn't transferring either.  The text I paste from Indesign to Illustrator removes the formatting I had in Indesign (e.g., font-family, size, etc.)
    Thanks,
    -Dusty.

  • AS: InDesign CS4: contents only returns displayed text

    Hello,
    I realize that the function "contents" returns only the text displayed within the text frame.
    If the text exceeds the frame (because the frame is too small), the text that exceeds is not included in the text returned by contents of text frame MyFrame .
    How to get all the text of a text frame, including that which is not displayed?
    Thanks.
    Thomas

    hi
    TextFrame.Contents return only what is in TextFrame - if you want to get all text - you need to refer to .ParentStory, in VBS you need to write something like this:
    myTextContents = myTextFrame.ParentStory.Contents
    robin
    www.adobescripts.co.uk

  • Applescript - trying to horizontally align all the text in a text frame

    I've tried the following snippet along with several others:
    tell application "Adobe InDesign CS5.5"
              tell the active document
                        set Text_Frame to the text frame "PH"
                        tell Text_Frame
                                  set theLines to every line
                                  if (theTextPos = "B") then
                                            tell theLines to set justification to left align
                                  else
                                            tell theLines to set justification to center align
                                  end if
                        end tell
              end tell
    end tell
    Throws errors about setting classes.
    ie
    error "Can’t set «class paln» of {\"MISSOULA COMMUNITY PHYSICIANS
    \", \"CENTER NO. 2
    \", \"CONDOMINIUM ASSOCIATION
    \", \"2827 FORT MISSOULA ROAD
    \", \"MISSOULA, MT 59804
    \"} to «constant mAOHcent»." number -10006 from «class paln» of {"MISSOULA COMMUNITY PHYSICIANS
    ", "CENTER NO. 2
    ", "CONDOMINIUM ASSOCIATION
    ", "2827 FORT MISSOULA ROAD
    ", "MISSOULA, MT 59804
    All I'm trying to do is center the text in a text frame if a condition is met, else left align it if another condition is met.
    Any suggestions woudl be appreciated.

    Don't get the lines first:
                                  if (theTextPos = "B") then
                                            set justification of every line to left align
                                  else
                                            set justification of every line to center align
                                  end if

  • Text is not copying from InDesign to any other application

    Hi.
    I'm not able to copy the content from inDesign CS2 to any other application (textEdit, MS-word etc) even I'm fail to import the doc file in to inDesign, while placing the document file in inDesign it keeps the document file inactive.
    In past everything was going good but from last months onward I'm facing this problem. Could anybody please help me to resolve, I even re-install the application again.
    Thanks in advance for the kind help.
    Kind regards,
    Anil Yadav

    Use T.Code VOTXN"
    Choose on Billing document - Header.
    Click on Change button.
    Select your text procedure.
    You can know your procedure by clicking on the tab Text procedure assignment.
    Click on Text ID's in Textprocedure.
    Select your text id.Check the tick mark under "Refer/Duplicate" field.
    And also check your access seqence
    For understanding/reference, kindly refer following SDN thread
    - Text Determination  Procedure  from Sales order to Delivery ,&Billing
    - Re: Copying Text from Sales to Sales Document
    Thanks & Regards
    JP

  • Kannada Language Text not displaying correctly in Indesign

    Hi,
    I am working on Indesign CS6, Windows operating system
    I am having a problem in Indian language kannada, some of the letters are not correctly being shown in Indesign but the same thing in microsoft office 2007 is being shown correctly i have attached the sample documents for Indesign and office 2007 with the kannada language font.
    These fonts works correctly in other text editors but not in indesign
    Even I have selected the adobe world ready paragraph composer, but the result is same letters are displayed correctly
    https://www.sendspace.com/file/bdbt99

    @Joel – my guess here is it should look like this:
    Just opened the provided docx file in TextEdit app without installing the ttf font.
    The screenshot is showing a substitute font in TextEdit.
    InDesign (with the right font installed SHREE0850.TTF) is showing 4 characters (or glyphs) for the contents of the first selectable "entity":
    And also 4 charcaters (or glyphs) for the contents of the second "entity":
    Unfortunately not all Unicode codes are visible in the Info panel. And that entity seems to be one "word". Don't know, if using the term "word" here makes any sense.
    I wanted to know, what's going on and duplicated every single "character" of the two "words" or "entities" to a different text frame:
    Still don't know what's going wrong, but maybe you can make something out of this.
    How did I duplicated the single characters? By scripting in ExtendScript/JavaScript. I selected one "entity" (is it a word?) and ran the following script:
    var myDoc = app.documents[0];
    var mySelChars = app.selection[0].characters.everyItem().getElements();
    for(var n=0;n<mySelChars.length;n++){
        mySelChars[n].duplicate(
            LocationOptions.AT_BEGINNING,
            myDoc.pages[0].
            textFrames.add({
                geometricBounds:[0,0,"50mm","60mm"]
            insertionPoints[0]
    Uwe

  • Untread Text Frames without losing text in the second frame

    I probably not gonna use the right terms to express my question because I don't have an english version of ID. I'm sorry for that.
    If you, for example, import a text document into your column-based layout, you are able to automate the text flow and it will flow into the columns. At the end of each frame there's a text-handler (threading text) that shows you where the text continues in the next frame.
    I wanna know if there's a possibility to unthread text AND leave the text into the first column and the rest of the text into the next column WITHOUT being connected like before. If I try this I get a red plus-sign at the end of the first frame showing me there more text and the next frame ends up without text.
    I can cut the text from behind the plus-sign and paste it into the next frame, okay. But there's something in my memory telling me it was already possible with Pagemaker to simply disconnect frames and leave the text intact.
    I hope somebody understands my question?

    Salah Fadlabi wrote:
    Try to open Object style with no document open, double click on none then close and open indesign. Every frame after this process will be without border.
    This is only correct for new created document, not for existing ones. If the problem existis in an existing document you have to change the default style with no object selected.
    I would strongly recommend to create its own basic styles for each category and load them into the several style panels to have always styles with the same name in every document which makes exchange of items easier.
    Default Object styles are those with the small rectangle graphic at the right. The one with the T ist for Text frames, the one without T for Image Frames.

  • Lining up text in linking text frames

    I've inherited a document design from an agency that my client sometimes uses - the client can't get their hands on the original files so I've recreated from a PDF.  I can't replicate how they make text line up across a page through linking text frames.
    The majority of their text frames have VertJustification set to Bottom, so I'm setting that as Default for my text frames.  But when I put dummy text in to my frames, I get very bad alignment of lines - especially at the top - when there is a different number of paras in each frame.
    Design agency PDF http://dl.dropbox.com/u/4460087/designagencytext.png
    My InDesign setup http://dl.dropbox.com/u/4460087/mytextsetup.png
    Current text
    9pt text
    14pt leading
    2mm (5.9pt) space after each para
    Given their text set up - especially the 2mm space after each para - they must be doing some adjustment and balancing after the text is added.  I'm just not sure how.
    Any clues??

    Assumption simply based on the fact that they seem to line up more often at the bottom through 80 pages of this stuff rather than at the top.
    But I think you've hit the nail on the head for me.  Setting my frames VertJust to 'Justify' helps me do replicate their style quite easily.
    And agreed, I also think the visual distraction of lines not lining up across columns is worse than having columns line up at the bottom.
    Thanks for the help.

  • Can't See Text or Select Text Frame

    I'm formatting a book in InDesign. On one of my two-page spreads, the text and its text frames have disappeared. I can see and select these objects in the Layers panel, so I can verify that the text frames are still there and are positioned correctly on the pages... but on the spread itself, I'm unable to see the text or click the frames to select anything. The rest of the pages in the book look fine...

    This is after having right-clicked on those objects in the layers panel and choosing "Select Item(s)" ... if I were to go over now and click inside one of the text frames in the spread, it would disappear, leaving me with only the pink-purple page margin lines directly beneath the text frame's borders.

Maybe you are looking for

  • While raising Leave Request on ESS: getting warning message displayed

    Hi All, When i am trying to raise a leave request from ESS i am getting the warning message displayed on the page  as follows: "Customizing for employee 00001153 does not exist" I want this message to be removed. Is this problem from R/3 end or any c

  • Making a Form to send to my email address

    Hey, I have no idea how to use scripts or what they mean. All im trying to do it make up a form with Name,email address and tick boxes as a whole form to be sent to my email address. Ive read in the other forms about how to do it but since i don't un

  • I can't send SMS text from iPad 4 w/ cellular, no option to add or turn off/on

    I can no longer send SMS text with IPad 4 w/ cellular. There is no option in settings-messages to turn on SMS like on iphone5. Everything is trying to be sent iMessage which fails when sending text to non apple users. This change occurred after last

  • VBS Script to update Acrobat via SCCM (SMS)

    I posted this on the wrong forum so I was sent over here... Good day everyone. So I found the following script and have tested it manually on a computer of computers, but somewhat failes via SCCM: Dim objShell, RegLocate Set objShell = WScript.Create

  • HDV, AVCHD or What?

    Well, it's July 2009. Assuming you have a powerful enough computer, does PPro CS4 easily support AVCHD? Or should I only look at HDV cameras?