How to List Placed Tiffs into a BY PAGE???

Dear Scripting team,
Is there a way to list the name of graphics (links) on each page and make a list like:
file1.tif Page 1
file2.tif page 3
file4.tif page 5
file5.tif page 8
I can list the graphic names with this:
Set myInDesign = CreateObject ("InDesign.Application.CS3")
for each element in myindesign.ActiveDocument.links
msgbox(element.name)
next
BUT I can not get the page where the graphic is contained as my list above or say something like... myindesign.ActiveDocument.pages.item(1).links because it give me an error... i mean.. ican't specify the page where I wanto to get the links and also can't know the page number where the element (link) is contained...
ANY IDEAS?? Thank you!! Thank you!!!

>myindesign.ActiveDocument.pages.item(1).links [..] give me an error<br /><br />That's because pages do not have a links property. Whatever manual you saw that in, throw it out, and use the proper Help manual. Pages have an allGraphics property, which conveniently "Lists all graphics contained by the Page." (from the ESTK2 Help). Rather <br />i unconventiently <br />is that this graphic type first contains a link, and the link then contains a filename -- you have to string'em all together by hand.<br /><br />Try this instead. It iterates over all your pages (first loop) and over all images on that page (2nd loop). This one is sure to display the items in order of appearance (which is possibly different when iterating over all links in your document at once).<br /><br />>for (var p=0; p<app.activeDocument.pages.length; p++)<br /><br />>     for (var g=0; g<app.activeDocument.pages[p].allGraphics.length; g++)<br /><br />>          app.activeDocument.selection[0].contents = app.activeDocument.selection[0].contents+"\r"+app.activeDocument.pages[p].allGraphics[g]. itemLink.name+" Page "+app.activeDocument.pages[p].name;<br /><br />[Before running this, draw an empty text frame and place your text cursor in that.]

