Select the Image after you have placed

Hi legends,

With the help of the forum, I developed the script below.

My request is for jobs in math type, find the content and location of the Image fine //working

But for another application, I need to select the image again.   need your help

var myDoc = app.activeDocument;

//to get image path
var myFilePath = app.activeDocument.filePath;
var myLinksPath = myFilePath + "/" + "links";
var myArtPath = File(myLinksPath);
var myArtFiles = myArtPath.getFiles("*.eps");

        
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "<<<.+?>>>";
var _equFound = app.activeDocument.findGrep();

for(e=0; e<_equFound.length; e++)
{
    var _equ_Content = _equFound[e].contents;                         //1
    var myFinalContents = String(_equFound[e].contents).replace(/>>>/, "").replace(/<<</,"");
    
        for(j=0; j<myArtFiles.length; j++)
        {
            var myArtName = myArtFiles[j].name;
            var myReplace = myArtName.replace(/\.eps/, "")
            var myFinalImageName = String(myReplace);

            if(myFinalContents.indexOf(myFinalImageName) != -1)
            {
                    _equFound[e].place(File(myArtFiles[j]));     //place the image
                    
                    
                    //NEED HELP FOR THE BELOW LINE
//~                     File(myArtFiles[j]).select();
                    app.selection[0].anchoredObjectSettings.anchorYoffset = 10;    //Error found here
                }
         }
  }

Concerning

Siraj

Try this,

//to get image path
var myFilePath = app.activeDocument.filePath;
var myLinksPath = myFilePath + "/" + "links";
var myArtPath = File(myLinksPath);
var myArtFiles = myArtPath.getFiles("*.eps");
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "<<<.+?>>>";
var _equFound = app.activeDocument.findGrep();  

