8 Replies Latest reply on Jan 9, 2012 4:13 PM by delmar1121

    NotAllowedError:security settings prevent access to this property or method on MAC

    delmar1121

      our plugin code invoke some javascript functions:


      the code seems to work in window, but in Mac OS 10.7, get the following error.


      Error saving to file /Mac OSx 10.7/somefolder/somefile.

      NotAllowedError : security settings prevent access to this property or

      method

       

      Here are the sample code:

       

                            trustedSaveIntoFile = app.trustedFunction(saveIntoFile);

       

                            ...

                             trustedSaveIntoFile (......)    //error throw here.

       

      function saveIntoFile(...)

      {

          try

          {

              if (typeof app.formsVersion != 'undefined' && app.formsVersion >= 7.0)

                  app.beginPriv();

              // save into file...

               ....

              if (typeof app.formsVersion != 'undefined' && app.formsVersion >= 7.0)

                  app.endPriv();

          }

          catch (e)

          {

              console.show();

          }

      }



      any ideas?


      thanks!