Similar Messages

  • How to convert color tiff into black and white?

    Hey guys, am new to JAI and need to convert a color tiff into black and white, I've gone through google and developed following code.
    img = JAI.create("fileload","C:/eosimias.tif");
                   newColorModel = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_GRAY),new int[] {8},
                             false, false, Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
                   pb = new ParameterBlock();
                   pb.addSource(img);
                   pb.add(newColorModel);
                   img2 = JAI.create("ColorConvert", pb);
    frame = new JFrame("Tiff study");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(new ScrollingImagePanel(img2, 400,400));
              frame.pack();
              frame.setVisible(true);When I execute the following program I get the following error
    java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel.
    on the line frame.add(new ScrollingImagePanel(img2, 400,400));can someone please help me out with it.
    Thank you in advance.

    Check under Image> Mode and select 8 Bits / Channel  first.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • [CS5.5] How to import a snippet into the current page

    Hi All,
    I got the IDOMElement from the document UIDRef and imported the snippet into it. Here's the code-
    InterfacePtr<IDOMElement> documentElement(docRef, UseDefaultIID());
    if (documentElement == NULL)
        break;
    if ((status = Utils<ISnippetImport>()->ImportFromStream(tStream, documentElement)) == kSuccess)
        //success
    ( tStream is the IPMStream of the snippet I'm importing)
    This code above is able to import the snippet successfully to the first page of the active document, but I want it to be imported in the current active page instead. So for this, I tried getting the IDOMElement from the current page's UIDRef instead (logically I thought that this will import the snippet to the current page)-
    InterfacePtr<IDOMElement> documentElement(currentPageUIDRef, UseDefaultIID());
    But the result is just the same— the documentElement is not null, but the snippet is imported to the first page only.
    May be that the concept of IDOMElement is not clear to me, but I cant find any documentation of it in the SDK guides too. Can anyone explain to me what's an IDOMElement and how can I import a snippet to the current page?
    Any help will be highly appreciated. Thanks.

    @mfreitag, thanks a lot for your reply.
    I havent tried it yet, will let you know after I try it- but I want to ask that how will that help me placing elements to the page?   Can you please elaborate a bit.
    Actually in CS3, I used to follow this implementation to place the snippet into the current page-
    1. Create a dummy textframe in the current page (needed just to create a group).
    2. Create a Group using that dummy frame.
    3. Get the IDOMElement of the UIDRef of that group-
       InterfacePtr<IDOMElement> documentElement(groupUIDRef, UseDefaultIID());
    4. Import snippet to this DOM Element
    5. Delete the dummy frame
    The snippet items were added into the group beautifully in the active page. But when I was porting the plugin to CS5.5, steps after step-3 failed, and the snippet is imported to the 1st page/spread of the document.
    I'm not sure, but seems that things related to IDomElement are changed for CS3+. May be you have an idea whether I could use the similar implementation to get this thing work?

  • [CS5.5] How to import a snippet into the specific page

    Hi,
    I've a snippet file that export from page index 1 but I want to import back to page index 0, and vice versa.
    Is that possible?
    Regard,
    Nat.

    @mfreitag, thanks a lot for your reply.
    I havent tried it yet, will let you know after I try it- but I want to ask that how will that help me placing elements to the page?   Can you please elaborate a bit.
    Actually in CS3, I used to follow this implementation to place the snippet into the current page-
    1. Create a dummy textframe in the current page (needed just to create a group).
    2. Create a Group using that dummy frame.
    3. Get the IDOMElement of the UIDRef of that group-
       InterfacePtr<IDOMElement> documentElement(groupUIDRef, UseDefaultIID());
    4. Import snippet to this DOM Element
    5. Delete the dummy frame
    The snippet items were added into the group beautifully in the active page. But when I was porting the plugin to CS5.5, steps after step-3 failed, and the snippet is imported to the 1st page/spread of the document.
    I'm not sure, but seems that things related to IDomElement are changed for CS3+. May be you have an idea whether I could use the similar implementation to get this thing work?

  • How to retrieve a message into an html page passed from a servelt?

    am new to servlet.
    i have a Login.html contains a form having username and a password field.when the form is submitted it goes to VerifyServlet for authentication.
    now if the user provide the correct username and password i authenticate him into a new servlet called UserhomeServlet which i have already done. but if the password is incorrect i wanted to take him back to the Login.html with a Error message printed on it passed from the VerifyServlet. i dont know how to do that.
    pls tell me if you have any idea.

    Hi ,
    Try the following in your VerifyServlet doPost / doGet method.
    //for simplicity i have defined name & pwd in the same file and compared values from the login.html //
    //you can implement your logic //
                     if (name.equals(login)&& pwd.equals(pass)){
              //redirect to UserhomeServlet
                          else {
                   out.println("Invalid Login");
                   RequestDispatcher rd = req.getRequestDispatcher("/html/login.html");
                   rd.include(req,res);
         }bye for now
    sat

  • How do I move files into folders in Pages? I can't seem to drag and drop anymore, except via my web browser in iCloud.

    Before the Yosemite update. I'm pretty sure I could just drag and drop documents in and out of folders. Now, I can't seem to do that, though the option still exists if i log into iCloud in my browser or even my iOS device. This seems odd to me. Am I missing something?

    Where did you recall doing this?
    Essentially all file movement is done in Finder, not Pages.
    Peter

  • How can I drag pictures into the new Pages so that they are inline where I release the drag?

    Back in the day, like last week, I could drag in a picture and if I was holding command when I let go, the image was inlined exactly where I released.  Now that functionality seems to be gone - or maybe I just don't understand how to access it.

    Thank you. That worked. I was able to open 1 window with multiple tabs. Thanks cor-el!

  • Any idea how to "frame" another website into my iweb pages?

    Disclaimer - I'm fairly new at this, may be a rookie question.
    I want to allow info from another site to be shown & interacted with by the visitor on my iweb page. The purpose for this is to allow real estate listings (provided by a subscription-based third party) to be integrated into my site, allowing the visitor access to those listings, photos, etc, while maintaining the image & brand that I use to support/market my services. An HTML snippet is not available from the provider that allows for the level of access that I need, and once again the objective is to not direct the visitor away from my main page or from the site entirely.
    Thanks, guys - I look forward to your responses.

    Yes. See this demo page: Embed a Site Within an iWeb Page. It just takes iFrame code, the site's URL in an HTML snippet.
    OT

  • How to populate existing data into a DFF Page

    Hi OAF Gurus,
    I have a requirement where i have to create a Search Page where for each line i should have a DFF.
    Till now i have created a Search Page where at each line i am having an Image on click on which i am navigating to one more page where i am having a DFF.
    The problem is when i click on the image i should populate all the data (if already present for the segments) but when i am doing so i am getting an Error which is as below:Current VO row is empty for flexfield
    I have checked the DFF portion through Java code and declaratively also but same error is percisting.
    If i open the Update Page directly then the DFF is rendered correcyt.
    Kindly suggest.

    Hi,
    When i am in the processFormRequest i am checking the rowCount it is showing only the rows which are available in the table.It should show the extra empty row which i had created in processRequest.
    See in the processRequest i am creatng an empty row after which in the processFormRequest i am setting the data into the empty rows.
    But everytime it is pointing to the first row.Which is quite strange as i have'nt noticed this thing in earlier implementations.The only difference what i have noticed is earlier i was using custom table but now i am using Fnd_LookUp_Values.
    Can use of Look Up table cause this issue?
    Kindly suggest.

  • Embedding Flash into a Flash page

    Hey all...my first post here.
    I've recently learned Flash and have had pretty good success figuring out challenges that come up...however I am stuck on one now and am looking for help.
    I am designing a site for a music project that I manage.  The band also uses another free site, Reverbnation, for promotions and such.  The site provides a mailing list function, and you can embed an already provided "widget" onto your HTML web page that will automatically add people to your e-mail list if they choose to sign up.
    The problem I am having is that the page the widget is going to be on is now all Flash.  I can't figure out how to get the widget into the Flash page.  The Flash page itself is really nothing elaborate.
    Here is the code for the widget that they provide:
    <img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNzQyMTEwMDU3NjUmcHQ9 MTI3NDIxMTQyMTQwNiZwPTI3MDgxJmQ9ZmFuX2NvbGxlY3Rvcl9maXJzdF9nZW4mZz*x/Jm89ZDlkZTU1NWQ2YWFlN DRiMDlhMzU4MDgxZDM1OTk2ZWUmb2Y9MA==.gif" /><embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_708835 &backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835" height="100" width="434" /><br/><a href="http://www.reverbnation.com/gigfinder" onclick="javascript:window.location.href=&quot;http://www.reverbnation.com/c./a4/11/708835/Artist/708835/Artist/link"; return false;"><img alt="Land Gigs" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/11/footer.png?1" width="434" /></a><br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/11/artist_708835/artist_708835/t.gif"/><a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
    Any ideas on how I would embed this into my Flash page to be a functioning widget?
    Thanks!

    your published swf will be embedded in an html file.  add your widget code to that html file.
    you can use html, styles, divs etc to position the swf and widget.
    or, if you want to incorporate that widget within your swf, you might be able to load
    http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=art%20ist_708 835&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835
    and manage.

  • How do I fix this problem placing Photoshop TIFF into InDesign?

    I am trying to place a Photoshop TIFF into an InDesign document but I am getting a pixelated/jagged version of the TIFF. What could be causing this? The original art looks fine in Photoshop. It is a TIFF of less than 8 MB, CMYK, about 3.5 by 3.5 inches. It includes image and text both created in Photoshop. When placed into an InDesign file, the art looks awful and the text is even worse. The text can barely be deciphered. I tried exporting the TIFF to PDF and placing that file, but it also looks bad.
    Any solutions anyone?

    How it looks in ID is basically irrelevant. How does it look in print or an exported PDF? Did you scale the image in ID?
    In Photoshop, which is a pixel editior, you are viewing the actual image pixels. In ID, which is a page layout app, you are looking at a screen preview jpeg that may or may not look terrific, depending on the image. If you've scaled the image you are chagning the "effective resolution" and it may not be high enough. You didn't mention waht it was in Photoshop at the saved dimensions, so it's hard to know if there was ever enough resolution to prevent jaggies. It's highly unlikely that text created in photoshop will NOT look pixelated unless the effective resolution is well north of 600 ppi.

  • How to list the JAR files loaded into the Oracle Database ?

    How to list the JAR files loaded into the Oracle Database ?

    From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
    JAVAJAR$
    JAVAJAROBJECTS$
    By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
    These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
    But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.

  • How is a distribution list created in 'Mail'?  Everyone I need to include is already in my contact list so how do I copy them into a single list which I've created?

    How is a distribution list created in 'Mail'?  Every address I need to include is already in my 'Contacts', so how do I copy them into my single list?

    In Contacts, add a new group, and then add all the desired recipients to the group.
    Contacts – Create Mail Group

  • I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    Hi FancyJean!
    Here is an article for you about using Font Book and installing fonts that you have downloaded:
    Mac Basics: Font Book
    http://support.apple.com/kb/ht2509
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • I have an all contacts list and an exchange contact list how do i sync them into 1 list(my exchange list)

    I have an all contacts list and an exchange contact list how do i sync them into 1 list(my exchange list. I want to only use my exchange list but i don't know how to put the other contacts from all contacts or contacts into my exchange list??

    Can any user with similar problem or IPhone developers give a remedial suggestion please?

Maybe you are looking for

  • Using a US mac in the UK?

    Hi My parents are going to New York in a few weeks and I was going to give them some money to get me a powerbook. I was wondering if it will all work ok over here? I know i will need a UK power adaptor but will that be all? Thanks in advance Michael

  • Getting Stackclose exception in bluetooth applicaiton!

    Hi, All I am developing simple file transfer application in which mobile is server and client is pc while i am calling Connector.open(url) method after that i will get stackclose exception and program stops working. and on mobile that is server no ex

  • Parameter in SYS_CONTEXT('USERENV'

    Hi, is there any parameter in SYS_CONTEXT('USERENV' that shows the name or IP adresse of database server ( machine on which DB is running) ? many thanks. I know the followings but non lets know (but if I'm wrong). SYS_CONTEXT('USERENV','TERMINAL') te

  • Safari 3.2: Can't drag images to desktop!?

    Hi there. I just downloaded Safari 3.2 - and I can no longer drag images to my desktop. When I try to do this, the image converts to a weblog or pagesource ( instead of a .gif, jpeg, .png - like it did with the previous version) Anyone else having th

  • How do I transfer files and pictures from my blackberry to my mac

    how do I transfer files and pictures from my blackberry to my mac. My mac does not seem to recognize my blackberry as a devise