for(e=0; e<_equFound.length; e++)
{
    var _equ_Content = _equFound[e].contents;                         //1
    var myFinalContents = String(_equFound[e].contents).replace(/>>>/, "").replace(/<<

Vandy

Tags: InDesign

Similar Questions

  • Loss of quality of the image after you have placed?

    Hi people, I could really use some advice here. Currently, I'm going to print a document and have encountered some problems in image quality.

    More specifically, when I compare the quality of my original images (fit) to the quality of the images placed in InDesign, images in InDesign (and later, in the events of printing) are heavily pixelated.

    I don't know if this image as an attachment is important enough to illustrate this problem, but the small window is open TIF image (and zoomed in) in Windows Picture and fax viewer and it is superimposed on the image when zooming-in in InDesign.

    I've only used InDesign for a couple of years, so I really hope that I made an obvious mistake, but I can't seem to find a solution to this problem after having spent the afternoon on Google and Adobe forums trying to find a.

    Thank you in advance for your help!

    Aryn

    Image Quality Comparison II.JPG

    Additional information:

    -with the help of InDesign CS4

    -J' set the display of high-quality performance

    -J' checked the link

    -J' tried to rebinding

    -l'image has not been resized in InDesign

    -J' tried to create a new image and place again, with the same results

    Windows Image & Fax Viewer is not really the best tool to inspect the images with. I suspect that your original image can be as pixelated as InDesign shows, while the Image Viewer smooth it on enlargement; It is certainly * not * show "real pixels as rectangles.

    (Word is another program that did this same dirty trick - prompting complains like "my image looked better in Word," while in fact they are worst but blurred into oblivion.)

    You need to see in a real program, such as Photoshop. (The actual pixel dimensions that Peter also claims would help.)

  • How to select a picture, ignore one and many with shift click to choose several without also selecting the image that you have ignored.

    In the grid discovers how to select an image, a jump and select several images following the a l ignored without also selecting the previous image, that you have ignored as well. This is possible in opening

    Probably easier to select all the with shift-click and then deselect (ctrl-click), one that you don't want.

  • How to connect all the image after you have moved the records?

    I have a lot of illustrator files in folder A and each file has tons of images from different folders (B, C, D). All of these files are inside a main root folder.

    Recently I moved this folder to an external hard drive, then all the illustrator files disconnect with the images. Is it possible to connect all these pictures all together instead of recreating a link one by one?

    Thank you!

    you open a file HAVE, when you get the dialog box "cannot find the file related ABC...". »,

    -Check the box 'apply to all '.

    -Click the 'repair '.

    -Navigate to the location of the new ABC file

    All images must automatically be relinked

    You would need to repeat for each file HAVE

  • HP 8600 printer range is found on the network after you have installed the Dymo printer for processing of credit cards

    HP 8600 printer range is found on the network after you have installed the Dymo 450 Turbo printer for processing of credit cards

    Hello Christina,

    1. What is the IP (Internet Protocol) address, the subnet and default gateway of the printer?

    2 have you tried to Ping to the IP address of the printer?

    Reset the printer can help get the problem solved.

    Perform the steps mentioned below to get the address of IP(Internet Protocol), subnet address, and default gateway.

    a: Type CMD in the search box start and press ENTER.

    b: now, type Ipconfig/all and press ENTER.

    Proceed as for Ping to the IP address of the printer.

    a: Type CMD in the search box start and press ENTER.

    b: type PING (IP address of the printer) , and then press ENTER.

    Reset the printing system:
    a: Go to System Preferences > Print & Fax
    b: Right (or control), click inside the box that lists your printers and select Reset Printing System.

    WARNING- This will remove ALL your printers!
    c: Select the sign more to add a printer. Search for the printer, select it, and wait until the button 'Add' becomes available. Until it clicks.

    Click on the link mentioned below as reference.

    http://Windows.Microsoft.com/en-in/Windows7/install-a-printer-on-a-home-network

    Note: "Check the title that reads" set up a network printer "

    Answer please if you have any questions.

  • I have no sound on the computer after you have reinstalled Windows.

    Hello

    I just reinstalled Windows 7 on my PC and I was a little proud of myself, have internet, email, video works... but then no sound. :(

    So the most common answer seems to be getting the correct driver.

    I have a motherboard ASUS P7-P55-M, I went to the ASUS website and got the best audio driver for this mobo, which is: VIA_Audio_V6019500_XPVistaWin7.

    I therefore installed that, and then one encouraging thing is that DURING the installation of this audio driver, my speakers made a sound that made me think that they are the least recognized, or this audio driver is at least to see them there?

    But then after the reboot, I still have no sound.

    So I tried to look at the specs for this mobo, and saw the audio chip itself is VIA VT1708S. So I followed the links and found a driver for it, but after I installed that now, it seems that it is just a version still newer same driver (the preceding being 9500, 10200 or this is what it looks like.)

    in any case, this newer version and the one outside the site of ASUS, as well as older drivers, I think, just install a version or one that other: HD VDeck.

    Common responses include at this time something about the Realtek drivers (can't see how tho so it shall not apply, or using those on drivers THROUGH), or Windows Troubleshooter, or something in the playback functions, or an old or Windows driver conflict with these new?), but I have tried these things (or I thought I did lol).

    But I still have no sound on my speakers.

    Very frustrating because it feels like I'm 98% done my re - install, and it looks like its just some simple setting somewhere in Windows or this HD VDeck that will get things working.

    Any help would be greatly appreciated! :)

    Original title: speakers work not after fresh windows 7 installed, please help!

    Hello

    Thank you very much for your answers. :)

    I formatted completely, no folder Windows.old and also no printed dxdiag, I myself for the kicks, which I'll make sure to have next time lol.

    Device Manager is fine, I went over that and basically each sound option of Windows or menu, that I could find, which made me think the problem somewhere else.

    So I took the suggestion of Nirmal and used automatically diagnose it and fix the link he provided. Suggestions of the convenience store has really helped as much as he said everything has been updated, or was not a problem, but what I noticed, it was what a screen in the Microsoft Fixit program running:

    Resolution of Windows Audio playback problems

    Which of these devices you want to troubleshoot?

    Select the device that you are having problems with. If the device is not listed, select device are not.

    Speakers - VIA High Definition Audio (the connector for this device is located on the front of the computer).

    Interface SPDIF (TX0) VIA High Definition Audio (the connector for this device is located on the open or pull-open sliding panel at the back of the computer).

    Output HDMI AMD - AMD high definition Audio Device (Connector for this unit is located in the HDMI connector).

    Unlisted device.

    Now when I continued from here, I don't have all the answers useful, but it makes me start thinking about the plugs/connectors themselves, rather than the drivers or anything else.

    So, I've discovered that my audio interface (HD VDeck) installed with the audio drivers of my motherboard, has no options is disable the jacks on the front panel, or the possibility of re - configure jacks how you want. If you want your speaker system to get out the same plug as it was before, you MUST be able to reconfigure your catch. Otherwise, making default value for your speakers, according to the drivers from the manufacturer of your, is actually not the green plug, I used, but among the other instead. This other outlets, or maybe even just the front headphone or microphone jack will work instead.

    So to summarize:

    If you did a clean install of Windows 7 (or a similar version), and that you have installed the drivers of your sound and re-configured your settings Windows Sound (speakers as value by default, etc.), then you did everything up to this point correctly. At this point, you MUST have an audio program like Realtek, which allows you to reconfigure or disable the catch. Otherwise, your speakers, by default, is no longer just the audio jack green we are accustomed to, but rather another "back". You MUST use the other rear socket (most likely the speaker FRONT plug), or one of your jacks façade, in plugging your speakers instead.

    This may sound funny, but this workaround works, unless you get an audio program to reassign the normal green audio jack.

    I looked at hundreds of messages on the last few days trying to get this resolved. I wish I could go back and share this info with all these people now lol.

    Thanks for the info, and please share with all those who have problems with Windows reinstall and sound.

    Kind regards

    Brad

  • problem rotating rectangle (selection of corners) after you have created with the rectangle tool in illustrator

    I use the latest version of the CC of the Illustrator. When I draw a rectangle by using the rectangle tool, I no longer seem to be able to select the corners to resize the rectangle or the cursor turns to a rotate icon when I put the mouse just outside the angle. Now I know that AI rectangles treated CC differently, with the direct rectangles and rounded corners options and the processing area opening automatically. What I was asking and hope is not the case, is if it's that costs that can go right and resize using just the mouse? I know that there is the "object > shape > Expand" option, but having to do whenever I have a rectangle is time consuming and adds and the extra step that was necessary before. I saw a tutorial on Lynda where the instructor drew a direct rectangle in CC AND was still able to resize by grabbing the handle angle «» Anyone know if it's just a setting that I need to start or something even easy, or it is done inadvertently Adobe workflow longer trying to make it easier? And Yes, I have "show encompassing" selected under VIEW.

    MOD indi-go girl,

    I'm afraid that have met you the Rectangle Live bug that is limited to the MAC versions from 10.7 and 10.8, but not of 10.9 (Mavericks) or 10.10 (Yosemite). If all goes well, the bug will be fixed soon.

    Thus, a switch for the Mavericks or Yosemite with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool or the free transform tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • Problem when selecting a table after you have created the dblink

    Hello

    We have created the dblink for oracle to sql server and created successfully,

    But while selecting the oracle table, we receive the question below,

    Select * from 'sysdiagrams"@omniyat;

    ERROR on line 1:

    ORA-00942: table or view does not exist

    [Microsoft] [ODBC SQL Server driver] [SQL Server] Incorrect object name

    'sysdiagrams '. {42S 02, NativeErr = 208} [Microsoft] [ODBC SQL Server driver] [SQL

    Server] instructions could not be prepared. {NativeErr 42000, 8180 =}

    ORA-02063: preceding 2 lines of DAMAC

    Please provide us with the solution for this problem.

    Concerning

    Sham

    Hi S27.

    We had the similar problem, and I guess you went to the database MSSQL and verified that the table exists in fact.

    The problem we encountered was that we were in the wrong database on the instance of MSSQL.  I am unsure of your Setup, but if this is your case, you can try either by setting the database default to the ODBC connection to the correct on the instance MSSQL database (can be done on Windows, I'm not sure about Linux), or you can USE the command through the :

    SELECT
         DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE@<> ('USE <>')
    FROM DUAL;
    

    You try your select statement from the DB link.

  • Is it possible to manually select the images that you want imported from the camera?

    original title: SLR digital import question

    is there a way to choose which images get imported when importing images from my Canon t2i to my laptop? most of the photos on my camera have been imported already and filled my hard drive, so I transferred to a portable hard drive to expand the memory and allow for me to continue to load/save my photos. I want to download only the pictures at the end of my memory chip, essentially without having to wait a long time for the other 300 + pictures to import the big file for each and the jpg version, accompanying all over again because they are mostly high-quality... (I keep the actual chips with pictures on them as a backup (have not printed on most of the photos I had even for albums, etc. so I don't want to lose anything by deleting after you import each time, because they are all the memories with my husband and 2 children..))

    is there a way to choose which images get imported when importing images from my Canon t2i to my laptop? most of the photos on my camera have been imported already and filled my hard drive, so I transferred to a portable hard drive to expand the memory and allow for me to continue to load/save my photos. I want to download only the pictures at the end of my memory chip, essentially without having to wait a long time for the other 300 + pictures to import the big file for each and the jpg version, accompanying all over again because they are mostly high-quality... (I keep the actual chips with pictures on them as a backup (have not printed on most of the photos I had even for albums, etc. so I don't want to lose anything by deleting after you import each time, because they are all the memories with my husband and 2 children..))

    ===================================

    Something to try...

    Connect the device to your PC via a USB cable and turn
    on the camera... If open windows... Close them.

    According to... to... Start / my computer... the camera can be
    listed as a drive letter...

    If_yes_right click on the drive letter and select... Explorer or
    Open... This should display the directory of the memory card.
    You can copy and paste or drag and drop the files from there to a
    folder on your hard drive.

    (The same steps work if you have a media player...
    When you go to... Start / desktop media slots...
    Drive should be listed under... "Removable disk" with a drive
    letter.)

  • why I can not update the table after you have done the process?

    Hello

    For now I create a reservation system of material for my new project and I have a problem to update the data after reserved for equipment. It should reduce the amount ask you in the store but nothing. Can someone help me?

    Here is my code:

    <?php
    $connection = mysql_connect("localhost", "ayden", "pass"); // Establishing Connection with Server
    $db = mysql_select_db("equipment", $connection); // Selecting Database from Server
    
    
    $res= mysql_query("SELECT * FROM squash WHERE Equipment='".$equipment."'");
    $row= mysql_fetch_array($res);
    
    
    if(isset($_POST["submitBook"])){
    $FullName=$_POST['FullName'];
    $IDNumber=$_POST['IDNumber'];
    $PhoneNumber=$_POST['PhoneNumber'];
    $equipment=$_POST['equipment'];
    $Quantity=$_POST['Quantity'];
    $clockbox=$_POST['clockbox'];
    $textsports=$_POST['textsports'];
    
    
    $dbTableName=$_POST['tablename'];
    
    
    
    
    
    
      $sql     = "UPDATE squash SET Quantity=Quantity - '".$Quantity."' WHERE Equipment='".$equipment."'";
      $res = mysql_query($sql) or die("Could not update".mysql_error());
    
      echo "<script type='text/javascript'>alert('Successfully Booked!')</script>";
      header("Location:equipment.php");
    
    
    }?>
    
    
    

    hope someone can help me to check it and correct me...

    Thank you.

    You must assign the current amount to a variable using a while loop after the SELECT query:

    $res = mysql_query ("SELECT * SQUASH WHERE the equipment =" ".") $equipment." "") ;

    $row = mysql_fetch_array ($res);

    While ($row = mysql_fetch_array ($res)) {}

    assign the current quantity in the database to a variable

    $currentQuantity = $row ['quantity'];

    }

    Then after the data of $_POST, you need to work on the new amount based on the amount of current less the $_POST ['quantity']

    work on the new quantity

    $newQuantity = $currentQuantity - $Quantity;

    Then use variable $newQuantity to update the datbase:

    $sql = "UPDATE SET quantity = squash" "." $newQuantity. "" WHERE the equipment = "". " $equipment. » "« ;"

  • How to get rid of search bars that appear on the images after you mouse over them?

    When I mouse over any image on some sites an 'x' in a black and white circle appears in the right corner of the image and a search bar in the left corner. Mouse research leads to a drop-down list with about three links box. By clicking on the "x" close the search bar, but how I keep from always appear? Very annoying when on a page with multiple images (e.g. browsing someone Photo Gallery on DeviantArt)

    It's weird - if you run a search, what is sought?

    This is probably a feature of an add-on. You can view your add-ons and initially disable all non-essential and unrecognized plugins and extensions.

    Firefox orange (or the Tools menu) button > addons > Plugins category

    Firefox orange (or the Tools menu) button > addons > Extensions category

    After restarting Firefox, if the display persists, could you post a screenshot of it and see if anyone recognizes? This article may help: How to make a screenshot of my problem?

  • Cannot access the network after you have installed the Windows updates

    original title: Windows update and Acer Aspire M3201

    Hi, I have a problem with my Acer Aspire M3201, which has Windows Vista on it. The system has installed the Windows Update automatically, so I can't access the internet and home network more. So I restored the previous update windows, then I can get into the internet again. A week later the update windows again but this time somehow corrupted previous restoration, I cannot restore and can not enter in the internet. I bought Windows 7 to upgrade my Windows Vista computer. The upgrade went OK game, but it was also installed the updateautomatically, and I cannot yet access the internet web browser of screws, but the command, I can ping any web site as www.cisco.com. Please help me. Thank you.

    If you updated that could trigger it, you can do is to uninstall and avoid installing it by hiding the update in Windows Update.

    Click Start, type: see installed updates
    Press enter on your keyboard
    Look for the update in question, no it click on, then click on uninstall.

    Restart your computer

    Open Windows Update, select the update, right-click and click Hide

    See also: Troubleshoot network Windows 7 http://clkon.us/bJtkA0

  • Can I recover the changes after you have accidentally deleted files?

    Unfortunately, when you work with a lot I tried to click and delete a single image, and the batch remains removing images of 29 and the changes highlighted. I have had no Cancel option. I was able to retrieve the source files in the Recycle Bin (windows 7) and I had exported some edited 1600px Jpegs to use online. Lightroom is set to incorporate changes in JPEG files. Is it possible to reapply these changes to the affected files? I would like that 2 hours of my life back if possible. See you soon.

    Yes - WreckHover (free plugin I wrote) will read the exported JPEG format and re - settings apply to the files source re-imported, condition it can make the link between the exported JPEG files and the original source files which is.

    In the future, if you save metadata (xmp), you won't have to resort to these shenanigans.

    See you soon,.

    Rob

  • How do I create a branch to the form after you have created a new record

    Hello

    I created a master/daetail form with detail on the same page.
    It works very well.
    When you create a new record, on the details of the page, you enter the data, and you click Ok.
    Then you are directed to the main form, a report containing the lines of recordings.
    You must then click on the link in the column to change the record to add details.

    I want to do it is to branch directly on the same page after you create the record. Order to dot Hat I created a branch whith the value equal to CREATE demand.
    And the target is the same page. The problem is to the value of the primary key. This KP is created after sending, and it is not possible to recover because it is created right now. I hope I'm clear.

    To sum up the question: how to create a branch immediately to the same page after creating a new record?

    I have the page on

    [http://apex.oracle.com/pls/otn/f?p=4550 | http://apex.oracle.com/pls/otn/f?p=4550]

    The workspace is ESPACE2008
    Is the user name: guest
    the password is: noproblem

    The long form is page 42.
    The main form is page 41
    Unfoirtunately tables are not available.
    You can see the process of branch No. 50 on page 42.

    Thank you very much for your help.

    Christian

    Christian,

    I couldn't connect to your ws because I don't think that your guest user has developer privileges. But have you tried 'Back in the agenda key' property in the region of origin of your page DML process. This should return the value of the primary key newly generated in a page element when the page is loaded.

    Anthony.

    -----------
    http://anthonyrayner.blogspot.com

  • Unable to connect to the internet after you have reinstalled Windows

    It came with Vista on it, but it is basically screwed up... There was no recovery disk... so I did a clean install with a XP disk... all right except that I can't get on the internet... In the OTHER DEVICES ethernet controller PCI device, PCI Modem, SM Bus controller, unknown device and video controller (VGA Compatible) are all highlighted with a yellow question mark... Try to find the driver with my son's computer, but everything I find says that there in an internet search... until this problem is fixed, I can't connect to internet... Help, please! Thank you!!

    Hi Dreman1970,

    ·         What is the brand and model of the computer?

    Of yellow exclamation, PCI Modem and other devices Ethernet controller describes the drivers necessary for the device are missing.

    I suggest you use another computer connected to the internet to find your manufacturer's Web site. Then you need to find the driver to download links for your computer model. Once you have downloaded the drivers, you can transfer them to your computer and install them. Once the drivers are installed, you will be able to connect to the internet.

    See the following article for more information on installing the drivers:

    How to manage devices in Windows XP

    http://support.Microsoft.com/kb/283658

     

    Let us know if that helps.

Maybe you are looking for