app.openDoc behaves erratic with respect to "security access.

I use the following line in a document-level function:

app.openDoc ({cPath: WhatFile, cDest: WhatPage});

WhatFile is a string representing a file name in the same folder as the PDF file, copy the following code works in.

WhatPage is a destination inside PDF file I open.

For some reason, half of the time it gives me a security access violation when I run the script, and the other half of the time it works perfectly.  I made sure each document in the folder has "this.disclosed" defined as such in the document-level code (it is not in a function, so it should apparently executed every time the document opens.)  What really stumps me, is that I'm not changing anything on the timeline between the times that it fails and the time it works.  I have several updated files in place to do this, and it won't work for several minutes straight.  It will keep giving me the same error; and then, all of a sudden he started working without changing a thing.

Here's what got me really strains on this subject:

(1) all my documents are disclosed, so I shouldn't receive the message of restricting access to security in the first place.

(2) my method being is posting to a destination, which I believe I read in the script guide means that the documents must be disclosed.

Someone at - he a clue as to why it would work sometimes and not others?

See this link for reference: http://forums.adobe.com/message/3766053#3766053

I would have continued in this thread, but it was already listed as replied.

If you specify the full path, you must include the oDoc parameter, which is given by "this".

Tags: Acrobat

Similar Questions

  • app.openDoc work for .pdf no matter what that need conversion

    So I tried to add to a script that I have written in AutoIt which gives it the ability to convert a file to a .pdf .html

    AutoIt uses the creation of objects similar to VBScript, and I was able to access the JSObject with

    $oApp = ObjCreate("AcroExch.App")
    $oApp.Show
    $oAVDoc = ObjCreate("AcroExch.AVDoc")
    $oAVDoc.Open("C:\test.pdf","C:\test.pdf")
    $oPDDoc = $oAVDoc.GetPDDoc
    $oJSO = $oPDDoc.GetJSObject
    $oJSO.console.show
    $oJSO.console.clear
    

    Then from there, I can open a different very well with something as pdf

    $oJSO.app.openDoc("C:\test1.pdf")
    

    But when I try

    $oJSO.app.openDoc("C:\test.htm")
    

    It fails and the console displays

    NotAllowedError: Security settings prevent access to this property or method.
    App.openDoc:0:
    

    I tried to use this new

    $oJSO.app.beginPriv()
    $oJSO.app.openDoc("C:\test.htm")
    $oJSO.app.endPriv()
    

    but I got the same result.

    I want to try using the bUseConv setting, but I don't know how to since in autoit I don't think you can do something like

    $oJSO.app.openDoc({cPath: "C:\test.htm", bUseConv: true})
    

    you will need to use all the settings before that and I'm not sure what to use for oDoc and the things that I tried all fail.

    $oJSO.app.openDoc("C:\test.htm", ???, "", false, true)
    

    I hope someone can help, thanks!

    Well well duh. It works very well!

    $oJSO.app.openDoc ("C:\test.htm", $oJSO, "", false, true)

  • With explanations wireless security options

    Hello team,

    I would like to have your base of knowledge up-to-date with the types of security options available in IEEE and security options supported on the NETGEAR router with detailed description. The current article which is available on your KB Portal is bad enough. That's what I get when retrieved from the security options...

    http://KB.NETGEAR.com/app/answers/detail/A_ID/112/

    and

    http://KB.NETGEAR.com/app/answers/detail/A_ID/13205

    I would like to refine your article with all the security options available from WEP, WPA - PSK [TKIP], mixed, WPA2-PSK [AES] etc. I'm not sure if your knowledge base team consider my request or not. Even if they think it will I get any deducted after the publication of my article in your support portal.

    Thank you best regards &,.

    NetRags

    @NetRags I'm going to go ahead and pass on to management.

    Thank you!

  • HP Envy 15: Charger buzzing/top (?) heating and trackpad behave erratically when it is plugged.

    It is a HP Envy 15 starting from 2014, the new model (?) with the intel i7, SSD and GTX850. Don't remember the name of the actual product, sorry...

    In any case, since last night, whenever I plug in the adapter there is a humming noise 'loud', gets hotter before (I think) and the trackpad behaves erratically.

    Read somewhere that it could be a grounding problem?

    So, what to do?

    @freffe,

    Hello and thanks for the display on the HP support forums.  If you get a buzz and fire of the things first power adapter you will want to do is support telephone contact HP for replacement options.

    If the adapter is damaged it is unable to provide the correct amount of tension of the laptop and damaging things possible.

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    Thanks again for posting and have a great day.

  • app.openDoc

    Hello

    I have a problem with Acrobat 10.0 on Windows. I have read the reference for Scripting and other guides and searched all forums for a few days now and can't find any answer yet (although I find some messages with the same question unanswered).

    When I use app.openDoc in a position of trust at the level of application folder, I always get the 'NotAllowedError' when you call the function of trust of an a button object MouseUp event.

    So I wonder:

    -It is usually possible to open another PDF file from a button object MouseUp event?

    -Are there examples of the work of the place where (folder levels and object), to put what code to achieve this?

    What I do is to have a function "trustedOpenDoc" at the level of application:

    trustedOpenDoc = app.trustedFunction)

    {function (pPath)}

    app.beginPriv ();

    app.openDoc({)

    cPath: pPath,.

    bUseConv: true

                   });

    app.endPriv ();

              }

    );

    And I call from an object button in this way:

    mainDoc = trustedOpenDoc("/C/myDoc.pdf");

    I still don't have the NotAllowedError. Do the same with app.newDoc works perfectly.

    Any advice? I am close to despair with this problem. Thanks in advance for advice.

    Adobe present the document property "revealed" with version 5.05, you must set this logical property to "true" in the PDF you attempt open at a later date. You add a script to document level to perform this action.

  • I have an internet connection, and now Remote app does not work with my Apple TV.

    Hello

    My Apple TV remote broke so I use the Remote App on my phone, but we recently got a new router and network connection and so now it is impossible for me to use with my Apple TV because I can't update the wifi settings so that it can connect to the new wifi... How should I do? I can't update the wifi because I need the TV and my iPhone to be connected to the same wireless network for do, which is impossible. Appreciate any help!

    Use the remote device provided with the ATC to access settings and change the information of WiFi.

  • Shining path App is not compatible with A6000?

    Why this fantastic app is only compatible with two Sony cameras? They're going to make it compatible with more of their line-up alpha mirrorless cameras?

    Hi Iso_morphic,

    Thank you very much for taking the time to share your concerns with us. Sony takes the voice of our customers very seriously and heard all the feedback - good and bad is important to us. I forwarded your comments to our head of our investment in the media because she is always grateful for this type of feedback. While our media plans are confidential, I can tell you that Sony highly values our customers and their opinions and we do not want to get away from our brand.

    If my post answered your question, please mark it as "accept as a Solution. Thanks_Mitch

  • Anatel Sony wireless mouse connects erratically with cursor. Battery life is very good. It also seems

    Anatel Sony wireless mouse connects erratically with cursor. The battery life is very good. The cursor problem also seems to be making the top and down arrows on my wired keyboard. When the cursor is engaged the arrows will work. When the cursor does not connect correctly the arrows do not work. The surace the mouse is on doesn't seem to be a factor.


  • "Windows services Centre" call by saying that I have a problem with my internal security system

    Hello

    I received a phone call from 'Windows Service Centre', James Henderson, employee of 406-235-1159, phone number #7098 (Yes, that's an indication 406 and 416 - which is one of the reasons why I'm suspicious), but gave a speech in Mississauga (Ontario), saying that I have a problem with my internal security system and even if www.ammyy.com I need to talk to the technician to solve this problem. I do not trust him and hang up, but called the number, responded to the same person (as he had an Indian accent with a lisp in addition to this) and he said that Joseph and not James!
    Scam or what? Thank you

    It is a scam! Who is becoming extremely common and was even on the news in some places. As long as you don't give them any personal information, you should be fine. Should they call once again, simply hang up.

    See the recent thread below for more information; Shenan Stanley and the spirit of the messages contain very useful information:

    The call tech support?
     http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/tech-support-calling/3a07ee4a-cb7c-4F6E-bfa2-5f7067346859

    The links below contain excellent information regarding this and other scams:

    Avoid scams to phone for tech support
     http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Avoid scams that use the Microsoft name fraudulently
     http://www.Microsoft.com/security/online-privacy/msName.aspx

    The site ammyy.com offer legitimate a service to help users to connect remotely to other computers; the crooks simply operate these services. This is the first time I have heard of this site, seems most of the fraudsters a different use.

    Kind regards

  • problems with the XP security 2011 removal

    I went and downloaded the XP security 2011 thing on my laptop and everything was smooth until our days. For some strange reason, I was unable to get on my internet explore still under Mozilla Firefox. More when I went to try to go to control panel to try to remove it, I couldn't even in any of the things in the control panel. Whenever I try to click on any of my icons (if its on my desktop or in another folder, or basically ANYTHING) it will essentially say this:

    "Windows cannot access the specified device, path or file. May not permissions to access you the item.

    I tried to go through safe mode and restoring a system on it, BUT it won't let me do that either. I went back as far as last month and it will restore not again at this point and I know it has to do with this XP security 2011.

    Is someone please help me with this problem because I don't have the money to take that laptop to the store for repair?

    Thank you!

    Hello

    This malware has many names and XP security 2011 is one of them.

    XP Antispyware 2011, Vista Security 2011 and Win 7 Internet Security 2011 rogue change name are
    fake antivirus, a scam to you force to pay for them while they have no advantage at all.

    Uninstall XP Antispyware 2011 and the security of Vista 2011, Win 7 Internet Security 2011 (uninstall Guide)<-- read="" this="">
    http://www.bleepingcomputer.com/virus-removal/remove-win-7-Internet-Security-2011

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs. It comes
    a scan only, VERY EFFICIENT, if it finds something to come back here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses, Trojans,
    Rootkits, etc.) that has infected your computer despite all the security measures that you have taken (such as
    the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    -----------------------------------

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    ----------------------------------

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    RUN - type in the box-

    sfc/scannow

    Then run checkdisk (chkdsk).

    RUN - type in the box-

    Chkdsk /f /r

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • problem with secure access

    Recently, I buy a scandisk 4 GB USB key.  It came with secure access software.  I failed and eventually remove the software.  Then I downloaded the software to access secure on my USB key.  I got the arch in place.  Then I closed it down.  Now, whenever I try to run access secure - it takes several minutes before I get the logon screen.  What's wrong?  What do I ned to do?  I am running windows 7 64 bit.

    OK, good analysis fb65.

    I have no experience with SecureAccess download but the blade I bought recently has SecureAccess on this and I have to suspect that they are similar if not identical.  Mine also shows a version of 1.1.19269.0.

    When I started the SecureAccess departure he asked if I wanted to sign up 2 GB of online storage, which I refused.  I suspect that you have accepted the offer, and that's why you try to connect to the ' net when you start SecureAccess.  I don't know how to disable this option, but I know not how to bypass links chiken.

    Go to your Windows\System32\drivers\etc.  You will find a file named hosts simply.  No extension.   Open the file with Notepad and down add this line:

    127.0.0.1 yuuwaa.com support.dmailer.com # SecureAccess

    Instead, you can try

    127.0.0.1 yuuwaa.com # SecureAccess

    One or the other should reduce to nil the impact that tries to connect online.

    HTH

  • I have problems installing with kaspersky internet security, 2015 on windows 7

    Original title:

    internet security Kaspersky 2015

    iI problems of installation with kaspersky internet security, 2015 on windows 7 will not install it comes up with a message to reinstall net framework from microsoft which I did & the question was not resolved.i however installed on my other pc that runs vista without issues.has - what someone has encountered this and if so is there a resolution? Thank you

    Make sure that you install the .NET Framework 4.5 for Windows 7, not 4.0.

    Also try to stay connected to the Internet during installation:

    http://support.Kaspersky.com/11045#Block1

    You can also do a clean boot.

  • Download Creative Cloud app to new PC with windows 7. English

    need help to download Creative Cloud app to new PC with windows 7. English

    Hi flyingbeetle,

    Please use the following link for Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial

    Let us know if this help.

  • Are there still known issues with Lightoom 5 and El Capitan with respect to attachment? I know that problems have been resolved with CC Lightoom

    Are there still known issues with Lightoom 5 and El capitan with respect to attachment? I know that problems have been resolved with Lightoom CC.  I looked on the Internet but most of the references are Lightoom CC.  Ive got all the updates with Lightoom 5, (Camera RAW 8.1), but also Apple, (El Capitan 10.11.3), but my Nikon D800 will not always tie.

    HAL P Anderson wrote:

    The problem is in the SDK (SDK) of Nikon. He used features of OS that changed with El Cap. All previous versions of LR were broken by the Exchange operating system. For LR 5 to work, it must be associated with the new SDK of Nikon, and Adobe is not reissue of older versions.

    The result is: LR5 and previous versions will continue to not be able to attach Nikon under El Capitan. I'm sorry.

    HAL

    Although what you say is maybe true, I'm not sure, but there were reports of people that says exactly the opposite. Home of Nikon has not worked in 2015/6 but continued to work in LR 5 on the same Mac running 10.11.x.

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

Maybe you are looking for

  • How to export a picture of an iMovie project Photos

    My computer is an iMac running OS X version 10.11.6. The computer has a CPU 3.3 GHz 17 and 16 GB 1867 MHz memory. I want to export a photo of the photo in an iMovie project. When I try this through Photos, iMovie is provided as an option. The same is

  • Want keyboard question

    My function keys (f1 to f12) are reversed for the feature.  They work automatically functions as the sound.  When I am in a program such as Excel I have to press the FN key to run commands like f7 for spell checking.  I want to reverse if the basic f

  • How can I convert .wps to .doc

    I'm trying to send by e mail is .wps, but the receiver no one wants this document in .doc (they have MS Office 2003), so need to know how convert/send an attachment.Thanks in advance.

  • my HP photosmart 7525. Solution Center does not,

    When I click the icon, it sayscan can't open, the installation is not complete. Tried to install again, but does not always.

  • How to configure the Outlook/exchange e-mail to share e-mail with individual domain accounts accounts

    My company has agents working at client locations.  Each customer has their own email.  Now the signs of the agents on Windows by using a local account shared with e-mail configuration to support this particular customer.  Agents are turned in and ou