How ot duplicate layer to the new document?

This code provide duplicate the layer in the current document.
It must some keyTo param. but what arguments is?
Auto_Ref docRefs;
Auto_Desc docDescs;
Auto_Desc results(false);
error = sPSActionReference->PutIdentifier(docRefs.get(),
classLayer,
LayerID);
error = sPSActionDescriptor->PutReference(docDescs.get(),
keyNull,
docRefs.get());
error = sPSActionControl->Play(&result,
eventDuplicate,
docDescs.get(),
plugInDialogDontDisplay);

Not sure what you are looking for as an answer. If you are looking about info on how to properly construct the eventDuplicate I would use the Listener plug-in and look at the log files to figure out what key/value to use in your Play command.

Similar Messages

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?

    I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?

    As Jim said View > Show Duplicates
    or
    Option + View > Show Exact Duplicates

  • How do you view duplicate songs on the new iTunes?

    How do you view duplicate songs on the new iTunes?

    Hi,
    From view menu, you can select show duplicate item. If you hold option key whilst selecting view menu, show exact duplicates becomes available.
    Jim

  • HT2905 how to get rid of duplicate songs on the new itunes 11

    how do i rid duplicate songs on the new itunes?

    Happened to me a while ago i removed all my music from my ipad and all the duplicates were still on it so i deleted them 
    1. plug in youre device and sync with itunes
    2. MAKE SURE ALL YOURE MUSIC IS SAVED AND IS IN YOURE ITUNES ACCOUNT
    3. go to music on youre device and uncheck the box and it'll ask if you want to remove all music click yes
    4. after the sycn check youre device and the duplicates should still be on youre device delete them and re-sync and  you shouldn't have duplicates any more
    I believe this happens when you buy a song on youre device then sync with youre pc
    hope this helped

  • How do I by default save new documents in a particular folder?

    In OS10.3.9, how do I by default save new documents in a particular folder? I have created a new folder called new docs which I have put in the dock, and would like to save all new documents in that folder...
    Thanks,
    Michael

    ibisbill:
    I think you need to navigate to the Folder when you want to save. If you are saving documents created in Word, after a while Word may learn the location and go there.
    Incidentally, the folder in the Dock was created and resides elsewhere. That is where you will need to navigate to when you save.
    Good luck.
    cornelius

  • Opening Word document templates from the New Document drop down does not open Word

    I have a document library with a number of Content Types attached to it.  Each one has a different Word document attached.  We have an intermittent problem where when you click to open one of these templates from the 'New Document' drop
    down list that nothing happens. The workaround appears to be either open Word first or re-boot the computer.  I think there is a problem with SharePoint not linking in with Word correctly.  Does anyone have any suggestions on how to fix this?
    Thanks
    Julie
    J Sykes

    Hi J,
    Can you please check in your internet explorer whether MS office Add ons enable or not.
    If not enable that and restart your browser and try again.
    Also try to repair MS Office if issue still persist.
    Regards
    Soni K

  • HT3281 anyone know how to delete podcasts off the new itunes please

    Hi
    Does anyone know how you delete podcasts of the new I-Tunes please
    Thank you 

    The show duplicates/show exact duplicates features have been left out of iTunes 11. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file.
    There is also my DeDuper script if you don't want to do it by hand. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    tt2

  • I try to copy a selection into new blank canvas however the layer in the new canvas becomes gray/black/white, did i wrongly click on something ? Please help , Thank you in advance

    Hi Gurus,
    I have a beginner in photoshop , I tried to copy a selection into new blank canvas however the layer in the new canvas becomes gray/black/white, did i wrongly click on something ? Please help , Thank you in advance

    How did you open the new document? What Image mode is the document in and what exactly did you copy to the clipboard? What was the current Photoshop target when you did the copy? Was it a straight copy or a copy merge etc...

  • How can I print ONLY the active document?

    Whenever I go to File/Print the darn PSE 9 program sends all of the working files in the bin to the printer. I've searched online for 2 hours now looking for an answer.
    I like to work with having several to many files in the 'bin' and prefer to only print the active file I'm currently working on without having to close the 'working files' before I can print. How can I print ONLY the active document or file in the project bin? Please help, I've upgraded from PSE 3 to PSE 9 and really like the updated features, but this one pain in the neck default is getting the best of me.

    Thanks for your help, that works nicely. It is good to have control of the printer again.

  • How to log in to the new installed SAP ABAP instance ?

    Dear Experts,
    In SAP ERP 2005 installation,
    I have done central system installation, Now I need to perform postinstallation steps,
    Could you please tell me,  how to log in to the new installed SAP ABAP instance and do the post installation?
    Regards,
    Madhavan K

    Hi,
    Check the list of post installation steps:
    http://www.saptechies.com/post-installation-steps-for-ecc-60/
    From my point of view basic post installation steps are:
    - Installing SAP License (from http://service.sap.com/licensekeys)
    - Setup TMS  (STMS)
    - Import profiles (RZ10)
    - Client Copy (SCC*)
    - Create users (SU01)
    However further many steps are required as per your requirements. Cehck the link for more detailed steps.
    Regards,
    Srikishan

  • I ordered a battery for my laptop because it said to replace battery soon.  How long can I let the new battery sit around as I wait for the old one to run out of more charge?

    I ordered a battery for my laptop because it said to replace battery soon.  How long can I let the new battery sit around as I wait for the old one to run out of more charge?  Will the new one become less effective if it sits around too long?

    How much capacity is remaining on your current battery?
    Check your power status
    From the  menu: Hold OPTION and click System Information... èHardware è Power
    Copy and Paste in your reply.
    The new battery will become less effective if you store it in a hot or humid environment. It should be stored at room temperature (22 C).
    Long term storage (6 months):
    Apple recommends that you store the battery with a 50% charge. If you store a battery when it’s fully discharged, it could fall into a deep discharge state, which renders it incapable of holding any charge. Conversely, if you store it fully charged for an extended period of time, the battery may experience some loss of battery capacity, meaning it will have a shorter life.
    http://www.apple.com/batteries/

  • Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    If you have all your music on the cmputer then i would connect up my phone uncheck the Sync Music option and apply.
    This should take all the music off your phone .Then you can resync the music back on to it.
    If this doesn't work maybe a restore to factory settings and start from scratch is the way to go

  • HT5621 I recently changed my apple ID but the old on is still on my iCloud account. The old address is dimmed on iCloud on my iPad so I can't change it. How do I change to the new address?  I don't want to delete the account as I don't want to lose the pi

    I recently changed my apple ID but the old on is still on my iCloud account. The old address is dimmed on iCloud on my iPad so I can't change it. How do I change to the new address?  I don't want to delete the account as I don't want to lose the pictures

    To change it, you have delete the existing account.  However you can avoid losing any pictures in the process.  To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.  (Camera roll photos are not effected by deleting the account.)
    Then go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.

  • How do I deal with the"new itunes library" fiasco

    how do I deal with the "new itunes library" fiasco...?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

Maybe you are looking for