Active document must to move one location

Hi
When i open file in Original location that file need to be move in desktop. When file was moved Original location file must be delete.
File must be move in one location to another loaction.
Please help me.

sasientry wrote:
yes JJMACK
I need a photoshop script for mac and pc.
When i open file in photoshop after i run script active document must save in my desktop but i dont need source file where i was opened that file must tohe delete
For the script to work on both platforms then you need to write it in java script.  Retrive the full file path of the file assocated with the current document into a File varaible with a name like currentFile something like this
try{
var test = app.activeDocument.fullName.displayName;
}catch(e){
   alert("Error, File Not Saved.");
if (test){
var currentFile = new File(app.activeDocument.fullName.fsName);
then save the document to your desktop "~/desktop/" + newFile
After that delete to original file with
currentFile.remove();
else { save document to desktop }

Similar Messages

  • How to Select the Document just back of the Active Document

    If there are 5 documents open in photoshop I want to select the document just behind or back of the Active Document , using script.
    One of my friend suggested me the bleow script, but it is selecting the previous document, not exactly the document back of the active document.
    please help me.
    var id85 = charIDToTypeID( "slct" );
        var desc21 = new ActionDescriptor();
        var id86 = charIDToTypeID( "null" );
            var ref11 = new ActionReference();
            var id87 = charIDToTypeID( "Dcmn" );
            ref11.putOffset( id87, -1 );
        desc21.putReference( id86, ref11 );
    executeAction( id85, desc21, DialogModes.NO )

    I had the same problem. I did not want to go back to the "last viewed" doc but to the doc opened before the active one.
    I use this on F1 key to go back to the previous opened document (index order -1).
    It works great.
    #target photoshop
    // Go back to the last opened doc. If it is the oldest opened one it does not give error window and stays on it.
    if(documents.length>0) {
        var thisIndexImage = getActiveDocumentIndex();
        var theDocs = app.documents;
        if ( thisIndexImage != 0 ) {
            var openedBefore = theDocs[thisIndexImage - 1];
            } else {
            var openedBefore = theDocs[0];
        app.activeDocument = openedBefore;
    } else {
        alert ("You need to have any opened documents to apply this script.")
    // Functions
    function getActiveDocumentIndex(){
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
         return desc = executeActionGet(ref).getInteger(stringIDToTypeID('itemIndex'))-1;

  • In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    May you open your eyes before creating a new thread ?
    Your question was already asked and answered today.
    https://discussions.apple.com/thread/3177074?tstart=0
    Yvan KOENIG (VALLAURIS, France) jeudi 14 juillet 2011 14:40:40
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Offer Multiple choice for movies playing in one location (Newbie)

    Hi,
    I'm definitely a Flash C3 newbie (newbie for all of flash!).
    I've been able to figure out how to embed a flash movie in my web
    page, but now I need to offer the user a choice of which movie to
    play - and then start that movie in one location... this must be
    CSS compliant and HTML STRICT... I think I need to address this
    through Flash, as I can't figure out how to do it via HTML or
    CSS... Help me, please.

    The steps are correct but you've left out the one that adjusts the 2 through 9 movies position as compared to the others.
    The first video would hold a position of 0,0 (upper left). When you add the second video you need to adjust its "offset" to position it next to but not overlapping the first. Since your videos are 100X75 you would set the offset of the second track too 100,0 (100 pixels to the right of the original and 0 pixels different in height). The third would be 200,0 offset.
    On the second row your first file would be 0,75 (75 pixels below the upper video). The second file on the second row would be offset 100,75 and the third would be 200,75.
    The third row would be 0,150 followed by 100,150 and 200,150.
    You could add a slight "border" between each video and give it a color by using the bgcolor="your color" (standard html color codes) and adding that space by adjusting the offset plus your border width in pixels. Hollywood Squares style of video.
    http://homepage.mac.com/kkirkster/03war/ one of my older files that uses multiple track video playback of a QuickTime file. The "TV" set is a track and the video that plays "inside" it is another. The still image movies are also separate tracks and QuickTime .mov files can hold up to 99 tracks.

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • OpenScript: 1.     How to move the scripts from one location to another location. in OpenScript; Copy, paste or Import, export

    How to move the scripts from one location to another location. Copy, paste or Import, export

    Both way you can do.. Difference is - if you copy paste to another folder script dependencies will not move with the same( ie Assets added), whereas if you export and import the script all dependencies will be correlated automatically

  • How can I move paragraph formats from one document to a new one?

    How can I move paragraph formats from one document to a new one?

    > How can I move paragraph formats from one document to a new one?
    Have both open.
    File > Import > Formats
    Import from Document: [ nameofsource.fm ]
    [ Deselect All ]
    [*] Paragraph Formats
    [ Import ]
    Now, do the existing paras in the importing document have exactly the same names?

  • Suggestion: Invert shading that reflects active document tab

    It's a pretty minor thing, but I'd suggest flipping how you distinguish between the active document tab vs the inactive ones when using the dark interface. I can get the logic of having the brightest tab representing the one you're actually working on, but for some reason I keep clicking the wrong tab when I want to switch between documents - it took me a little bit to work out why: you represent the active tool by shading it darker and recessing it slightly, so it should make sense that the active tab is also the one that is darker and appears recessed, otherwise I'm trying to hold two representations of status in my mind that are exactly oposite to each other, yet located very close to each other on the screen. And unless I'm very precisely caffeinated, I'm just not equipped to deal with that sort of contradiction.

    Contact Sheet is a welcome return. So many features can be adapted. I made this a few years ago by sizing up 40 images, and turning off titles, and ‘Flatten Layers’ when making the contact sheet. It was then fairly simple to FT each layer to give some overlap, and use Layer masks for creative affect.
    It was eventually incorperated into a poster for the organisation running the event.
    Some interesting JDIs  (thanks so much for the typed list!).
    The Eye dropper changes appeal to me, and Ctrl J now working on Groups is very welcome.  Lots more there, but what worries me is that there are apparently twice as many new JDIs in CS6 as there were in CS5, which makes me think I must be missing a lot of the CS5 JDIs.  is there a list somewhere?

  • Modeless dialogs and the active document

    I have a modeless dialog (Qt) that contains a checkbox to toggle off and on annotations that our plugin draws.  When the user clicks the checkbox, it calls a function in the plugin code that ultimately makes a call to AIAnnotator->SetAnnotatorActive().  When passing in false, the annotations stop drawing, as expected.  But when passing in true, the annotations don't draw (the plugin doesn't even get the kCallerAIAnnotation message) until the modeless dialog moves or the Illustrator window gets focus.
    I have tried to force a redraw and a bunch of other things to try to get the annotations to start drawing, but none of them work.  One thing I found interesting (and is the root of the problem, I suppose) is that at the point the user clicks the checkbox in the modeless dialog, making a call to AIDocument->GetDocument() returns DOC?, which means there isn't an active document.  Without an active document, none of the calls to redraw the window or invalidate the current view will work.
    Have any of you experienced this before and come up with a solution?  I'm really at a loss on what to do.

    Thanks for the response.
    Maybe I'm not calling the AIAppContextSuite functions at the correct time, but they don't seem to do anything in this situation.  I'm pushing the context right before I display the Qt dialog (at which point I have a document and a view), but when the checkbox is clicked, calling AIDocument->GetDocument still indicates there isn't a document.  These click events happen in the Qt event thread, not the plug-in message thread, but I don't believe the click itself is the problem.

  • Proxy generation terminated: Message must have exactly one part

    hi experts,
    i have tryed to create a proxy in abap but it gives an error message
    Proxy generation terminated: Message must have exactly one part
    Message no. SPRX046
    can any one help me
    the wsdl document is
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions">
    &#8722;
         <wsdl:types>
    &#8722;
         <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
    &#8722;
         <xsd:simpleType name="char1">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char10">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="10"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char100">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="100"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char20">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="20"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char220">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="220"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char30">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="30"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char32">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="32"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="char50">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="clnt3">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="numeric15">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="15"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="numeric3">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:simpleType name="numeric6">
    &#8722;
         <xsd:restriction base="xsd:string">
    <xsd:maxLength value="6"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    &#8722;
         <xsd:complexType name="ZCAF_DEP_QUEST">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="DEPQTN_ID" type="tns:numeric15"/>
    <xsd:element name="QTNID" type="tns:numeric15"/>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_ANSWER_META">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="HAS_COMMENT" type="tns:char1"/>
    <xsd:element name="HAS_MULTI_CHOICE" type="tns:char1"/>
    <xsd:element name="MULTISELECT_ALLO" type="tns:char1"/>
    <xsd:element name="NA_POSSIBLE" type="tns:char1"/>
    <xsd:element name="DATA_TYPE" type="tns:char1"/>
    <xsd:element name="VALUE_TYPE" type="tns:char1"/>
    <xsd:element name="DISPLAY_TYPE" type="tns:char1"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_QUEST_GROUP">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="QTNGRPID" type="tns:numeric15"/>
    <xsd:element name="TITLE" type="tns:char30"/>
    <xsd:element name="REPLACE_TEXT" type="tns:char30"/>
    <xsd:element name="LANGUAGE" type="tns:char10"/>
    <xsd:element name="DESCRIPTION" type="tns:char30"/>
    <xsd:element name="HEADER_TEXT" type="tns:char20"/>
    <xsd:element name="CREATED_BY" type="tns:char20"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="RELEASE_STATUS" type="tns:char10"/>
    <xsd:element name="VERSION" type="tns:char10"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_COMMENT_ANS">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="COMMENT_ANS_ID" type="tns:numeric15"/>
    <xsd:element name="ANSSHEET_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    <xsd:element name="TEXT_COMMT_ID" type="tns:numeric15"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_ANS_CHOICE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="HAS_COMMENT" type="tns:char1"/>
    <xsd:element name="SEQ_NUM" type="xsd:int"/>
    <xsd:element name="ANSWER_TEXT" type="tns:char50"/>
    <xsd:element name="LANGUAGE" type="tns:char10"/>
    <xsd:element name="WEIGHT" type="xsd:int"/>
    <xsd:element name="HAS_DEP_QTN" type="tns:char1"/>
    <xsd:element name="HAS_DEP_QTNGRP" type="tns:char1"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_QUESTION">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="QTNID" type="tns:numeric15"/>
    <xsd:element name="QTNGRPID" type="tns:numeric15"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="QTN_TEXT" type="tns:char100"/>
    <xsd:element name="LANGUAGE" type="tns:char10"/>
    <xsd:element name="CREATED_BY" type="tns:char20"/>
    <xsd:element name="QTNWEIGHTAGE" type="xsd:int"/>
    <xsd:element name="VERSION" type="tns:char10"/>
    <xsd:element name="RELEASE_STATUS" type="tns:char10"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_MULTI_ANS">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="MULTIPLE_ANS_ID" type="tns:numeric15"/>
    <xsd:element name="ANSSHEET_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    <xsd:element name="ANSWER_TEXT" type="tns:char50"/>
    <xsd:element name="ANS_VALUE" type="xsd:int"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_COMENT_TEXT">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="TEXT_COMMT_ID" type="tns:numeric15"/>
    <xsd:element name="TEXT_COMMENT" type="tns:char50"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_DEP_QTNGRP">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="DEP_QTNGRP_ID" type="tns:numeric15"/>
    <xsd:element name="QTNGRPID" type="tns:numeric15"/>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_ANS_SHEET">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="ANSSHEET_ID" type="tns:numeric15"/>
    <xsd:element name="QTNRID" type="tns:numeric15"/>
    <xsd:element name="STATUS" type="tns:char1"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_QTNR_QTNGRP">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="QTNRID" type="tns:numeric15"/>
    <xsd:element name="QTNGRPID" type="tns:numeric15"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_QUESTIONIRE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="MANDT" type="tns:clnt3"/>
    <xsd:element name="QTNRID" type="tns:numeric15"/>
    <xsd:element name="TITLE" type="tns:char30"/>
    <xsd:element name="REPLACE_TEXT" type="tns:char30"/>
    <xsd:element name="LANGUAGE" type="tns:char10"/>
    <xsd:element name="DESCRIPTION" type="tns:char30"/>
    <xsd:element name="HEADER_TEXT" type="tns:char20"/>
    <xsd:element name="CREATED_BY" type="tns:char20"/>
    <xsd:element name="RELEASE_STATUS" type="tns:char10"/>
    <xsd:element name="VERSION" type="tns:char10"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="BAPIRET2">
    &#8722;
         <xsd:sequence>
    <xsd:element name="TYPE" type="tns:char1"/>
    <xsd:element name="ID" type="tns:char20"/>
    <xsd:element name="NUMBER" type="tns:numeric3"/>
    <xsd:element name="MESSAGE" type="tns:char220"/>
    <xsd:element name="LOG_NO" type="tns:char20"/>
    <xsd:element name="LOG_MSG_NO" type="tns:numeric6"/>
    <xsd:element name="MESSAGE_V1" type="tns:char50"/>
    <xsd:element name="MESSAGE_V2" type="tns:char50"/>
    <xsd:element name="MESSAGE_V3" type="tns:char50"/>
    <xsd:element name="MESSAGE_V4" type="tns:char50"/>
    <xsd:element name="PARAMETER" type="tns:char32"/>
    <xsd:element name="ROW" type="xsd:int"/>
    <xsd:element name="FIELD" type="tns:char30"/>
    <xsd:element name="SYSTEM" type="tns:char10"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZCAF_ST_GET_QUESTIONNAIRE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="QTNID" type="tns:numeric15"/>
    <xsd:element name="QTN_TEXT" type="tns:char100"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="HAS_COMMENT" type="tns:char1"/>
    <xsd:element name="HAS_MULTI_CHOICE" type="tns:char1"/>
    <xsd:element name="MULTISELECT_ALLO" type="tns:char1"/>
    <xsd:element name="NA_POSSIBLE" type="tns:char1"/>
    <xsd:element name="DATA_TYPE" type="tns:char1"/>
    <xsd:element name="VALUE_TYPE" type="tns:char1"/>
    <xsd:element name="DISPLAY_TYPE" type="tns:char1"/>
    <xsd:element name="ANS_CHOICE" type="tns:ZTCAF_GET_ANS_CHOICE"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZSCAF_ANS_CHOICE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="ANS_CHOICE_ID" type="tns:numeric15"/>
    <xsd:element name="ANS_META_ID" type="tns:numeric15"/>
    <xsd:element name="HAS_COMMENT" type="tns:char1"/>
    <xsd:element name="SEQ_NUM" type="xsd:int"/>
    <xsd:element name="ANSWER_TEXT" type="tns:char50"/>
    <xsd:element name="LANGUAGE" type="tns:char10"/>
    <xsd:element name="WEIGHT" type="xsd:int"/>
    <xsd:element name="HAS_DEP_QTN" type="tns:char1"/>
    <xsd:element name="HAS_DEP_QTNGRP" type="tns:char1"/>
    <xsd:element name="DEP_QTN" type="tns:ZTCAF_DEP_QTN"/>
    <xsd:element name="DEP_QTNGRP" type="tns:ZTCAF_DEP_QTN_GRP"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZTCAF_GET_DATA_QUESTIONNAIRE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZCAF_ST_GET_QUESTIONNAIRE"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZTCAF_GET_ANS_CHOICE">
    &#8722;
         <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZSCAF_ANS_CHOICE"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZTCAF_DEP_QTN">
    &#8722;
         <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZCAF_DEP_QUEST"/>
    </xsd:sequence>
    </xsd:complexType>
    &#8722;
         <xsd:complexType name="ZTCAF_DEP_QTN_GRP">
    &#8722;
         <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZCAF_DEP_QTNGRP"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    &#8722;
         <wsdl:message name="ZMCAF_CRUD_QUESTIONNAIRE">
    <wsdl:part name="IS_ANSCHOICE" type="tns:ZCAF_ANS_CHOICE"/>
    <wsdl:part name="IS_ANSMETA" type="tns:ZCAF_ANSWER_META"/>
    <wsdl:part name="IS_ANS_SHEET" type="tns:ZCAF_ANS_SHEET"/>
    <wsdl:part name="IS_COMM_ANS" type="tns:ZCAF_COMMENT_ANS"/>
    <wsdl:part name="IS_COMM_TXT" type="tns:ZCAF_COMENT_TEXT"/>
    <wsdl:part name="IS_DEPQTN" type="tns:ZCAF_DEP_QUEST"/>
    <wsdl:part name="IS_DEPQTNGRP" type="tns:ZCAF_DEP_QTNGRP"/>
    <wsdl:part name="IS_MULT_ANS" type="tns:ZCAF_MULTI_ANS"/>
    <wsdl:part name="IS_QTNR_QTNGRP" type="tns:ZCAF_QTNR_QTNGRP"/>
    <wsdl:part name="IS_QTN_GRP" type="tns:ZCAF_QUEST_GROUP"/>
    <wsdl:part name="IS_QUESTION" type="tns:ZCAF_QUESTION"/>
    <wsdl:part name="IS_QUESTIONNAIRE" type="tns:ZCAF_QUESTIONIRE"/>
    <wsdl:part name="IV_CHOICE" type="tns:char1"/>
    <wsdl:part name="IV_QTNR_ID" type="tns:numeric15"/>
    <wsdl:part name="IV_TYPE" type="tns:char10"/>
    </wsdl:message>
    &#8722;
         <wsdl:message name="ZMCAF_CRUD_QUESTIONNAIREResponse">
    <wsdl:part name="ET_QTNR_GET_DATA" type="tns:ZTCAF_GET_DATA_QUESTIONNAIRE"/>
    <wsdl:part name="RETURN" type="tns:BAPIRET2"/>
    </wsdl:message>
    &#8722;
         <sap:Feature name="design_0 " uri="http://www.sap.com/webas/630/soap/features/authentication/">
    &#8722;
         <sap:Property qname="n0:AuthenticationLevel">
    <sap:Option value="n0:Basic"/>
    </sap:Property>
    </sap:Feature>
    &#8722;
         <wsdl:portType name="zwsquestionnaire">
    <sap:useFeature feature="tns:design_0 "/>
    &#8722;
         <wsdl:operation name="ZMCAF_CRUD_QUESTIONNAIRE">
    <wsdl:input message="tns:ZMCAF_CRUD_QUESTIONNAIRE"/>
    <wsdl:output message="tns:ZMCAF_CRUD_QUESTIONNAIREResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    &#8722;
         <wsdl:binding name="zwsquestionnaireSoapBinding" type="tns:zwsquestionnaire">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    &#8722;
         <wsdl:operation name="ZMCAF_CRUD_QUESTIONNAIRE">
    <soap:operation soapAction=""/>
    &#8722;
         <wsdl:input>
    <soap:body use="literal" namespace="urn:sap-com:document:sap:rfc:functions"/>
    </wsdl:input>
    &#8722;
         <wsdl:output>
    <soap:body use="literal" namespace="urn:sap-com:document:sap:rfc:functions"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    &#8722;
         <wsdl:service name="zwsquestionnaireService">
    &#8722;
         <wsdl:port name="zwsquestionnaireSoapBinding" binding="tns:zwsquestionnaireSoapBinding">
    <soap:address location="http://localhost:8000/sap/bc/srt/rfc/sap/ZWSQUESTIONNAIRE?sap-client=000"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    OK , could you please help me?
    SAP error message;
    Proxy generation terminated: Message must have exactly one part
    Diagnosis
    In a WSDL document, a <message> must contain exactly one <part>, therefore:
    <message name="check_serviceHttpGetIn">
    <part .../>
    </message>
    WSDL document;
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
       <wsdl:types>
         <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
           <s:element name="check_service">
             <s:complexType />
           </s:element>
           <s:element name="check_serviceResponse">
             <s:complexType>
               <s:sequence>
                 <s:element minOccurs="1" maxOccurs="1" name="check_serviceResult" type="s:boolean" />
               </s:sequence>
             </s:complexType>
           </s:element>
           <s:element name="get_puantaj_data">
             <s:complexType>
               <s:sequence>
                 <s:element minOccurs="0" maxOccurs="1" name="personel_sicilno" type="s:string" />
                 <s:element minOccurs="1" maxOccurs="1" name="yil" type="s:int" />
                 <s:element minOccurs="1" maxOccurs="1" name="ay" type="s:int" />
               </s:sequence>
             </s:complexType>
           </s:element>
           <s:element name="get_puantaj_dataResponse">
             <s:complexType>
               <s:sequence>
                 <s:element minOccurs="0" maxOccurs="1" name="get_puantaj_dataResult">
                   <s:complexType>
                     <s:sequence>
                       <s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
                       <s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
                     </s:sequence>
                   </s:complexType>
                 </s:element>
               </s:sequence>
             </s:complexType>
           </s:element>
           <s:element name="boolean" type="s:boolean" />
           <s:element name="DataTable" nillable="true">
             <s:complexType>
               <s:sequence>
                 <s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" />
                 <s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" />
               </s:sequence>
             </s:complexType>
           </s:element>
         </s:schema>
       </wsdl:types>
       <wsdl:message name="check_serviceSoapIn">
         <wsdl:part name="parameters" element="tns:check_service" />
       </wsdl:message>
       <wsdl:message name="check_serviceSoapOut">
         <wsdl:part name="parameters" element="tns:check_serviceResponse" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataSoapIn">
         <wsdl:part name="parameters" element="tns:get_puantaj_data" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataSoapOut">
         <wsdl:part name="parameters" element="tns:get_puantaj_dataResponse" />
       </wsdl:message>
       <wsdl:message name="check_serviceHttpGetIn" />
       <wsdl:message name="check_serviceHttpGetOut">
         <wsdl:part name="Body" element="tns:boolean" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataHttpGetIn">
         <wsdl:part name="personel_sicilno" type="s:string" />
         <wsdl:part name="yil" type="s:string" />
         <wsdl:part name="ay" type="s:string" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataHttpGetOut">
         <wsdl:part name="Body" element="tns:DataTable" />
       </wsdl:message>
       <wsdl:message name="check_serviceHttpPostIn" />
       <wsdl:message name="check_serviceHttpPostOut">
         <wsdl:part name="Body" element="tns:boolean" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataHttpPostIn">
         <wsdl:part name="personel_sicilno" type="s:string" />
         <wsdl:part name="yil" type="s:string" />
         <wsdl:part name="ay" type="s:string" />
       </wsdl:message>
       <wsdl:message name="get_puantaj_dataHttpPostOut">
         <wsdl:part name="Body" element="tns:DataTable" />
       </wsdl:message>
       <wsdl:portType name="Aktarim_ServiceSoap">
         <wsdl:operation name="check_service">
           <wsdl:input message="tns:check_serviceSoapIn" />
           <wsdl:output message="tns:check_serviceSoapOut" />
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <wsdl:input message="tns:get_puantaj_dataSoapIn" />
           <wsdl:output message="tns:get_puantaj_dataSoapOut" />
         </wsdl:operation>
       </wsdl:portType>
       <wsdl:portType name="Aktarim_ServiceHttpGet">
         <wsdl:operation name="check_service">
           <wsdl:input message="tns:check_serviceHttpGetIn" />
           <wsdl:output message="tns:check_serviceHttpGetOut" />
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <wsdl:input message="tns:get_puantaj_dataHttpGetIn" />
           <wsdl:output message="tns:get_puantaj_dataHttpGetOut" />
         </wsdl:operation>
       </wsdl:portType>
       <wsdl:portType name="Aktarim_ServiceHttpPost">
         <wsdl:operation name="check_service">
           <wsdl:input message="tns:check_serviceHttpPostIn" />
           <wsdl:output message="tns:check_serviceHttpPostOut" />
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <wsdl:input message="tns:get_puantaj_dataHttpPostIn" />
           <wsdl:output message="tns:get_puantaj_dataHttpPostOut" />
         </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="Aktarim_ServiceSoap" type="tns:Aktarim_ServiceSoap">
         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
         <wsdl:operation name="check_service">
           <soap:operation soapAction="http://tempuri.org/check_service" style="document" />
           <wsdl:input>
             <soap:body use="literal" />
           </wsdl:input>
           <wsdl:output>
             <soap:body use="literal" />
           </wsdl:output>
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <soap:operation soapAction="http://tempuri.org/get_puantaj_data" style="document" />
           <wsdl:input>
             <soap:body use="literal" />
           </wsdl:input>
           <wsdl:output>
             <soap:body use="literal" />
           </wsdl:output>
         </wsdl:operation>
       </wsdl:binding>
       <wsdl:binding name="Aktarim_ServiceSoap12" type="tns:Aktarim_ServiceSoap">
         <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
         <wsdl:operation name="check_service">
           <soap12:operation soapAction="http://tempuri.org/check_service" style="document" />
           <wsdl:input>
             <soap12:body use="literal" />
           </wsdl:input>
           <wsdl:output>
             <soap12:body use="literal" />
           </wsdl:output>
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <soap12:operation soapAction="http://tempuri.org/get_puantaj_data" style="document" />
           <wsdl:input>
             <soap12:body use="literal" />
           </wsdl:input>
           <wsdl:output>
             <soap12:body use="literal" />
           </wsdl:output>
         </wsdl:operation>
       </wsdl:binding>
       <wsdl:binding name="Aktarim_ServiceHttpGet" type="tns:Aktarim_ServiceHttpGet">
         <http:binding verb="GET" />
         <wsdl:operation name="check_service">
           <http:operation location="/check_service" />
           <wsdl:input>
             <http:urlEncoded />
           </wsdl:input>
           <wsdl:output>
             <mime:mimeXml part="Body" />
           </wsdl:output>
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <http:operation location="/get_puantaj_data" />
           <wsdl:input>
             <http:urlEncoded />
           </wsdl:input>
           <wsdl:output>
             <mime:mimeXml part="Body" />
           </wsdl:output>
         </wsdl:operation>
       </wsdl:binding>
       <wsdl:binding name="Aktarim_ServiceHttpPost" type="tns:Aktarim_ServiceHttpPost">
         <http:binding verb="POST" />
         <wsdl:operation name="check_service">
           <http:operation location="/check_service" />
           <wsdl:input>
             <mime:content type="application/x-www-form-urlencoded" />
           </wsdl:input>
           <wsdl:output>
             <mime:mimeXml part="Body" />
           </wsdl:output>
         </wsdl:operation>
         <wsdl:operation name="get_puantaj_data">
           <http:operation location="/get_puantaj_data" />
           <wsdl:input>
             <mime:content type="application/x-www-form-urlencoded" />
           </wsdl:input>
           <wsdl:output>
             <mime:mimeXml part="Body" />
           </wsdl:output>
         </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="Aktarim_Service">
         <wsdl:port name="Aktarim_ServiceSoap" binding="tns:Aktarim_ServiceSoap">
           <soap:address location="http://192.168.10.151:7979/sap_aktarim/Aktarim_Service.asmx" />
         </wsdl:port>
         <wsdl:port name="Aktarim_ServiceSoap12" binding="tns:Aktarim_ServiceSoap12">
           <soap12:address location="http://192.168.10.151:7979/sap_aktarim/Aktarim_Service.asmx" />
         </wsdl:port>
         <wsdl:port name="Aktarim_ServiceHttpGet" binding="tns:Aktarim_ServiceHttpGet">
           <http:address location="http://192.168.10.151:7979/sap_aktarim/Aktarim_Service.asmx" />
         </wsdl:port>
         <wsdl:port name="Aktarim_ServiceHttpPost" binding="tns:Aktarim_ServiceHttpPost">
           <http:address location="http://192.168.10.151:7979/sap_aktarim/Aktarim_Service.asmx" />
         </wsdl:port>
       </wsdl:service>
    </wsdl:definitions>

  • Error using SOAPRunner:  XML document must have top level element

    Hi all,...................xMII 11.5.3 b66
    I am attempting to consume a BLS transaction as a web service from a J2EE app. 
    When I test it with http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants I am getting an error message from the browser.  The BLS transaction works fine when called from a Query template.  What am I missing?
    The XML page cannot be displayed
    Cannot view XML input using style sheet.
    Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing
    resource 'http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetL...
    WSDL from WSDLGen...
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:s0="http://www.sap.com/xMII"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
    - <!--  Types
      -->
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
    - <s:complexType name="InputParams">
    - <s:sequence id="InputSequence">
      <s:element maxOccurs="1" minOccurs="0" name="RequestXML" type="s:Xml" />
      <s:element maxOccurs="1" minOccurs="0" name="RowCount" type="s:long" />
      <s:element maxOccurs="1" minOccurs="0" name="RowSkips" type="s:long" />
      <s:element maxOccurs="1" minOccurs="0" name="Table" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteRequest">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:complexType name="Rowset">
    - <s:sequence>
      <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
      </s:sequence>
      <s:attribute name="Message" type="s:string" />
      </s:complexType>
    - <s:complexType name="Row">
    - <s:sequence id="RowSequence">
      <s:element maxOccurs="1" minOccurs="1" name="ErrorMessage" type="s:string" />
      <s:element maxOccurs="1" minOccurs="1" name="OutputXML" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteResponse">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </types>
    - <!--  Messages
      -->
    - <message name="XacuteSoapIn">
      <part element="s0:XacuteRequest" name="parameters" />
      </message>
    - <message name="XacuteSoapOut">
      <part element="s0:XacuteResponse" name="parameters" />
      </message>
    - <!--  Ports
      -->
    - <portType name="XacuteWSSoap">
    - <operation name="Xacute">
      <input message="s0:XacuteSoapIn" />
      <output message="s0:XacuteSoapOut" />
      </operation>
      </portType>
    - <!--  Bindings
      -->
    - <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="Xacute">
      <soap:operation soapAction="http://www.sap.com/xMII" style="document" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <!--  Service mapping
      -->
    - <service name="XacuteWS">
    - <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
      <soap:address location="http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants" />
      </port>
      </service>
      </definitions>

    Hi Amy,
    here is an example how you can call a WS via http GET:
    http://<server>/Lighthammer/Runner?Transaction=<path_to_your_TRX>&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
    Please note you do not need to use credentials in case you calling localhost.
    I think in your case this should be the right url:
    http://naholldo31020/Lighthammer/Runner?Transaction=Amy/GetListOfPlants&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
    Please change parameters for
    - XacuteLoginName
    - XacuteLoginPassword
    - outputparameter (you can specify * or one of your transaction output parameter)

  • When I try to move one layer to another layer, my drag and drop won't do it. What do I need to do?

    The drag and drop technique,don't seem to work in my program. is there something I need to configure?

    For an example we will use tab 1 for the old image and tab 2 for the new image. In that the images from tab 1 will be dragged and dropped to tab 2.
    Open two images as per above.
    Click tab 1 to make that the active document if it is not already
    In the layers panel click on the layer that has the image
    In the document window (the canvas) move the cursor over the image, press left mouse button down and drag to tab 2 (don't let go of mouse button)
    The document in tab 2 will become active
    With the mouse button still held down drag the cursor over the center of the document (canvas) {If you wish to center the image on the canvas you may now hold down the shift key while the mouse button is still held down
    Let go of mouse button then let go of shift key
    You should now see two layers in your layers panel. One image is on top of the other so you can not see the bottom image
    You now have a few choices, you can expand the canvas and move the image(s) so they are side by side
    You can add a mask to the top layer and paint away what you don't want
    You can select parts of the background of the top image then delete it
    You can lower the opacity to blend the two images into one
    You can use a blend mode to blend the two images into one
    This apart is totally up to you and if you need any further advice let us know or if you are still stuck, please capture your screen so we can see what you did and have the layers panel open with any collapsed layers expanded.

  • 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 copy file from  one location to another

    Hi,
    I am new to java, I tried the following code to move the file from one location to another
    public class CopyFiles {
    public String copy ( File source, File target)
    throws IOException {   
    FileChannel sourceChannel = null;
    FileChannel targetChannel =null;
    try {   
    sourceChannel =new FileInputStream(source).getChannel();
    targetChannel= new FileOutputStream(target).getChannel();
    targetChannel.transferFrom(sourceChannel, 0,
    sourceChannel.size());
    finally {   
    targetChannel.close();
    sourceChannel.close();
    return "Success";
    public static void main(String [] args) throws Exception{   
    File source = new File("C:\\users\\download.pdf");
    File destinationFile = new File("C:\\apple\\download.pdf");
    copy(source, destinationFile);
    The above code is working perfectly, but I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.

    kameshb wrote:
    I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.It's not totally clear what you're saying here, but what I think you mean is that you don't want to explicitly set the destination file name--you want to just give the copy the same name as the original. Yes?
    If that's the case, then break the original up into separate directory and file name portions, and then construct the destination path from the destination directory plus original file name. You can do that by manipulating the full path string, or by using the methods in java.io.File.

  • Can I move the location of my iCloud Drive and/or Photos Folder?

    Hi, I currently own an iPad Air1 64GB with current IOS, as well as 2 Windows 7 64b PCs and one brand new Windows 8.1 Pro 64b PC. On my two desktops, is there any way to move the location of the iCloud Drive Folder from its default location at C:\Users\Brian A, which is on my System SSD, to my 6TB RAID5 Data Array. I'd rather not take up room on my SSD. If I cannot move it, this will lead me to using iCloud for little more than backup. and make it unlikely I'd ever pay for more space. I'd think at this point, more than a few people have SSD drives they might not want storage/data folders on.
    I am clueless as to what Apple is attempting with iCloud Photos, as that only ever comes up as a link and under Devices and Drives, with no folder location, and no properties, seemingly making it immoveable. I'm not sure what the thought process was there, but this makes my want to use it even less than iCloud Drive.

    Drag it there, launch iTunes with the Shift key held down, and point it to the new location.
    (62976)

Maybe you are looking for