Capturing file place command

I am placing a word document using File->Place command. I want to capture file place command as I have to show a dialog just after a file is placed.
I have a attached an observer to document.In Update() method I have written following code :
ICommand* cmd = (ICommand*)changedBy;
ClassID cmdClass = ::GetClass(cmd);
ICommand::CommandState cmdState = cmd->GetCommandState();
do
    if( cmdClass == kPlacePICmdBoss && cmdState == ICommand::kDone )
          this->ShowDialog();
}while(kFalse);
When I run my plugin dialog is shown two times after placing document ,which should not happen. How I  show my dialog just once.
When debugging call is going inside if block two times.(Therefore 2 dialogs are shown).
Also when I place document other way round i.e first create a text frame and then place document . In that case I am not able to capture file place command.
I also tried to apply resonder for file place signal , but that is also working in only one case(i.e second one and not first one)
Please help me out.

I am placing a word document using File->Place command. I want to capture file place command as I have to show a dialog just after a file is placed.
I have a attached an observer to document.In Update() method I have written following code :
ICommand* cmd = (ICommand*)changedBy;
ClassID cmdClass = ::GetClass(cmd);
ICommand::CommandState cmdState = cmd->GetCommandState();
do
    if( cmdClass == kPlacePICmdBoss && cmdState == ICommand::kDone )
          this->ShowDialog();
}while(kFalse);
When I run my plugin dialog is shown two times after placing document ,which should not happen. How I  show my dialog just once.
When debugging call is going inside if block two times.(Therefore 2 dialogs are shown).
Also when I place document other way round i.e first create a text frame and then place document . In that case I am not able to capture file place command.
I also tried to apply resonder for file place signal , but that is also working in only one case(i.e second one and not first one)
Please help me out.

