7 Replies Latest reply on Jan 11, 2013 7:21 AM by ColeBurdette

    save as problem

    jck_drmjn Level 1

      I have made folder level script placed folowing code

       

      mySaveAs = app.trustPropagatorFunction(function(doc,path)

      {

      app.beginPriv();

      doc.saveAs(path);

      app.endPriv();

      })

      myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path)

      {

      // Privileged and/or non-privileged code above

      app.beginPriv();

      mySaveAs(doc,path);

      app.endPriv();

      // Privileged and/or non-privileged code below

      });

       

      Button:

      myTrustedSpecialTaskFunc(this, "/c/temp/mySavedDoc.pdf");

       

      However I see error......

       

      RaiseError: The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.

      Doc.saveAs:4:AcroForm:Button1:Annot1:MouseUp:Action1

      ===> The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.

       

      What should I do?