How to select frame content (image) VBS

ThisPage = DOC.ActivePage
CurrentElement = ThisPage.place ("C:\Ancient\The Lab.EPS")
mySelection = myInDesign.Select(CurrentElement, 1919250519)
I'm trying to select the frames content (which is an image) to determine if the image's geometric bounds exceed the size of it parent frame geometric bounds.
That's the snippet I have so far. I just need help with the sub-selection and obtaining it's bounds. I know how to calculate the rest.

are you sure that your code works ? ;)
should be:
Set myInDi = CreateObject("InDesign.Application.CS2")
Set myDoc = myInDi.ActiveDocument
set ThisPage = myInDi.ActiveWindow.ActivePage
set PlacedImage = ThisPage.Place("C:\Ancient\The Lab.EPS")
mySelection = myInDi.Select(PlacedImage, 1919250519)
and your current selection will be placed image
robin
www.adobescripts.com

Similar Messages

  • How to select a sub image in run time

    Hi ,
    how can i select sub image from an image on panel in run time ?
    OR
    how to draw a rectangle(with dashed lines) on the panel and from its dimension i'll get the sub image ?
    THANKS

    BufferedImage.getSubImage(....);

  • How to select (all black) image outline using script

    hi all,
    we have thousands of clipart images to convert from wmf to png. We need to apply some processing to each image. We do this by selecting the black outline with contiguous off so it selects all the black. We then inverse the selection and apply processing to the remaining color parts of the image, leaving the black untouched. We can easily automate all of the steps excluding the first black outline selection.
    anybody have any idea how we can do this?
    alternatively should we do this in illustrator when we do the conversion from wmf to png and create layers there?
    thanks.

    Thanks Michael, we're trying this now.
    Yes images are very similar in the fact that the have a complex hand drawn pure black outline with gradient colour inside.
    This gradient being a WMF is only linited to 16 steps, so the banding occurs. This is especially noticable when enlarged.
    so the purpose of the surface blur processing is to smooth this banding in the output png image, but keep the black outline sharp and crisp.
    Below is a sample of one of the images done manually. now only 5999 to go
    original wmf: https://dl.dropbox.com/u/40046102/Aardvark%20v2.wmf
    Imported PNG from WMF through Illustrator, note the colour banding in the blue fill:
    when smoothed in photoshop:

  • How to select the contents in a select list box....

    I want to look into a select list box and check whether something is existing if exists print that or add a new one...I want to count the number in the select list box....the selected lsit consists of string of names....i have to choose my favourite name ...if present....
    Please help me...

    Akrisha wrote:
    HTML List box ....in java script....This is Java forum.
    In JavaScript you should use select.options[index] blah blah ...

  • How Do I Rotate Content, Not the Frame

    I am in InDesign CS1.
    I need to figure out how to affect the content of a placed image, not the surrounding frame. I know how to set the rotation angle of the selected object's frame:
    set rotation angle of selection to 10
    But for the life of me, I cannot understand how to leave the frame as it is and just rotate the content. I.E., normally, if I grab the direct selection tool and click an image (hovering over the image inside the frame turns to the hand tool), I can then manipulate the content without affecting the outside frame. But I want to do this with an AppleScript.
    I also assume that if someone can open this door for me, it will then lead the way to being able to scale the content, without affecting the frame. But I cannot figure out the secret of "content" vs. "selection". Halp!
    Thank you!

    Your definitions are what I would expect, but for me, applying each version as one of these two separate scripts:
    1)
    tell application "InDesign CS"
    activate
    set rotation angle of selection to 10
    end tell
    2)
    tell application "InDesign CS"
    activate
    set absolute rotation angle of selection to 10
    end tell
    Gives me the same result. The frame rotates and the content rotates with it.
    Let me start over with my problem as that may help...
    So let's say I have a frame and it has rotation 0˚. Inside the frame I have an object rotated to 5˚.
    Applying either of those two scripts has the same result. The frame rotates to 10˚ and the content (when selected with the direct selection tool) now shows a rotation of 15˚.
    But what I want is for the frame to stay at 0˚ and the content (when selected with the direct selection tool) to show a rotation of 15˚.
    I am thinking this may be relates to the "Transform Content" and "Transformations Are Totals" preference settings. Both of which I have turned on. I know how to turn them on and off with an AppleScript, but it doesn't seem to be helping.

  • How do I rotate content, not the frame (Javascript)

    Hi guys, I'm using InDesign CC 2014.
    I need to figure out how to affect the content of a placed image, not the surrounding frame. I know how to set the rotation angle of the selected object's frame:
    myRectagle = minhaPagina.rectangles.add(meuDocumento.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:meuDocumento.swatches.item("RED")});
    myRectagle.rotationAngle = 45
    For a frame, works fine, but I cannot understand how to leave the frame as it is and just rotate the content. I.E., normally, if I grab the direct selection tool and click an image (hovering over the image inside the frame turns to the hand tool), I can then manipulate the content without affecting the outside frame. But I want to do this with an JavaScript.
    Regards!

    Hello guys,
    Turned out I even managed to solve the problem bit by now, for those who go through the same, following the solution:
    Instead of:
    myRectagle.rotationAngle = 45
    used:
    myRectagle.graphics[0].rotationAngle = 45
    Regards to all.

  • Animation. How do I import still images in final cut pro x (from dragon frame) duration 3 frames pr. image?

    Animation. How do I import still images in final cut pro x (from dragon frame) duration 3 frames pr. image? We have allready tried to set stillimages duration in preferences to 0,08 sek, but it does not have any effect!

    You can drag your images to the timeline, select all, ctrl-d and set the duration to 3 frames by typing 3 and enter.
    Or you can use Quicktime 7 to "open image sequence", select the desired duration, export your animation to quicktime and import that into FCP X for further editing.

  • Does Anyone Know How to Select a Frame?

    Hello Folks,
      I am trying to select a certain frame (from three frames) to display only that particular frame's content. I'm doing this to select and display a certain hair_mc from a master layer.
    The website that sort of explains this process is here: http://www.keyframer.com/2010/03/04/ik-and-nested-assets/
    I can't seem to figure out how to select the desired frame number. I'm obviously missing a few concepts. Do I create and insert the _mc on a keyframe, blanks kf, or regular frame? I've tried several times, but just can't figure it out.
    Could somebody explain, in detail, how to do this in CS5.5?
    Thank you,
      Mike

    Yes. It appears I changed the ones on the stage. I haven't (directly) touched or modified anything in the library.
    I have run into another snag and it has to do with your last question.
    I have a three-frame graphic that is playing like a movie. I thought I was to select the desired frame to show the position I wanted the hair to be. Without even getting that far, I set up the last keyframe and scrubbed the time line only to notice the three-frame succession.
    One other thing was the webpage link above has these folks doing this with movie clips and not graphic files. Is this because they're working with earlier versions of Flash? Maybe the original files were movie clips and they changed them to graphic files?
    More importantly, how do I remedy the problem with the three frames playing in succession?
    There was this quote from the webpage: "They are all nested into a master hand symbol and each individual hand pose resides in its own frame. This is so I can control what hand is visible throughout the animation by controlling what frame of the symbol is displayed on the parent timeline." (I added the italics).
    I wondering if I'm not correctly "nesting" them.
    Thank you,
      Mike

  • How to change "Select a content category " text

    Hi folks,
    I really appreciate the support community, as I did deeper and deeper into the produce I've seen the same handful of names pop up across the board! Thanks for all your help!
    I was wondering how to change the "Select a content category>>" text that displays in a traditional skin next to your content categories upon generation. Specifically this:
    Is there a way to edit the text? Mine are focused on government levels and I'd like to make it easier for users.
    Thanks! Happy New Year!

    Hi there
    I believe you do it as follows:
    Click File > Project Settings.
    Ensure the General tab has focus.
    Click the Advanced... button.
    Click the LNG File tab.
    Scroll the list to the [WebHelp] section.
    Locate the item that reads: ContentCategoryList=Select a content category.
    Click on it to select it.
    Click the Edit button.
    Change the text following the equals sign it to what you want it to read.
    ContentCategoryList=Change this text
    Press Enter to accept the change.
    Click OK to dismiss the dialogs.
    Generate and test!
    Hope this helps... Rick

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • How do I recover a selected magnetic lassoed image?

         I brought an image into Photoshop Elements 8.  I used the magnetic lasso to define the portion of the image that was of interest for further work.  I arrived at a really good border on the irregular object.  I clicked Select and, under that, I clicked on Save Selection.  It asked me to name my saved image so I called it "Magnetic Lassoed."
         It was the end of my work day so I wanted to shut down.  I X'd out of the image on the Photoshop edit screen.  After that I could not find the defined image that I had just created, saved, and named.  I clicked on the Select tab expecting to Load Selection again.  But all of the entries under Select were, and remain, grayed out.
         How can I recover my image?  Failing that and repeating the Magnetic Lasso technique, how do I avoid having the same thing happen again?  Thanks.

    Further to above, you may ask what is the utility of the save selection command? Here  is one good use for it:
    Open a picture file and make a selection, e.g. with the magnetic lasso
    Go to Select>save selection, name it, ok.
    Open a Levels adjustment layer above the previous layer, and you will see the selection embedded in the Layer mask (the white rectangle)
    Now, go to Select>load selection, and open a hue/saturation adjustment layer above the levels adjustment layer. The selection is embedded in the layer mask here as well.
    This allows access to the adjustment layer controls for both levels & h/s, independently,  and  the ability to paint on the masks with a black brush or a white brush to reveal or hide things as needed.

  • How can we place an image in already created inline graphic frame?

    Hi,
    AIM::
    To place an image in the inline graphic frame.
    OBSERVATION::
    As i have analysed the snippet Runner,i came to know that it allows to load the placegun with the file(in my case image). but in order to place it,we need to click on the document..and then the image is placed at (0,0) of the page(I suppose Indesign does it automatically).
    what is needed,is to place image in already created inline graphic frame. i have created a inline graphic frame at some position in the story,but now i required to place image in this created frame.

    I have the same problem. Can you give me a short code sample for that.
    I have an image and want to place it in the currently selected frame...

  • How do I change the image selected for the finalized movies pane in all events?

    How do I change the image selected for the finalized movies pane in all events? I made a movie some time ago in iMovie, and a still from this now appears as the image for Finalized Movies in the All Events pane (as well as showing up if I then click on this pane to take me to Finalized Movies). Anyone know how to change or delete this image, please?

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • If you right-click an image you can select to "Block Images" from the site, but how do you reverse this choice?

    If you right-click an image on a web page you can select to
    "Block Images from [the url of the site]".
    This works well, particularly to make the page printer-friendly, but how do you reverse this choice to see the images again?

    You can see all permissions for the current page in Tools > Page Info > Permissions
    If it is from a different domain then use this:
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Open the <i>Media</i> tab of the "Page Info" window.
    *Select the first image and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