Similar Messages

  • In CS4 Use of File Place Does Not Center Images

    I have been using CS3 for about 1 1/2 years, so of course had to give CS4 a try. I downloaded the trial. I immediately had an issue with File > Place.
    I often use File > Place to add additional items into a document. I believe the expected functionality of File>Place is that the file should then be centered in the document.
    Here is what I have done:
    + Create a 12"x12" document at 200ppi (I have also tried to create a document at 2400x2400 pixels)
    + Use File>Place to add a square 2400x2400 pixel image (JPG file) into the document
    + The added layer is now offset ever so slightly in the new document.
    + Further observation shows that the horizontal reference point is at 1202 (screen shot attached), thus creating an offset from center. I change it to 1200 and sure enough the paper is centered perfectly. I thought maybe changing it once would make it the same next time, but that is not the case.
    + When I used the File>Place command, I was zoomed out (25%), and the entire image was viewable on screen. If I zoom out further, say 8.33%, the offset is 1206.
    I am able to duplicate this on two different computers with the following configurations:
    Computer #1
    + Windows XP Professional Version 2002 SP2
    + AMD Athlon 64 X2 Dual Core Processor 6000+ (3.01GHz)
    + 4GB RAM
    + nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Computer #2
    + HP Pavilion dv9843cl Laptop
    + Windows Vista x64 SP1
    + Intel Core Duo processor T8100 (2.1 GHz)
    + 4GB RAM
    + nVidia GeForce 8600M GS with 512MB DDR dedicated graphics memory, ForceWare version 167.43
    + Video BIOS version: 60.83.4f.00.22
    Operating System: Windows XP Professional
    Browser: Firefox
    Video display card / driver version: nVidia GeForce 8600 GT, driver version 6.14.11.5819
    Screen shot (not sure if this works in these forums):
    [IMG]http://cdn-1-service.phanfare.com/images/external/1466784_1419796_53071200_Full_3/0_0 _41325929f3d5a1780af10559af98d829_1[/IMG]
    Any ideas?????
    ~ Kathleen

    "Place" ..... It is not all the easy to understand how place works without studying its behavior.  Often it will work in a way your not expecting if you do not understand how it works. There is a setting in Photoshop preferences Resize Image during Place. Un Checking this setting does not mean the image will not be resize nor does checking  this setting mean that it will be resize. On top on top of that the seems to be something in Photoshop on My system that keeps changing the setting to the checked state.
    What the heck am I writing am I trying to make this worse.  No I'm not.  To prove that I first tell you it is very easy to center position a placed layer in an action after the Place step add a step select all the two layer>Align layers to selection>Horizontal Center then vertical center. The deselect...
    Place....
    There is a lot going on remember in Photoshop a Layer can be any size  Larger/smaler/same as the canvas and can have any aspect ratio. If the placed image has more pixels them a canvas side size and the preference is checked the placed image will be transformed to fit within the canvas size. If not checked the placed image will transformed to the same dpi resolution so no pixels will be changed.    The only time a place image is not transformed is when the the preference is not checked and the placed image file has the same dpi as the current Photoshop Document.  In this cast the image is placed in at 100% size be it smaller/larger/same as canvas size.

  • Place command not appearing in file menu

    I click file and do not see the Place Command so I can insert picture. Where else could it be?

    Hold on a sec. Are you saying it appears in the File menu, but not in the context menu?
    That's normal -- I've been asking for years for Place to appear in context menus...
    Here's a script written a few years ago by Gerald Singelmann that will add the command to the context menu:
    //Add "Place" to the context menu by  Gerald Singelmann
    //Place this script into the "Startup Scripts" Folder inside the scripts folder in the app folder.
    #targetengine "session"
    ContextPlace();
    function ContextPlace(){
    var myResult = true;
    if(myResult == true){
    var myLayoutContextMenu = app.menus.item("$ID/RtMouseLayout");
    var myBeforeDisplayListener = myLayoutContextMenu.addEventListener("beforeDisplay", myBeforeDisplayHandler, false);
    function myBeforeDisplayHandler(myEvent){
    if(app.documents.length != 0){
    if(app.selection.length == 1){
    switch(app.selection[0].constructor.name){
    case "Rectangle":
    case "Oval":
    case "Polygon":
    case "GraphicLine":
    case "TextFrame":
    //Add the menu item if it does not already exist.
    if(myCheckForMenuItem(myLayoutContextMenu, "Place...") == false){
    myMakeMenuItem();
    break;
    default:
    if(myCheckForMenuItem(myLayoutContextMenu, "Place...") == true){
    myLayoutContextMenu.menuItems.item("Place...").remove();
    function myCheckForMenuItem(myMenu, myString){
    var myResult = false;
    try{
    var myMenuItem = myMenu.menuItems.item(myString);
    myMenuItem.name;
    myResult = true
    catch(myError){}
    //alert("Menu item found? " + myResult);
    return myResult;
    function myCheckForScriptMenuItem(myString){
    var myResult = false;
    try{
    var myScriptMenuAction = app.scriptMenuActions.item(myString);
    myScriptMenuAction.name;
    myResult = true
    catch(myError){}
    //alert("Script menu action found? " + myResult);
    return myResult;
    function myMakeMenuItem(){
    if(myCheckForScriptMenuItem("Place...") == false){
    //alert("Making a new script menu action!");
    var myMenuAction = app.scriptMenuActions.add("Place...");
    var myEventListener = myMenuAction.eventListeners.add("onInvoke", myEventHandler, false);
    var myPlaceMenuItem = app.menus.item("$ID/RtMouseLayout").menuItems.add(app.scriptMenuActions.item("Place..."));
    function myEventHandler(myEvent){
    //alert("Got to myEventHandler!");
    if(app.selection.length == 1){
    switch(app.selection[0].constructor.name){
    case "TextFrame":
    case "GraphicLine":
    case "Rectangle":
    case "Oval":
    case "Polygon":
    var myFile = File.openDialog ("Place file...", undefined, false);
    app.selection[0].place(myFile);
    break;
    } else {
    alert("Please select only one frame.");
    Copy the code above and paste into a plain text editor like Notepad. Save as type "all files" and add the .jsx extension. It should be placed into the application \Scripts\Startup Sripts subfolder and it will run when ID starts up. The folder should exist in CS5, but if not you can add it.
    Here's one by Dirk (I think Becker) that does the same thing to add No Break:
    #target "InDesign"
    /* This script will copy the existing menu action into a new menu item.
    The "$ID/" strings ensure it will even work with localized versions of InDesign.
    For permanent execution, save the script as startup script e.g. in a folder "path to InDesign/Scripts/new folder/startup scripts".
    Dirk
    ( function () {
    var anb = app.menus.itemByName("$ID/CharPanelPopup").menuItems.itemByName("$ID/Apply no break");
    var atc = app.menus.itemByName("$ID/RtMouseText");
    try {
    atc.menuItems.itemByName(anb.name).remove();
    } catch( ex ) {};
    atc.menuItems.add(anb.associatedMenuAction,LocationOptions.BEFORE,atc.menuItems .itemByName("$ID/ClearAllOverrides"));
    Do the same for it.

  • File Name in Place command changes

    I have Photoshop CS5 on a MAC and have developed actions that use the Place command. 
    The initial recorded action places a file called FILENAME.PSD into the currently open file. 
    If I use the Finder to rename this external file (outside of Photoshop) to FILENAMEBAK.PSD, Photoshop will keep track of that change and change the file referenced in the Place command to FILENAMEBAK.PSD.   My intention was to back up the original file and replace it with another new revised file.  If I then put another file with the name FILENAME.PSD into the same folder, Photoshop will still keep track of the original file regardless of the name change.   
    I have also tried doing this with Photoshop completely closed and yet it still keeps track of the original file.  Surprisingly, I've even moved the original file to the trash and the Place command in the action will still find the file in the trash. 
    Can someone help me understand exactly how Photoshop is keeping track of the file?  I always assumed actions were very unintelligent and simply followed the instructions as they were written but in this case, the action is somehow linked to the file and it's not just the file name. 
    Any help/insight is appreciated.
    Rob

    so I don't know when this changed
    To be honest, It may never have changed. Whenever I have tried to have files linked with Actions I have pysically replaced the file. Its very easy to duplicate files by option (alt) dragging them, thats how you create a copy in OSX. You then can then over-save the original with an amended version.
    Another probably better solution open to you in Photoshop, that you may not be aware of, is to use Smart Objects and the "Replace Contents" feature? This can also be automated.  
    The problem is that what the Action step says about the files location and name is in fact technically inaccurate if you move or rename the file.
    What I'm trying to figure out now is how I can manage symbolic links manually.  Or, is there something in Photoshop where I can force the action to look only at the specified name and path.   
    I don't have time now to experiment with this now, but you could try rebuilding the "Launch Services" or "Display of Folders content" databases. I don't know if this will work. But one word of warning - Its not a quick process!

  • Place command - ai files multiple artboards

    Hi everyone,
    When I use place command for .ai files that contain multiple artboards, InDesign does not import all fo them, just artboard nr.1.
    Is there a way to specify / select the number of artboards I would liek to be placed, selectively?
    Thanks,
    Cristi

    Thanks alot, I've failed to see that option. I am tired, I need a holly day. Two weeks form now on, i get one, after 6 month of work
    Thank you guys.

  • Hello, I have CS3 and the "place" command in Illy will no longer place PS files.  Can anyone help?

    Hello, I have CS3 and the "place" command in Illy will no longer place PS files.  Can anyone help?

    Nobody can know. You have not provided any system info or other technical details like what your PSD files actually contain, their color modes and a ton of other things. Either way, ask in the AI forum and provide the necessary info.
    Mylenium

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • Multi-Image support for command File- Place

    It would be quite time saving . . . "Value Add" to be able to select multiple images in Bridge and be able to do File->Place->Photoshop.
    This would create an automation loop such each image that was selected in Bridge would be place by the user consecutively.
    Obviously this Architectual change would be usefull in other places . . . not just Place->Photoshop.
    Community Thoughts?
    Steven Bland

    Hi Kruger,
    I have already looked into these documentation. Our portal is in version 7.0, so it is not applicable.
    I have to maintain the multi language for folders in KM of SAP EP 7.0
    Thanks,
    Mahendran B.

  • File Place does not appear on my menu. Neither does Tools Photoshop Image processor.

    In Bridge File>Place is grayed out on my menu. Tools>Photoshop>Image processor does not appear at all.  I have reset the preferences numerous times and am good to go until I shut down my computer.  When I reboot they are gone again.  I have a Mac with OS 10.10.2 (Yosemite) and CC. 

    Mardi Carter wrote:
    I shut down using "Shut Down" under the Apple menu.....always…
    Well, that's fine for the OS, but sometimes not so great for Photoshop.  Try QUITTING Photoshop from the Photoshop menu, or by Command Q, before you get anywhere near your Apple menu .
    Gene gave you sound advice, but don't forget to run Repair Permissions with Apple's Disk Utility before and after any installation, upgrade or update of the OS or any application.
    You'd think that shouldn't be necessary, but it is indeed vital, indispensable routine maintenance.
    Forget about "it had never happened before", Yosemite is a work in progress.  Apple never gets a major OS X release right until about the dot four or five release, so Yosemite has a way to go before it's at 10.10.4 or 10.10.5.  That has proven to be the nature of the beast.

  • How do I add time/date stamp to my screen capture file names?

    I'm on mac osx.
    I'm trying to add time/date stamp to my screen capture file names. (at the moment it's just 'Picture 1' etc..)
    I've tried the following command  in terminal but have not had success. please help!!
    defaults write com.apple.screencapture name "datestamp" at "timestamp"
    killall SystemUIServer

    Surely someone else will provide a better solution. Meanwhile, however, you might want to try the following script. Copy and paste the script into the AppleScript Editor's window and save it as an application. Then drop your screen capture files on the droplet's Finder icon.
    on open theDroppedFiles
        tell application "Finder"
            repeat with thisFile in theDroppedFiles
                set theFileName to name of thisFile
                if (word 1 of theFileName is "Picture") and ¬
                    (word 2 of theFileName = word -2 of theFileName) then
                    set theExtension to name extension of thisFile
                    set P to offset of theExtension in theFileName
                    set theCreationDate to creation date of thisFile
                    set dateStamp to short date string of theCreationDate
                    set timeStamp to time string of theCreationDate
                    set name of thisFile to "Screen Shot " & dateStamp ¬
                        & " at " & timeStamp & "." & theExtension
                end if
            end repeat
        end tell
    end open
    Message was edited by: Pierre L.

  • Bridge place command no longer works for indesign 2014

    Bridge place command no longer works for indesign 2014. It only gives Photoshop as an option. How can I get all other Adobe programs listed under Place ?

    Your post sounds like an InDesign question. 
    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
    Thanks!
    B

    IM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
    regard to the dates? I would need an example like for lets say the month of
    Nov. I try to paste this and save it in the script editor but it keep
    saying that the file cannot be saved. Any ideas? Please bear in mind your
    speaking to a guy who has like zero knowledge when it comes to scripts.
    Best regards,
    Robert
                                                                                    From:       tomaxxi <[email protected]>                                                                               
    To:         Robert Borchardt <[email protected]>                                                                               
    Date:       11/08/2010 03:29 PM                                                                               
    Subject:    Scripting to load all pdfs in a month into the place command?                                                                               
    Sorry for delay...
    I just tested script and it's working fine for me here.
    I created 4 sample PDF-s with just one page, then started script,
    selected exported PDF-s, script sorts them by creation date and loads
    placegun.
    So, all you need to do, is to start script and select documents you want to
    place.
    I changed script little, so make sure you use this one:
    if(app.documents.length != 0){
        var myFiles = File.openDialog("Select Files:", "*.pdf", true);
        if(myFiles != null){
            myFiles.sort(function ( a, b )
                    if ( a.created < b.created )
                        return -1;
                    if ( a.created > b.created )
                        return 1;
                    return 0;
            app.activeDocument.place(myFiles);
        }else{
            alert("No files selected!");
    }else{
        alert("No documents opened!");
    tomaxxi
    http://indisnip.wordpress.com/

  • The place command in Bridge14, not link to photoshop14?? anyone help me

    The place command in Bridge14, not link to photoshop14?? anyone help me

    Do you have a Sony Vaio?  Many Vaio owners have seen this exact problem. There is some Sony media management software often preinstalled on Vaio systems that causes a conflict with iTunes saving its library database file.  See this Apple support article:
    http://support.apple.com/kb/TS2715
    and Redkeefy's post in this thread:
    http://discussions.apple.com/message.jspa?messageID=8537277#8537277
    It's not impossible that other media software on other systems might cause the same problem, though I haven't heard of any specifics.
    Regards.

  • Where is the simple "place" command in Photoshop cc?

    I am using photoshop cc and  cannot find the "place" command.  All I have under file is "place embedded and place linked.  Will you be able to help me?

    There are two place options now,  Instead of just adding Place Link and leaving the old place option Adobe renamed Place to Place embedded and may have change its operation a bit. Old code that use place still works.  And both Place Embedded and Place Linked add smart object layer that have copies of the original file in the layers embedded object.  So they are independent from the original. However the Place Linked object is also linked to the original file.  If the document is open when the original file is updated and committed the smart object layer will be automatically updated. If its not open and later opened in the future you will be informed that the original file has been updated or that the link was broken because the file was either moved or delete.  In Layer menu smart objects several new options have been added one can be used to resolve broken links. I would think if one was to open a linked smart object layer the the original file or the resolved file would be open. If the link was not resolved the object would the be changed to a Place Embedded layer and the file copy would be used. I have not tested this so what is written is just a guess on my part for I do not have a need for Place Linked....

  • Where is the Mac Place command using icloud version of CS6 Photoshop?

    I am a beginner and I am following the online tutorials.
    The problem is that when I go to 'File - Place', there is no Place command, only 'Place Embedded' and 'Place Linked' commands.
    Are these the same as the Place button? Confused...
    Thanks

    This video explains the difference well.
    Place embedded and place linked in Photoshop CC on Vimeo
    Gene

Maybe you are looking for

  • Will an X220 drive a Dell UP2414Q 4K 3840 x 2160 Monitor via Display Port?

    I've not been able to find any information about this on the web and there is definitely some confusion about DisplayPort versions - could some one answer the question will an X220 drive a Dell UP2414Q 4K IPS Monitor at it's native resolution of 3840

  • DEVLDR when shutting down with sblive

    Hi, I am getting a message about a DEVLDR program not responding when I shut down. I have installed the sbli've5. drivers for my card from its disc. I used to know how to fix this but I have forgotten and I've been unable to find the answer on the ne

  • Service Entries

    Hello, Trying to post a service entry and received error message no SE364 - No overall limit of  ---- for unplanned services exist.  I looked at the PO and see the dollars are not available for amount they want to post.  However, I also noticed the G

  • Registering Portal in Oracle Ultra Search

    Hi, I am in the process of setting up Oracle Ultra Search. I have followed the documentation down as far as Configuring Ultra Search to Index Portal Pages and I get to the point where I am adding the OracleAS Portal registration details. I am not sur

  • My image is large and loads slowly.  Is there anything I can do besides size it down?

    HI, Please go here http://www.dahlingroup.com/ You'll see a large image that takes a few seconds to load. In the web, we know this is far too long. The site is about architecture and the images have to stay big. That being said, I've seen sites where