How to tag images locked position

In Indesign CS 3 and CS 4, when a picture was locked, position I couldn't use the service tag on the image Frame.

Could not change the position of the element in the structure the locked position images window...

Was this something new in CS3 and CS4? How disable/overcome this restriction?

Can someone please advise... Thanks a lot.

Hi eboda_snaf,

It is not clear from your posts, it is a question of script, but I will respond as if it was. Review the Scripting Guide MarkingUpGraphics.jsx script. We can show your problem by making a few changes to the script. Find the line (in the function of mySnippet):

var myGraphic = myDocument.pages.item (0).pageItems.item (0).graphics.item (0);

Now add this line following the line above:

myGraphic.parent.locked = true;

Run the script, and you'll see the error message indicates that InDesign cannot mark the chart because it is locked.

Now, add the following lines below the threshold of what we just added:

var myRestoreLock = false;

if(myGraphic.parent.Locked == true) {}
myGraphic.parent.locked = false;
myRestoreLock = true;
}

Then, find the line:

var myXMLElement = myDocument.xmlElements.item (0).xmlElements.add (myXMLTag, myGraphic);

.. .and add the following lines below:

if(myRestoreLock == true) {}
myGraphic.parent.locked = true;
}

Run the script again. You will see that the script unlocks the graph (or its parent rectangle, really). The script will not change the location of the chart.

Thank you

OLE

Tags: InDesign

