Trusted functions in Reader through browser plugin

Hi all,
I have created a trusted function that works perfectly when I open my form directly through Reader or Acrobat :-)
My trusted function does something like import a file as an attachment from a certain place on disk.
However when I try to open it through the browser plugin (ie. Internet Explorer) it does not work - what could I be doing wrong? And what do I need to take into consideration to make it work through the browser plugin?
Please don't hesitate to ask if you need further information.
Thanks in advance
Sincerely
Kim Christensen
Dafolo A/S
Denmark

Hi again dohanlon,
You were right, something in my script on the form was not executed correctly - seems like the util.stringFromStream does not work in the form if you run it in the plugin. I changed my code into usinsg the stringforStream method in my trusted function and then it suddenly worked.
Thanks a lot for your help btw - it led me into understanding that it was possible to use the trusted functions inside the belly of the browser plugin also
\Kim

Similar Messages

  • Adobe reader & pdf browser plugin 2 license

    i've got a macbookpro, & my class lectures are presented in pdf format.  every time i go to open 1, i get a popup that i need to order a pdf browser plugin 2 license.  it let me access my pdfs last semester by requesting register later, but this semester it's not letting me read them.  nothing i've found for adobe reader shows that i need this.  how do i get rid of this popup so that i can read my lecture notes?

    You must have used some file that was created with that program.  It is completely unnecessary for Safari or Firefox.  If you have installed Adobe Reader, it should have put a plug-in into your Internet plug-ins.  Find a pdf file in Finder, then select it, then right click, get info.  In the window, make sure that the pdf file opens with Adobe Reader, then click on Change All.  It tells the Mac to handle all pdf files with Adobe Reader, and IF you have the plug-in, you should be able to read it.

  • Test whether doc is opened in Reader or browser plugin

    Hi,
    is there a way to test programmatically whether the current document is opened in the full Reader application or in the web-browser plugin?
    Alexander

    I can answer myself, it is the doc.external property.

  • Where is documentation about Adobe Reader web-browser plugin API?

    When Adobe Reader is chosen as plugin to open PDF's inside a web-browser it reacts to some javascript commands in the web page that hosts the <object> tag like "goToPage" or similar. I would like to know which other javascript commands (and events: something like "onPageChanged", for example) are available. Where can I find documentation?
    Thanks

    Microsoft hasn't updated its Windows Media Player plugin for Firefox for a while, so 3-year-old documentation may be current. I recommend using MSDN as a resource, and particularly articles indicating which features work in Firefox.
    You also can work out development issues on a forum more focused on that, the unofficial [http://forums.mozillazine.org/viewforum.php?f=25 mozillaZine Web Development board]. It's a separate site (with separate registration).

  • Adobe reader android browser plugin

    Why does adobe reader not allow the mime type application/pdf in an object tag to work in a web page?  Instead it wants to download the pdf instead of viewing it in the browser like your desktop application.  All you have to do is write a library .so file for the arm processor and include it in your adobe reader app. Then register the plug. The browser would see the mime type and look it up then run your library to interpret the data and display it in the object tag on the browser.

    You must have used some file that was created with that program.  It is completely unnecessary for Safari or Firefox.  If you have installed Adobe Reader, it should have put a plug-in into your Internet plug-ins.  Find a pdf file in Finder, then select it, then right click, get info.  In the window, make sure that the pdf file opens with Adobe Reader, then click on Change All.  It tells the Mac to handle all pdf files with Adobe Reader, and IF you have the plug-in, you should be able to read it.

  • Adobe Reader Browser Plugin - How to disable right click print

    Here is some background to my question
    I'm using Adobe Reader 9.2 and have configured to use the Adobe Reader Active X browser plugin.
    which has the effect of launching pdf's within the IE browser rather than launching the full client. This is all working fine
    I have a requirement that I need to lockdown certain menu items (for the purpose of this example, lets say "SaveAs" and "Print") and toolbars which I have also done successfully using folder level javascripts. For example I have created a HideMenuItems.js file and placed this in the "C:\Program Files\Adobe\Reader 9.0\Reader\Javascripts", here is a snippet of the file which relate to hiding / removing the SaveAs and Print items
    app.hideToolbarButton("Print"); 
    app.hideToolbarButton("SaveFileAs");
    app.hideToolbarButton("Save");
    These work fine and hide the Print and Save toolbar buttons from the Adobe Reader Browser plugin menu.
    As an aside If I wanted to hide the same icons from the full adobe reader client I could use app.hideMenuItem("Print");
    So this all works fine and I'm happy so far. Now, with these settings in place I launch the pdf within the browser, although save and print buttons are now hidden and I cannot add them back, I can still RightClick anywhere in the pdf and get the context menu, from there I can select print.
    What I'm after is a way to either
    (i) Selectively remove menu items from the right click context menu, and therefore remove the print option e.g something like app.[hideRightClickMenuItem]("Print") would be great but I dont know what that method is called.
    or
    (ii) Disable the RightClick context menu altogether for Adobe Reader Browser Plugin
    Not bothered what the solution is whether its a reg hack - HKCU / HKLM  / or javascript line I can add to my HideMenuItems.js, But basically I want to lock down the ability for the users to select print button from all sources including "CTRL + P",
    Or if this is not possible let them hit CTRL P or right click print, but then not display the Adobe Print Dialog.
    Basically the printing of the documents in handled by our web app sending a silent print to the adobe application which again works fine, I just need to prevent the users from being able to initiate a print from within the pdf when displaying the pdf in a browser.
    Having searched around there is an API called AVAppRegisterForPageViewRightClicks which is supposed to prevent right clicks, But I dont know how to use this, or whether it can be used within my HideMenuItems.js file, tried many different syntaxes but to no avail.
    Does anyone have any experience in this? Adobe - do you have any suggestions ?
    Cheers
    Will

    Hi thanks for your response, yes it seems this API is availalbe but there are no examples of how to use it. You mentioned its available in Adobe reader and Adobe Acrobat plugins. Well I'm using the Adobe Reader Active X Browser Plugin so how would I use this API to restrict the Browser plugin.l
    I am not a developer writing my own custom plugins, I simply want to use the out of the box adobe reader product, specifically the Active X browser plugin, but I need to be able to customise and restrict what the user is able to do.
    The reason I need to do this is that we publish IE on a citrix server which users access to launch this highly secure web based application. The sensitive data that they view is in the forms of PDFs which are viewed by the Adobe reader browser plugin within the browser. The web application controls who can save, export, print etc, so I need to be able to lock down the Adobe Reader Active X browser plugin so that the user cannot initiate save, and print functionality from within the viewed pdf. I've done this successfully by restricting the menu and toolbar items but it is still possible to right click on the viewed pdf and click select print from the context menu. This would cause us a big security flaw, which would result in users that are only supposed to view being able to click print.
    I published a desktop (locked down) and published IE (locked down) all successfully with GPOs so the users cannot do anything they are not supposed to do, however Adobe reader it seems cannot be easily locked down and this is a problem as I might have to start looking at viable alterantives. Surely a simple requirement as this could be acheieved with relative ease.
    In an ideal world there would be an  available GPO template (.ADM file), which could be used to centrally manage these type of settings. I dont even mind writing an ADM myself, I've written many before, but for example what I need is the appropriate registry entries and how they are used to lock down / restrict certain functions so that I can write such an .ADM file.
    I dont mind how I achieve this, I just need a way to do it. So if using the API AVAppRegisterForPageViewRightClicks would achieve this, can someone please tell me how I can implement something that would use this API to restrict the right Click Print options for example.
    The sort of answer I;m looking for would be
    Create a file, paste in this code, place the file is this location xxxxx, this is a per machine fix so will affect all users
    or
    Edit the regstry and make this HKCU change xxxxx - This is obviously a per user fix so use normal methods to get this into every users profile.
    or
    Open up the file in this location xxxxxx and add AVAppRegisterForPageViewRightClicks = AlwaysDisable (or whatever the syntax is)
    Thanks for you help
    Cheers
    Will

  • Reader Browser Plugin Plugins

    Hi, i've looked on the net and can't seem to find the answer so i'll try here. Is it possible to write an Acrobat Reader 8 plugin that can run inside the Reader Web Browser (Internet Explorer) Plugin? I'm looking to extend the functionality of the active document viewer plugin (opened when a user browses to a pdf url) and not the html embeddable activex object.
    thanks in advance,
    zol

    >Hi guys, Thanks for the feedback. Aandi,, do any other methods of gaining access to the content of the document work (e.g AVAppEnumDocs, PDEnumDocs??).
    Things which enumerate documents should work. Though how you tell
    which document is open in the "current" window is less clear; you may
    need to track open events to remember documents.
    >
    >The documentation doesn't differentiate between Reader and Reader IE Plugin, is there any way to figure out what will and won't work apart from trial and error?
    There's two quite separate issues here:
    Reader plug-ins: limited technically and by license
    Browser integration: the same for Acrobat and Reader; limited
    technically.
    >
    >Furthermore, is there any way to perform this trial and error without paying for an integration license?
    For the browser integration testing nothing special is needed beyond
    Acrobat.
    Aandi Inston

  • Trusted function not reffered in PDF file - Adobe reader.

    Am failry new to Adobe scripting.
    I am trying to generate a jasper report of PDF file format from an online web application
    MY intension is to automatically save the generated report into my user's hard drive location say /C/Sample/sample.pdf
    I have created the trusted function and made it copied to the folder C:\Program Files\Adobe\Reader 11.0\Reader\Javascripts
    Trusted function code mySaveAs.js
    var mySaveAs = app.trustedFunction( function(oDoc,cFile)
    app.beginPriv();
    // Ensure path has trailing "/" cPath = cPath.replace(/([^\/])$/, "$1/");
    try{
      oDoc.saveAs(cFile);
    }catch(e){
      app.alert("Error During Save");
    app.endPriv();
    And am invoking the script from the Jasper api which will be a part of the PDF script like below
    exporter.setParameter(JRPdfExporterParameter.PDF_JAVASCRIPT,
         " if(typeof(mySaveAs) == 'function') { " +
         " mySaveAs(this,'/C/Sample/sample.pdf');"+
         " } else { " +
         " app.alert('Missing Save Function\n Please contact forms administrator')" +
    its just Equivalent of
    if(typeof(mySaveAs) == 'function') {
          mySaveAs(this,'/C/Sample/sample.pdf');
    } else { 
      app.alert('Missing Save Function\n Please contact forms administrator')}
    but am not able to get the file saved in my client machine.
    Kindly suggest me a better approach or any where if am missing something.
    Am failry new to Adobe scripting.

    Am currently using Adobe reader 11 I am not getting any alert .
    But the same saveAs() works well in XP even with out making it as a trusted function, We have just placed the script inside the PDF itself. But its not working in Windows 7.
    Below code works fine in Win XP
    try
         this.saveAs('/C/Sample/sample.pdf'');
        catch(e)
        { app.alert(e);}

  • Adobe Reader Browser Plugin steuern / "abhorchen" ?

    Hallo,
    mich würde interessieren, ob es möglich ist, die Browser Plugins (Firefox, Internet Explorer...) des Adobe Readers per BROWSER Javascript zu steuern bzw. auf Events zu horchen. Ich will NICHT das PDF manipulieren (geht nicht, soweit ich weiß), sondern lediglich die Vorwärts/Rückwärts-Buttons betätigen bzw. deren Anklicken aufzeichnen.
    Vielen Dank im Voraus,
    Alina

    Hallo,
    mich würde interessieren, ob es möglich ist, die Browser Plugins (Firefox, Internet Explorer...) des Adobe Readers per BROWSER Javascript zu steuern bzw. auf Events zu horchen. Ich will NICHT das PDF manipulieren (geht nicht, soweit ich weiß), sondern lediglich die Vorwärts/Rückwärts-Buttons betätigen bzw. deren Anklicken aufzeichnen.
    Vielen Dank im Voraus,
    Alina

  • Cannot upload some files to Dropbox through browser UI

    I love and defend Firefox but I have to admit that it is giving me some grief lately. I run a Dropbox account which I access through the browser and its UI allows for drag and drop file uploads as well as more 'conventional' file uploading. In recent days I find certain file uploads are OK via Firefox (such as a 1mb PDF) but I cannot upload for instance a 30mb MP3 or a ZIP file - it tries but ultimately fails. A small 500kb MP3 is fine so it seems to be a file size rather than file type issue (there is a Dropbox limitation on file size but I am way below that). Also when using Firefox with the same Dropbox UI, I get odd errors like 'folder does not exist' even when I am not trying to access a folder or 'there was a problem completing the request' when trying to access a folder, even when it then allows access. I have raised all this with Dropbox forum and I am advised it is a browser problem (they would say that right?). However, I have control-tested using Safari and IE, etc, and I cannot replicate any of the problems. Uploads of large files (the exact same files) are fine in those browsers, no odd errors while testing. I was using Fx V 22x on Win7 x64 Pro but today got a push notification to update to Fx v23.0.1 which I have done, but still these problems persist. My plugins were few, long installed, and sound (Tabmix Plus, Firebug, FireFTP, etc) and not conflicted or out of date. Java was not enabled in the browser. However, to further control test, I have just done a Firefox RESET from the help menu and tried again without any plugins running. Same problem with larger file upload. It seems Firefox is having some issues doing things that other browsers are fine about...

    I have suffered from this during the past three days.
    Firefox 23.0, Mozilla Firefox for Ubuntu canonical - 1.0
    on a 32-bit Ubuntu PC. So the system couldn't be more different.
    I was trying to upload .MP3 files of 27MB. From about a dozen attempts with one file, no success whatever. On the other hand a different file worked first time. But a later attempt with a 14 MB .wav failed, so it's not related to the file.
    On the other hand an upload with Chrome worked perfectly. So it does look like a browser problem.
    Watching the system monitor during upload, it runs freely for about 9MB, then stops abruptly. At the same time, the message at the bottom left of the browser window, relating to dl-web.dropbox, disappears.
    The text of the message differed between Firefox & Chrome, but I imagine that's just a textual, rather than a functional, difference.

  • Require Browser Plugin with XFA Support for Government Web Sites

    Most of the government sites I need to use on a regular basis now publish all of their forms in PDF with XFA, a popular one this time of year is income tax forms.  This is reasonable as there is no generally available alternative file format for this purpose.  However Adobe no longer supplies an Acrobat browser plugin for Firefox or Chrome on Linux.  I therefore cannot access these electronic forms.  I have tried using the no longer supported Acrobat 9.5 plug in, but it is broken under the latest version of Firefox (print doesn't work).  There is no other plugin that I can find that supports PDF forms using XFA.  How can I regain access to these forms.  When I try all I get is a message telling me to install the (non-existent) Adobe Acrobat plugin.

    I was only using income tax filing as an example of this type of application.  For the sake of my privacy I would rather not specify exactly what government I am dealing with or what the purpose of the form is.  Suffice it to say that in this particular case the ONLY way to submit this form is through the paper form, and the only ways I can get a copy of the paper form are either to phone the office and have them mail me a blank form, or access the PDF file, which I cannot do because Adobe refuses to deliver a working browser plugin!  As explained in another reply the government web site does not present me with the URL of the actual PDF file, but rather with the URL of a server application that checks the capabilities of my PDF plugin and if it does not support XFA sends me instead a text message instructing me to install the Adobe browser plugin that Adobe refuses to make available!
    I agree that PDF with XFA is an inappropriate way to implement this sort of application, and I would personally prefer an alternative.  For one thing using paper forms, even in electronic guise, costs more in the long run, since a civil servant must read the final paper document and enter the information into the government database, whereas if the client was presented with an ordinary web page the information could be entered directly by the client, and only validated by the clerk.  However in a transitional environment where only some of the clients have the ability to enter information into a web site many government applications will continue to be implemented in terms of paper forms.  In this environment it is important that all of the paper forms that have to be read by the data entry clerk look as much alike as possible.  That is why PDF is used because only PDF guarantees that all of the paper forms will be identically laid out.
    In this particular situation the government department in question has spent $276,000,000 so far on this particular subsystem over the past 3 years and so far it takes more effort to process each transaction than it did on the older more manual system.

  • Viewing .fdf file with Unix/Linux browser plugin

    I am using Solaris, but this seems to effect the Linux version as well.
    I click on a link that contains an .fdf document. The browser (Mozilla or Firefox) does not know what to do with it. I have set up a mime-type application helper to launch the viewer externally. That works. Solaris version 5 Adobe Reader can view the .fdf file. But what about the plugin? How can I view the .fdf as I do .pdf files using the Adobe browser plugin and do it smoothly like I can with .pdf files?

    Firstly you would need to remove any special mime-type handlers that you would have setup in your browser.<br /><br />Secondly, in the browser type "about:plugins" in the adress bar. This would open a list of all installed plugins. Make sure mozplugger or any other plugin which can handle PDF/FDF mime type is not present. If there is any, you would have to manually find the corresponding file and remove it.<br /><br />Next, you would need to remove all occurences of the file 'nppdf.so' from $HOME/.mozilla and anywhere under /usr (except from the one existing in the Adobe Reader installation folder). Once this is done, reinstall the plugin by running the script at <reader_install_folder>/Browser/install_browser_plugin.<br /><br />After the installation is complete, try using the FDF links again. If it still fails, open the /etc/mime.types file and look for the line application/vnd.fdf. Append to this line the word 'fdf' after a tab at the end. So basically the line would look like -<br />"application/vnd.fdf               fdf"<br />This should fix your problem. Incase you face in issues in between or have anything unclear, just go through the file <reader_install_folder>/Browser/HowTo/ENU/Browser_Plugin_HowTo.txt.

  • I get the "Fast Browser Plugin not loaded" message every time i run  safari and I can't find an MTWB folder anywhere on my hard drive?

    I get the "Fast Browser Plugin not loaded" message every time I run  Safari and I can't find an MTWB folder anywhere on my hard drive?  This doesn't seem to be causing a problem, but is a puzzle?

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; AC="com.autodesk.AutoCAD  com.google.GoogleDrive"; H='^[[:space:]]*((127\.0\.0\.1|::1|fe80::1%lo0)[[:space:]]+local|(255\.){3}255[[:space:]]*broadcast)host[[:space:]]*$'; NS=networksetup; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; AT () { o=`file -b "$1" | egrep -v '^(A.{16}t$|cann)'`; Ps "${1##*/} format"; }; Pc () { o=`grep -v '^ *#' "$2"`; l=`wc -l <<< "$o"`; [[ l -gt 25 ]] && o=`head -n25 <<< "$o"`$'\n'"[$((l-25)) more line(s)]"; Pm "$1"; AT "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/(\/Users\/)[^/]+/\1-/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed -n 's/^ *//;5p;6p;8p'; h=(`SP Hardware | awk '/ Id/{print $3}; /Mem/{print $2}'`); o=$h; Ps "Model"; o=$((h[1]<4?h[1]:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]|0[^2]|8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in FireWire Thunderbolt USB; do o=`SP $b | sed -En '/:$/{s/ *:$//;x;s/\n//;s/\n.*//;/\)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};/Apple|Genesy|Intel|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; fdesetup status | grep -q On && o=on || o=; Ps "FileVault"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(stat -f%Sc -t%F "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && f="$f *"; echo "$d ${f%%_2*} ${f##*.}"; done | sort | tail`; Pm "${A[$i]} diagnostics"; done; grep -lq '*$' <<< "$o" && printf $'\n\t* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'caug|GPU |hfs: Ru|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|timed? ?o|WARN' -k Message Ane 'SMC:' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|openld|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | egrep -v 'com\.apple\.(CSConfig|server)' | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/StartupItems; do M; done`; Pm "Startup items"; sys=`pkgutil --regexp --only-files --files com.apple.pkg.* | sort | uniq | sed 's:^:/:'`; b=`sed -E '/^.+Lib.+\/Contents\/Info.plist$/!d;s/\/Info.plist$//;/Contents\/./d' <<< "$sys"`; l=`egrep '^/usr/lib/.+dylib$' <<< "$sys"`; [[ "$b" && "$l" ]] && { o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | grep -Fv "$b" | while read d; do test -f "$d/Info.plist" || continue; ID=$($PB\ :CFBundleIdentifier "$_") || ID="No bundle ID"; printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find /usr/lib -type f -name *.dylib | grep -Fv "$l"`; Pm "Extrinsic shared libraries"; :; } || echo $'\nReceipts missing'; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Inserted dylibs"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; i=`route -n get default | awk '/e:/{print $2}'`; I=`$NS -listnetworkserviceorder | sed -En '/ '$i'\)$/{x;s/^\(.+\) //p;q;};x'`; n=`$NS -getdnsservers "$I" | awk '!/^T/{printf "not "; exit}'`; Ps "DNS (${n}from DHCP)"; o=`$NS -getinfo "$I" | awk '/k:/{if ($3 !~ "(255\.){3}0") print $3}'`; Ps "Netmask"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; f=/etc/hosts; Pc "hosts" <(egrep -v "$H" $f ); AT $f; Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; LD="$(`find /S*/*/F* -type f -name lsregister | head -n1` -dump)"; o=`for ID in $AC; do [[ "$LD" =~ $ID ]] && echo $ID; done`; Pm "Application check"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep 'id: N|te: Y' | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Call Trusted function insidd another function.

    Note: - In simple word all i want to do is to use different functions inside a function to improve the speed of my script.
    i have been reading through Adobe document since last a few days, but couldn't find answer to use object name "getPageNumWords" inside my trusted function. adobe script just simply does not recognize "this" object when it is inside trusted function. I understand that i have to use some document object but how, i am not sure. can someone please help me with this issue.
    var mytestfunc = app.trustedFunction(function()
    app.beginPriv();
    apnumWords = this.getPageNumWords(1); //for page # 2
            for (var z = 0; z < apnumWords; z++)
                apWord = this.getPageNthWord(1,z);
                   if (apWord == "Model")
                app.alert("The text is " + myWordFound)
    app.endPriv();
    var myfunccheck = app.trustedFunction(function()
    mytestfunc();
    app.addMenuItem({cName:"AMM Linker",cParent:"Tools",cExec:"myfunccheck()"});
    reff
    http://acrobatusers.com/forum/embeded-trusted-functions-function-embeded-functions#comment -71413

    i got it thanks, now how my function can through a value and how can my other function accept the value.
    in simple function 1 & 2 through a value and function 3 uses them to create a link.
    app.addMenuItem({cName:"Linker",cParent:"Tools",cExec:"mycheck_3()"});
    function mycheck_3 (doc)
    //my function mycheck_3 is creating link.
    //i want to use these key words to create link around my subject.
    apWord_mycheck_1 + apWord_mycheck_2)
    function myfinalfunction()
    app.trustedFunction(mycheck_1(this));
    app.trustedFunction(mycheck_2(this));
    app.trustedFunction(mycheck_3(this));
    function mycheck_1 (doc)
    var apWord_mycheck_1, apWord2, apnumWords;
        apnumWords = doc.getPageNumWords(1);
            for (var z = 0; z < apnumWords; z++)
                apWord_mycheck_1 = doc.getPageNthWord(1,z);
                if (apWord_mycheck_1 == "Model_1")
    //how to through out apWord_mycheck_1 ?????
    function mycheck_2 (doc)
    var apWord_mycheck_3 =
    function mycheck_2 (doc)
    var apWord_mycheck_2, apWord2, apnumWords;
        apnumWords = doc.getPageNumWords(1);
            for (var z = 0; z < apnumWords; z++)
                 apWord_mycheck_2 = doc.getPageNthWord(1,z);
                if (apWord_mycheck_2 == "Model_2")  
    //how to through out apWord_mycheck_2 ?????

  • Annoying! SP Browser Plugin for Mac Chrome

    Hello Experts
    Has anybody successfully managed to remove the exasperating notice that appears at the top of OSX Chrome everytime you load a page in SP?
    It says "Could not load Sharepoint Browser plugin"
    It's not fixed by disabling the presence feature like many claim - I'm thinking this is a master page fix, bit not sure where to start.
    Any guidance would be brilliant.
    Thanks
    Chris

    Hi,
    you can remove this message if you add script to the master page that overwrites the following javascript functions. 
    function ProcessImn() {}
    function ProcessImnMarkers() {}
    The origin is that SharepPoint tries to load the presence information that are not available in Chrome.
    The other workaround is that you use SharePoint with Safari instead of Chrome. If you have Offfice 2011 for Mac installed. Then you have the extension for SharePoint installed. This only asked you once if you like to trust the plugin and you won't get the
    message again.
    You will also find the Web Extension in Safari if you go to:
    Preferences
    Security
    Manage Web Extentsions
    SharePoint Browser Plug-in
    Hope this helps.
    Kind regards
    Stefan
    http://www.n8d.at/blog
    Follow me on Twitter: StFBauer |
    n8design
    Microsoft Community Contributor 2011 / 2012
    MCTS - SharePoint / WSS Configuration and Development

Maybe you are looking for