Search String in PDF file - MAC Apple Script

I want to write a Script for Searching String in a PDF File.
I start with Apple Script and the last 2 days i searching to eliminate the error in the Script.
set Datei to choose file
tell application "Adobe Acrobat Professional"
open Datei
activate
find text Datei string "01.07.08"
end tell
The script will stopped in line from find text.
The scrippt will be load a PDF file, activate it an i want to search "01.07.08" and marked it.
Please help me.
Thanks michael

Right, I think I've got on to something here:
1. I must not have been able to search this particular pdf document in the past, despite what I think I remember.
2. When I select the Yamaha TDM pdf in Finder and show the Inspector window (CMD-opt-I) I see under "More Info" that Security Method is 'Password Encrypted'. In fact, try to select and copy some of the text: you can't. BUT: print the whole file to a new PDF, then save that new pdf file and use it for searching, ... ta-da! it works!
I was a bit disappointed in ColorSync's inability to open the file and then Save it As... In the Tiger days, I had used this work-around: I took a password encrypted pdf document, opened it in ColorSync utility (in Applications/Utilities) and saved it under a new filename somewhere on the disk, and this process sort of neglected to cloak it up in its password-protection.
Oh well, I suppose I can use the Print to PDF method which I describe just here to achieve the same goal. Until, that is, the big-wigs in the publishing companies and Apple are alerted to this fact and strip the 'functionality' from the print process.
Thanks for posting.