Similar Questions

  • How to tag digital images in Vista? I could in Windows 7.

    How to tag digital images in Vista?  I don't mean to tags, I mean labels, labels for example a "Tower of Pisa." photo, 2005  I could do with Windows 7, but I don't know how to do it on Vista.

    Label the pictures how?

    Text permanently on the face of the photo?

    Subtitle in the gallery below the photo?

    Have you installed the latest version of Windows
    Photo Gallery Windows Live on your Vista machine?

    The following article might be worth a visit:

    Add captions to the pictures and videos in Windows Live Photo Gallery
    http://www.helpfulgeek.NET/193/Add-captions-to-pictures-and-videos-in-Windows-Live-Photo-Gallery/

  • How to find the absolute position of the end of the text, it can be one or more,

    How to find the absolute position of the end of the text, it can be one or more,

    in the position I need to inseart the image of the size of the font that it friendly ordinary view sequiential - image as custom image

    Please help us find the position of the text, and even for a function more, I demanded the conclusion the text length

    I want to do we will be right and the other will be left how I can I align is their way to find the width of the label or text?

    Thank you

    This should help align your labels layouts, depending on what you did you do could go with absolute layout, docking station or stack (allows you to align the top to bottom or left to right)

    I'm not too sure that everything, however, to determine the length of the text, I would think that you could store the text in a string and then somehow programmatically count each letter & do return a result... not exactly on how to do it but it's an idea

  • locking position

    Hi all

    I just want to know the code for the action (lock position) (Ctrl + L) for all text blocks and objects, not layer lock

    I tried both below the codes but it only of the layers of lock and I want to lock positions

    app.activeDocument.textFrames.everyItem () .locked = true;

    App.documents [0].layers.everyItem () .locked = true;

    Thank you

    Hi Susan,

    Yes, there could be situations where you can not apply a State locked in a pageItem.
    We need to know what exactly is this causing.

    PageItems anchored in overset text, perhaps?
    PageItems anchored in the tables?
    Graphic images in the graphics cells?

    Better would be to tell us more about your document, that you run the script.

    Prevent error and not blocking pageItems, that are not locked to the 'current state' are easy.
    We could also write a protocol what kind of items that would be:

    var allPageItemsArray = app.documents[0].allPageItems;
    var length = allPageItemsArray.length;
    
    for(var n=0;n
    

    I just tested this extract on a document that contains an object multi-state (MSO) and the newspaper is looking like this:

    1    [object Group]    [object Page]    [object MultiStateObject]    [object Spread]
    2    [object Rectangle]    [object Page]    [object Group]    [object MultiStateObject]
    

    One of the reasons, that the script works as expected is:
    The part of a State, which is a group within an MSO can be locked.
    The entire contents of an MSO can be locked individually. It is automatically locked if ASM everything is locked.
    Therefore, a gray lock symbol is visible in the layers panel:

    I guess it would be the same thing with the buttons on a page.

    Kind regards

    Uwe

  • How to insert images in the content pane HTMLEditor?

    How to insert images in the content pane HTMLEditor? or a hyperlink?

    > know the position of the caret

    Well, there is no public API on the HtmlEditor to know that.

    You could create an tweak asks to add such an api.

    In the meantime, I believe that the HtmlEditor is implemented as a contentEditable has WebView below, so I think it's possible to hack together a solution if you want to.

    To do this:

    1. create a program that uses the HtmlEditor.

    2. run the program and use ScenicView to work on the css to display embedded Web search path.

    3. Once your HtmlEditor appears on a scene, use a node search to dig up a reference to the Web view.

    4. Once you have a reference to the Web mode, use executeScript to get the position of the caret by using JavaScript.

    5. Once you know where the caret, use a mechanism similar to my example program above to allow you to insert an image to the location of the caret (get the html text, put the position appropriate, up-to-date then set it again).

    Of course, you don't need to use a HtmlEditor control to do this, you can also just use a plain WebView with contentEditable flag put on it or any number of 3rd party JavaScript html editors have image insert functions.

  • FancyBox - How can I change the position of the title to the INSIDE of the box?

    I know that this may not be the place to ask this question involves the jQuery and Fancybox, but I'm uncomfortable with the Dreamweaver Forum so thought I would ask. Earlier, I started working on this project for an artist and thought that FancyBox would be a good way to present his work. I don't know much about jQuery and Fancybox, but managed to make it work, which is not particularly difficult. That is, how can I change the position of the TITLE by default out of the BOX on the INSIDE of the box. I played with the CSS a bit, ask about these things called aid, tried to put a code of jQuery in the head section, but nothing helped.

    Here is a link to the page (forgive the look, still under development): www.watercolorsplus.com/New/babyFootprints2.html

    There are still a few errors in the tag, as can be seen here [Valid] Markup Validation of http://www.watercolorsplus.com/New/babyFootprints2.html - W3C Markup Validator

    Fix the above errors first in particular the absence of citations which surround the fancybox (x 4) as in

    a class = """"" " fancybox

    When the above errors were fixed, add the part highlighted in the constructor.

    {$(document) .ready (function ()}

    $(".fancybox").fancybox ({}

    aid: {}

    Title: {}

    type: 'inside '.

    },

    overlay: {}

    CSS: {}

    'background': 'rgba (255,255,255,0.5).

    }

    }

    }

    });

    });

  • How to insert image in the region

    Hello!

    How to Insert Image in the region, as I upload image with the name "bar_color.jpg" in my workspace. And in the attributes of the region, I found
    1-static id
    2-region attributes
    View 3-region selector
    image 4-region
    The 5-image tag attributes
    Attributes of cells 6-region HTML table

    What to enter in these attributes.
    I entered bar_color.jpg in the column region's image, but the image does not appear

    Any help!

    Hello

    You can not simply use an img tag in the Source of the region ? :

    
    

    Otherwise, you can view the type of the Image to displayitem, if you want to display the image directly from the BLOB.

  • How can I check lock activation with an iPod touch 3rd generation

    How to check a lock of activation with a 3rd generation iPod touch which was given to me

    A third generation of iPod touch cannot be updated past 5.1.1 and will therefore never be activation locked; This requires iOS 7 or newer.

    (143866)

  • How to import images continuously in my photo library?

    I discovered another disappointing aspect of photos. When I import images in the photos, I assumed that they would remain in the library after I deleted the temporary folder on my system. Unlike iPhoto, you can see on the pictures, but you can't do anything with them, because it looks for the original file. How to import images so that they remain in my photo library?

    Change your preferences of Photos.

    You probably disabled the option "pictures > Preferences > General: import: copy items in the photo library.

    This option must be enabled, or Photos will reference just the pictures stored outside the library in their original location.

    Make sure that this option is enabled. See Help for this Page: https://help.apple.com/photos/mac/1.0/?lang=en#/pht12e7a8015

    For photos that you imported earlier, which are always referenced outside the library, select all the pictures, then use the command "file > consolidate" to copy in the library. After that, Photos will manage them.

  • When you open a new tab, how to make images of recently viewed pages underneath the toolbars?

    When you open a new tab, how to make images of recently viewed pages underneath the toolbars?

    See what-
    http://www.Google.com/support/toolbar/bin/answer.py?answer=115561

  • How can I change the position of the tab bar?

    I can't just get used to the tab bar is on top in Firefox 4. I continue to close open pages by clicking the Favorites menu bar. How can I exchange the position of the two bars?

    Right-click on a toolbar, and then click the entry "Tabs" at the top to deselect the it.

  • How to separate images in a burst of Photos?

    How to separate images in a burst of Photos?

    See this help page: https://help.apple.com/photos/mac/1.0/?lang=en#/pht56eafa987

    When you import a photo Photos broke, he appears in any moment and gusts album. When you open a glow, you can see all pictures in the burst and select your Favorites to work individually with.

    • Double-click the rafale at the time or in the album of gusts.
    • To select pictures of the explosion, click Mark an ellipsis button in the upper left corner of the photo.
    • Click on the photos you want to have individual photos, then click the done button.
    • Do one of the following:
      • Keep the selected photos and delete the others in the explosion: photos click on keep only selected Selection.The appear individually in the moment and photos not selected are placed in the album recently deleted. The rafale is no longer in the moment or in the album of burst.
      • Make selected photos appear individually and keep all the pictures in the radiance: Everything.The keep click on the selected pictures appear individually and made photo burst is still unchanged.
  • How to set the vertical position of the oscilloscope (Simulation)

    Hey guys...

    I think do a very basic oscilloscope in labview (simulation only).

    So I'll show 2-4 channels to the oscilloscope. For this I will use a waveform graph and show the parcels of 2-4 in the same graph.

    But how to define the vertical position of the individual parcels (channels) for comparison?

    Suggest an idea please...

    Make additional changes the values in your table do you do whatever will be will be incorrect. For the offset adjustment, assign each parcel at a different scale y and set the minimum and maximum of the scale up and down the waveform.

  • How to remove image files i've got duplicates when it says I can't do it because the file is open in another program? What does that mean?

    How to remove image files i've got duplicates when it says I can't do that because the folder is open in another program? What does that mean?

    Hello

    • What version of Windows are you using?
    • What were the changes made before the problem occurred?

    Follow the steps in this given link and check if that helps.

    Method 1: check out the link below and follow the steps

    Access the link for more information about the error you receive below:

    Why can't I delete a file or a folder?

    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-delete-a-file-or-folder

    Method 2: you can also try to remove the file getting mode without failure.

    Access the link below to learn more about Safe Mode:

    Start your computer in Mode safe:

    Method 3:
    Once you face this problem you can check in Manager tasks if there is an executed program attached to it.

    a. right-click on the taskbar and click Task Manager.
    b. in the Windows Task Manager window, go to 'Process' and check if there is no program associated with those files.


     
  • How to insert images as .jpg... gif attach file in email without any accessories

    Hi, this is Terry

    I would to know how to insert images on the part of email without an attachmenk.

    Thank you

    Tanveer Rauf

    An inserted picture is an attachment.  The embedded image is sent as an attachment and then it is returned in the message in an HTML message, but it is still an attachment to the message.

    In Outlook Express, you can embed a picture compose a new message in HTML then using Insert | Photo.  Who will integrate the image in the email, but it always comes as an image as an attachment.  It's just the way OE manages which shows as embedded.

    Alternatively, you can just link to an image by referencing a URL to the image on a website and this way no image will actually be embedded or attached.

    Steve

Maybe you are looking for

  • App to display recent files?

    I have so many files and would like to have an app or a way to see the most recent, I was working on, preferably power that shrink down to file type. "Recent files" in the finder simply do not work, there is no other way to put it. I have created cus

  • Toshiba TV digital RV75 - message: format not compatible with DLNA

    Peace to you. Sorry for my bad English I need the program help translate online. then, * Shoot Start: *. I have a toshiba digital RV75 tv, an old time bound on TV by vga cable computer sent a video output images, but it crash and broke. Now, with my

  • Satellite P100-237: graphics driver for Vista

    Hi I'm new. I have a satellite p100 237 with win vista ultimate and video card geforce go 7900 gs. is there a driver (toshiba) that works with my win vista 32 bit? thnx. I tried to look on the U.S. web site of toshiba, but my laptop model is not pres

  • Problems installing vista 64-bit system updates

    .... Updated download manager 29 updates but only 10 installed.  When I try to install from the Update Manager it gives me the error 646 code.

  • How can I completely remove windows xp pro network connection screen

    Several months ago, I bought a used computer. It is a HP Compaq apparently set on foot for the tuition fees online with K12.org. It came with any disks, and I had an awful time trying to get the login screen for the computer network without having to