Maybe you are looking for

  • Custom Report using S_ALR_87013611 & KSB1

    Hi SAP Experts, I need/customer wants summary report by Cost Element i.e SKFActual(SKF Qty)Cost CenterCostElementDollars+Report Currency. First 2 fields (SKF+Actual - SKF Qty) we got from S_ALR_87013611 report. Then we double clicked on SKF then it w

  • FireFox 4, Ubuntu 10.04 - menu bar and bookmarks are locked

    I recently upgraded to Firefox 4 on ubuntu 10.04. I did this by setting the ppa as described in many places: For example: sudo add-apt-repository ppa:mozillateam/firefox-stable sudo apt-get update sudo apt-get upgrade After doing this, firefox has be

  • Connection Leak with SP3

    Hi- I recently moved from 8.1SP1 to 8.1SP3 and WOW am I getting a lot of connection leaks. I never had this problem at all with SP1 and I'm quite concerned. My app is probably 98% CMP but I do have a bit of direct access. My app supports both Sybase

  • Deletion of Data from Infoprovider  after upgradation of source system

    HI All, In our project  source system is upgraded from 4.7 to ecc 6. I have kept the same logical name and changed the RFC connection so that it points to new source system. Now do i need to delete all data before uploading data from source system or

  • HTML tag problem when adding Google rich snippets in templates?

    The new Google plus Rich Snippets allow us to add a schema tag like this example: <html itemscope itemtype="http://schema.org/Article"> I can do this on my .html pages but as soon as I make any changes to the .dwt template for the page it reverts all