Wrapping text around an image via the script

I am very new to scripting here, ID please be nice ;-) I can't get my head of text wrapping, an image placed above a block of text.

Here is my sample code:

myDocument = app.documents.add var (0);

myPage var = myDocument.pages.item (0);

monarticle var = myPage.place (file ("< filepath >"));

var myTextFrame = myDocument.pages.item (0);

var imgPlace = myTextFrame.place (file ("< filepath >"));

Image.textWrapPreferences = TextWrapSideOptions.BOTH_SIDES;

Where I'm wrong?

Thank you!

Oops. 'Image' is a built-in name, the name of the Image class: http://jongware.mit.edu/idcs6js/pc_Image.html!

You can never use built-in names for variables, just as you can't use ' var back = 1; ». I guess that's why Adobe own Introduction to Javascript (InDesign help |) Script) use it always 'my' prefix on all the variables.

Choose any other name of variable instead of 'Image' and it should do better (keep what said Jarek, impossible to check right now).

Tags: InDesign

Similar Questions

  • Wrap text around an image off the beaten path

    Is it possible to wrap text around an image that is not placed inside the text box? When a column of text image overlays only partially?

    Hi Sascha,

    You should be able to achieve the desired effect by placing the image inside the box and giving a compensation of the negative film.

    The picture will overlap with text partially and skin will still work.

    Abhishek (Adobe)

  • Block and wrap text around an image in the Strict

    horizontal spacing and vertical spacing and alignment are not allowed in Strict.  What is the alternative to the text wrap/block all about the image, please, anyone?

    More explicitly:

    IMG {}

    float: left; / * or right * /.

    margin-top: 6px;

    right margin: 12px;

    margin-bottom: 8px;

    margin-left: 0;

    / * shorthand for above margins: * /.

    / * margin: 6px 12px 8px 0; */

    }

    Hope that helps.

     --
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • rendering image via the script get me uknown messege

    Hi all 2, maybe someone knows and can help me, what means of alert message and why it showing on 2 of my 7 work computers (all PC's have after effects cs5 but why only on two display this message?), when I try to make the current image via my script. My script - rendered the current image in the png file (and at this point after effect a bug and adding numbers 00000 filename so I need to find my rendered file and fix bug of file name and import file back), so when I see this message my script does not work (AE render the file, but the incorrect file name and my script is unable to import it to AE)

    PS to make the current image I create my own preset (with hands) for the output module based on the png sequence

    error.PNG

    THX

    Hi guys, I understand, the problem in my script make part, first of all I have the code to save the current image

    myProj.renderQueue.item (1) .outputModule (1) mpfprojectdir\dev10\src\csharp\projectbase.file = File (DesktopPath + "\\temp\\" + "_" + myLayerName); and it gives me error, so I fixed this alert message by

    ("myProj.renderQueue.item (1) .outputModule (1) mpfprojectdir\dev10\src\csharp\projectbase.file = File(DesktopPath+"\\1111\\"+"ltp"+"_"+myLayerName+"[###].png ");

    [#] .png - it's a key, thx to all!

  • How I wrap text around an image?

    I love the last small images in my text but would like to have the text around them and make them anchored with the text.

    Double-click the picture that you inserted in your email to open the picture properties dialog box and click on the appearance tab. In the drop-down list labeled "Align text to Image", you can select how you want to wrap around the image of the text.

    If you insert a picture by using the Insert-> Image command is available in the menu bar and the toolbar in the composition window, this option will be available before the image is inserted.

  • How to wrap text around an image?

    I have placed the image in the text box, but can't get the text to wrap around the image. As can a new user of E10 someone point me in the right direction? Thank you

    Very nice - thanks v much!

  • Trying to wrap text around an image in Dreamweaver CC2015.

    If I click on an image of the property bar rises, but in older versions by clicking on an image shows the bar properties with additional choices: spacing vertically and horizontally and "Align" with text wrap as a choice. Is now gone?  I read the other posts, but they seem to require coding rather than this quick method in design mode.  Or am I missing something?  Thank you.

    Is now gone?

    Yes.  Panels that has promoted old coding methods have disappeared.

    Dreamweaver is now much more web standards aware helps you produce better code.

    Use CSS floats, margins, and padding on your image.

    .floatLt {

    float: left;

    Padding: 1%;

    margin: 2%;

    border: 1px solid #EEE;

    }

    describe it

    This text will wrap around the floating element. This text will wrap around the floating element. This text will wrap around the floating element. This text will wrap around the floating element. This text will wrap around the floating element. This text will wrap around the floating element.

    Nancy O.

  • Wrapping text around an Image

    smile; I read the serveral "Dreamweaver" manuals and more, and now I'm really confused. How can I wrap the text around the image? Can I apply a CSS in a basic HTML page? How can I make images and text even with each other?

    Thank you

    smile; I read the serveral "Dreamweaver" manuals and more, and now I'm really confused. How can I wrap the text around the image? Can I apply a CSS in a basic HTML page? How can I make images and text even with each other?

    Thank you

  • Wrap text around a table in the same period, possible?

    Is it possible to get the text to wrap around a table, without having to make the array in its own framework (as a separate object)? Of course the table would have its width less than the width of the text block, enough so that the text could flow into the empty space next to it (see photo).

    sample text wrap.jpg

    It is my intention to do them in the same frame so that she would follow the traffic whenever there are changes. I know that I can use the anchored object tool, but it has its limitations (which must be on the same page as - and - below the insertion point). When I do a report with sequential numbering - as in this case the notes, table and figures, etc. - and correctly generate a table of contents (to be in order) depends very much on the position of each element (even the location of the insertion points). If an item is in the same frame, or as a separate object, affects the sequence. Even notes must be in the same continuous framework to work correctly.

    From the point of view of InDesign, a table is just a text character, although it still occupies a full range in itself. You cannot add wrap at a table, only a framework containing.

  • I'm unable to wrap text around an image.

    I posted a typical page on our site with a photo, a title and some text.  I struggled for several days, trying to surround the text around the picture and leave a space between the picture and the text.  I have studied many books and tutorials on the css box model, but they are all so different in the words they use and the approach to teaching that my mind is in a fog swirl of conflicting information.

    Our site is at www.endangeredspecies.com.  There will be thousands of individual pages on different plants with this same format that will be accessible by various indices Hypertext references.

    You simply float your image left or right:

    IMG {}

    float: left;

    margin-right: 10px;

    margin-bottom: 5px;

    }

    F/m

  • Is it possible to wrap text around a picture in E-mail FF/Thunderbird?

    Is it possible to wrap text around an image during the composition of the email in Firefox / Thunderbird on Linux Mint OS?

    I don't know what Firefox has to do with the e-mail...

    In Thunderbird, if you dial using HTML and use Insert | Image, the appearance tab seems to offer text packaging options.

    If you don't see the Menu bar, hold down ALT, press v and under the toolbars ICT the menu bar check box.

    I have never used myself these packaging options, so I can't speak for how well they might work.

  • Could not find the wrapping of text around an image in Keynote

    I see post of 2007 where you can't wrap text around an image in Keynote. Is this always the case? Hope not... very disappointing if so.

    There is no tool to wrap text in Keynote. Text wrapping is a tool of print media to maximize space in the column in print, if that's what you try to do, use the Apple's Pages.

    Keynote is a presentation of screen based application, (slide show) so there is very little use for the text wrapping.

    You can do a work around, but it is not perfect:

    • Place the image on the slide

    • Place the two shapes on the slide, one for the area of text, image size
    • order click on the two forms;     to select both
    • Format > forms > subtract shapes;     will cut a hole in the greatest shape
    • Paste the text into the larger shape

    • format text

  • Wrapping text around the image in illustrator cs4

    I am trying to create a brochure with text around the image wrapping, I followed several tutorials online as http://Hotfile.com/DL/714028/a47ed1a/the.Lord.of.the.rings.conquest.Razor1911.part01.RA http://www.Tutorials-expert.com/tutorial/19302/Wrapping-Text-around-an-image-in-Illustrato and a few others, but I followed these instructions, and I don't see any effect. Since I'm new to illustrator, can someone point me in the direction of writing.

    Thank you.

    You must mark the thread has responded that it is a situation which, for some reason, through users, often even if it is covered in the tutorials.

    Answered no real need to designate a user as one who has answered the question mark just the thread. This problem comes up often, and it's always the same user error.

  • Cannot wrap text around object! AAAARRRRGGGGHHH!

    I am trying to wrap text around an image jpeg, but every time that nothing happens. I also noticed that whenever I have create a sublayer and attempt to place the derect under the jpeg format layer text is on, HAVE invariably creates a layer named "type" directly above the layer of jpeg. Should the two layers be selected before giving the command of film text object? Or another solution?

    This is the jpeg format that you apply dressing and you must have the type of area as well. You probably use typographic points.

    Cut the text from the text path, and then create a block of text to the width, you want text and paste the text know to place the block of text in box behind the jpeg.

    See all right.

    Here, there is no type nothing to do!

    Here the field type (text block) = magic

  • Wrap text around a flash object?

    Hi all. Having trouble wraping text around a small thumbnail in DW8 Viewer. Can it be done? I thought that it would be no different from wrapping text around an image. Please tell me if I'm missing something, thank you.

    Place your Flash object inside a floating division.
    http://ALT-Web.com/2-column-fixed-width-template.html

    See wrapping text around the left and right floating divisions.
    http://ALT-Web.com/CSS2-captions-on-floated-images.html

    -Nancy O.
    ALT-Web Design & Publishing
    www.Alt-Web.com

    "zsun01" wrote in message
    News:gcocos$39h$1@forums. Macromedia.com...
    > Hi all. Having trouble wraping text around a small thumbnail in DW8 Viewer.
    Peut
    > it do? I thought that it would be no different from wrapping text around
    one
    > image. Please tell me if I'm missing something, thank you.
    >

Maybe you are looking for

  • Can not turn on automatically updates.

    Automatic updates will not not turn on. I use Windows XP, SP3. I use the Micro Soft Security Essentials I goto the Security Center to turn on the automatic updates but it does not allow me to do. The light is red, not green. Any help?

  • my keyboard does not work, I use the pop-up keyboaed. When I go to the control panel and loo

    Sorry I donot hknow how backward "the HID keyboard device properties" to remove or to says me "windows cannot start this hardware device because its configuration in the registry information is incomplete or damaged. This has happened after a reboot

  • KEY LOCKED SYSTEM SHUTDOWN?

    Okay, I need help please! I was not able to load or else use my Sansa e200 for the past two weeks. My computer has recognized before and I went through all the tips troubleshooting without result. I don't know how to unlock and charge my Sansa also.

  • How to determine if the rank of the acquired list focus?

    Hi all I have ListField with custom reminder. When the user change focus by the movement of the navigation, drawListRow() is called several times - for each focus-changed event. How can I determine in the method drawListRow() if current rank on the F

  • How to fix my computer?

    A question very vague indeed. However, I can just imagine another way to formulate it. This computer is a Dell Inspiron I5 running on Windows 7 (can not be updated, see below) and is only around the age of 13 months. I never gave up, there is no phys