Similar Messages

  • How to search specific text/string in pdf files from command prompt?

    Hi,
    How to search specific text/string in pdf files from command prompt?
    Will be great if you can refer to any adobe provided command base utility to achieve the above target.
    Best Regards,

    You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.

  • Always scrolling back to the search bar for pdf files in ibooks. Is there a way to fix this?

    ALWAYS scrolling back up to the search bar for pdf files in ibooks. Is there a way to fix this?

    Care to share your fix with the rest of the community in case anyone else has the same problem or since you found the solution are you off to never be heard from again?

  • How can I perform the conversion of pdf files in Cyrillic script to Word files in Cyrillic script. The pdf file is too small for me to read right now. Julyan Watts

    How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.

    This answer was not helpful. First of all, I could not find "tech specs"
    anywhere on the Acrobat 11 homepage. And secondly I purchased this software
    for the specific purpose of converting .pdf files to Word. It was only
    after I had completed the purchase that I learnt that Acrobat does not
    permit the conversion of .pdf files in Cyrillic to Word files  in Cyrillic.
    I feel that Acrobat should have provided this crucial information before I
    allowed my credit card to be debited. That is why I  am now asking for my
    money back. But thanks for your attempt to solve my problem, even if it was
    not successful.
    Julyan Watts

  • Merging PDF files through a script

    Hi everyone,
    I want to merge a couple of PDF files
    through a script, because i have to do
    it for a good number of them every time
    I get them sent.
    I was wondering, does Reader have a
    command that can be called in the command
    line in order to merge this pdf files through
    a script.
    Ted.

    Reader can do very few things besides being a reader. If you wanna merge PDF files, use a PDF merger.

  • Acrobat Pro XI Mac won't print a .pdf file, but Apple Preview will print correctly

    Hello,
    I have Acrobat Pro XI for Mac.  recently I've run into pdf files that will show the document on screen ok, show up on print preview screen ok, but when I send it to a printer I either get:
    1.  no printout... the document passes through the printer queue ok, but nothing comes out (no blank paper, nothing).  no data seems to even reach the printer/print server.  no error.  the print job basically vanishes into thin air like the job was never sent
    2.  prints out with all the characters of a text substituted with squares (again, no error. just prints squares instead of text)
    But when I print the same document using Apple's Preview program on the same machine, the file prints out fine.
    I experience this problem with two different Macs, with two different OS versions.  Again both machines will print the .pdf file fine using Apple Preview, but not with Acrobat Pro XI.
    I've searched for this problem, but no one seems to have this problem. I've tried just printing one page, etc., and no difference (won't print, or print wrong using Acrobat, but prints fine using Preview)
    the files are typically sent via e-mail from a vendor, or a web downloaded form (invoice, forms filled out.  some are secure, some are not).  and these are from multiple sources.
    Any ideas what might be the problem, and how to fix this?
    system:
    Mac Pro (early 2008) and MacBook Pro (mid-2011)
    MacOS 10.8.4 and 10.6.8 (multiple computers have this same problem)
    Acrobat Pro XI, 11.0.04
    printer: HP LaserJet 5MP (yes.. old.. but it works) via HP JetDirect + print server on  LAN

    I just found this solution on another board, I tried it  (I removed the same file listed below) and it worked for me.... 
    Safari won’t save or print PDFs: how to fix
    :: Tuesday, January 29th, 2013 @ 5:29:46 am
    :: Tags: Computers
    If Safari won’t save or print PDFs (but views them without any problems), you probably have an Adobe PDF plug-in installed. In Safari, go to Help->Installed Plug-ins and do a search for “PDF.” If you have anything with “PDF” in it other than “WebKit built-in PDF,” that is probably the culprit.
    On my computer, the problem was “AdobePDFViewerNPAPI.plugin”. To remove it, I quit Safari, did a Spotlight search (Command-Option space) for that file name, and then dragged it to the trash. When I restarted Safari, I could print and save PDFs again. You can also manually find the plugins by going to the system “Library”  folder (the one at the root of your hard disk, not in your user folder) and looking in the “Internet Plug-Ins” folder.
    I’m on OS X 10.8.2, running Safari 6.0.2 (8536.26.17).

  • Install and uninstall of dmg file using Apple script in Mac 10.6 and higher version.

    Hi ,
    Could anyone please help me to write a Apple script to Install dmg file and do clean uninstall in Mac 10.6.8 and higher version.
    My requirement is:
    When i run script : it has to install the dmg file which is located inside one desktop folder say 'New Folder'
    I need to do clean unistall when i run the script: i need to delete the folder in ~/Library- locate folder say  'CPSPCSHOWSERVER'' move to trash and from Terminal type in command "rm -r ~/.CPS' to completely delte this folder.
    Really appreciated all ur help!!
    Thanks,
    KT.

    http://macfidelity.de/2008/08/30/how-to-mount-a-dmg-from-terminal-in-mac-os-x/in dex.html
    http://osxdaily.com/2011/12/17/mount-a-dmg-from-the-command-line-in-mac-os-x/
    http://hints.macworld.com/article.php?story=20030614230204397
    http://www.commandlinefu.com/commands/view/2031/install-an-mpkg-from-the-command -line-on-osx

  • Getting Page Count for a Multi-Page PDF file using Illustrator script?

    Does anyone know how to get the page count of a multi page PDF file?  I know you can then open each page using the PDFFileOptions (pagetoopen).  But I need to know up front how many pages there are to loop thru to open each page and process each page.
    Any Ideas?

    This script i did for photoshop:
    OK so lets do it working on WIN and MAC without any shell script.
    This solution is not the best but its working.
    I used Try catch to solve it.
    Only issue is that you should at least somehow know how many pages you expect in pdf.. this mean if you are working with books or flyers...
    Then set the maxPagesCount to that number.
    I am working with pdfs with max 20pages.. so i start open the 20 then 19 then 18 and when i am success i know the amount of pages.
    Its not the quicker way but its usable.
    var maxPagesCount = 20;
    var actPagesCount = maxPagesCount;
    var opts1 = new PDFOpenOptions();
    opts1.usePageNumber = true;
    opts1.antiAlias = true;
    opts1.bitsPerChannel = BitsPerChannelType.EIGHT;
    opts1.resolution = 10; //it will load faster the test page
    opts1.suppressWarnings = true;
    opts1.cropPage = CropToType.MEDIABOX;
    myFunction = function () {
      try { 
          app.displayDialogs = DialogModes.NO;
          var fileList = openDialog();
          for (i = 0; i < fileList.length; i++) {
            actPagesCount = maxPagesCount;
            getPagesCount(fileList[i],maxPagesCount);
            alert(actPagesCount);
      } catch (exception) { 
        alert(exception);
    getPagesCount = function (checkFile, lastPageID) {
      try {          
        for (var checkPage = lastPageID; checkPage > 0; checkPage--) {
          opts1.page = checkPage;                    
          var docRef = open(checkFile, opts1, false);                  
          docRef.close(SaveOptions.DONOTSAVECHANGES);                  
          actPagesCount = lastPageID;                  
          return;                  
          checkPage=0;                              
      } catch (exception) {
        // Look for next page        
        checkPage--;        
        getPagesCount(checkFile,checkPage);

  • Firefox 5 will not load a pdf file from Apple Mail; Safari does; I also get a Javascript error void when trying to signoff Westlaw Next

    I have two problems. I cannot launch Adobe Acrobat Pro by clicking on a pdf file link in Apple Mail.
    I cannot sign off in Westlaw Next using either sign off button. I get a Javascript void () error when my cursor is over the button and clicking is unresponsive..

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Every time i try to download a pdf program an apple script comes up and the download does not go through what is the problem and why can i not download?

    I try downloading games and things but every time i do apple script comes up with an encrypted file. It has done this sense i bought this lap top. Please help me.

    Okay, can you reply letting me know if the computer was purchased used?, this will help as it would identify the possibility that the prior owner did indeed create some sort of block.
    Next, what you are speaking about blocks in regards to downloading 'PDF software'...is it PDF 'software' or PDF files that are blocked?, it appears that maybe it's the PDF files which are blocked at which case it indeed my be programmed into the system.
    Please answer these and we can further assist you in reaching an answer. As for this list you have provided, I would need more than simple bullets....if you can provide the location of these 'bullets' and file extension...that would get the ball rolling.
    Thanks

  • In pdf file need java script to clear cache before launch of web link

    using adobe acrobat XI - have pdf file with link to external web site.
    When creating the link in the link properties selected action Run a JavaScript  the following java script was added to ensure will open in new window. app.launchURL("http://google.com", true)
    this works most of the time except with some users - if those users clear their browser cache first then it works
    Is there anything that could be added to the java script to ensure the browser cache is cleared or not used before the launch action? or any other suggestion to ensure the link will always open in new window?
    Thanks,
    Jackie

    thanks for your prompt reply.
    Was hoping maybe there would be someway to clear the cache for the users
    without them having to do anything.
    Appreciate your help.
    Jackie
    Thanks,
    Jackie
    276.783.6991 x 326

  • How can I get the size of a file with apple script

    I try to get the size of a file within an apple script. But I did not find information how to do this.

    There are two ways. I think Apple is moving toward using System Events, which is listed first.tell application "Finder"
    set myFile to selection as alias
    --this just gets a file for me to work with
    --coercing it into an alias is required for the other functions
    end tell
    tell application "System Events"
    get size of myFile
    end tell
    set myInfo to (info for myFile)
    get size of myInfo

  • Adober Reader suddenly won't open any PDF files (Mac)

    I had an old version, I downloaded the latest one, upgraded to the newest, even tried taking that one out and downloading an older version. It doesn't matter which version I seem to have, it won't open any pdf files from the web.
    I use a Mac, and Safari. It used to always load PDF files fine, one random place said I had to update it so I did and since then, lately it'd crash and close all Safari windows when loading a PDF or trying to copy something from a PDF. The smart Mac message I have says it could be related to an Adobe Plug in. However, now it won't even load PDF files at all, it always goes to a white page. Nothing happens.
    What do I do?? I can't even save the PDF's as individual files and view then in Preview as an alternative option. It's a link online and normally would work. What happened??
    HELP!
    I have a Mac OS X Version 10.5.8
    I've always used Safari, it's Version 5.0.5 (5533.21.1 if that means anything).
    Acrobat Reader, currently an old version 9.4.0 download. BUT, I had also the 10.0.1 version which also doesn't work. When I had that 10.0.1 version and checked for updates, there was an update (.3 I think?) and I did that and that also doesn't work!
    Why did it suddenly stop working?
    What can I do to fix it ASAP?
    Only with 9.4.0 version I can go to Help and "Repair Adobe Reader Installation" - I click that and the only box I can select is "Adobe PDFViewer Safari Plugin - View, fill-in and collaborate on Adobe PDFs within Safari"  - I click continue and it tells me there's "No missing components detected. Repairs are not needed." The only option is to click "OK".
    With any newer version of Adobe Reader, under Help there is no option to "Repair Adobe Reader Installation". So... I can't even try that with a new version.
    I am at a loss for solutions. Hope someone here can help! Thanks!

    There are several things you can do. My first step would be to repair permissions. If that doesn't work log on as a different user. If all works properly then you have a corrupt preference file (most likely) or a corrupt user font installed in your user Library (less likely). If that doesn't work download Applejack. Have it repair the disk, remove all system caches and user caches. Then have it check all system and user preference files. Remove any preference files that are corrupt. Reboot and see if your system is working properly.

  • Search text in PDF file

    I would like to text search in pdf file, through java (VJ++), is it possible through java.io, i'm getting junk text.
    also tried to add COM wrapper through VJ++, but file is not getting loaded ?? any examples ??
    Thank you

    any ideas
    searching for PDF
    help required

  • Print web page to PDF file with live links in PDF file like Apple Safari's pdf prints?

    With Firefox for Macintosh, can I print a web page to PDF in such a manner that when I option the PDF file and click on a link, it is a live link that opens in my system's default web browser?
    With Apple Safari, when I print a web page to a PDF file, the links on that page are "live" and work to open the web browser to their destination. The PDF files I get from Firefox are dead. Clicking on link does not open in browser.
    Is there a way to get FireFox to act more like Safari in this regard?
    Thanks

    Seems the referenced thread is about Lion. I am having this problem in Snow Leopard 10.6.5 with Firefox. Any way to get PDFs with working links in Snow Leopard using FIrefox? I do not really want to have to use Safari for this purpose.
    Going forward when and under what circumstances will future versions of Firefox be able to create PDFs with live links? Are there any circumstances where a current or past version of Firefox can do it under any current or past version of OS X?
    Thanks.

Maybe you are looking for