Warning when opening a .doc file (with Pages) ruins my applescript convert process

I have 2000 plus documents (some Pages, most .doc) that I need to convert to PDF. I've got a working applescript droplet that converts both doc and pages files very nicely... but on some of the .doc files I get this dialog: "Some warnings occured. Would you like to review them now."  This of course, ruins my script run.
Is there a way to suppress this warning when Pages opens a .doc file?

Only if there is a script for dialog boxes in your AppleScript which you would have to tailor for the responses.
You can record snippets of mouse activity using the Script Editor and include those in your script if there are no AppleScript library items.
Peter

Similar Messages

  • "uses a file type that is blocked from opening in this version" error message when opening a *.doc file with Word already running

    Several customers running different versions of Office 2011 (14.4.1-14.4.5) on OSX varying from 10.7.5 to 10.9.5, running on various kinds of hardware (iMac/MacBook Pro/MacBook Air) of various ages are having issues opening *.doc files if the Word is already open. The error message that gets displayed is, "XXXX.doc uses a file type that is blocked from opening in this version"
    When the customer tries to open the same file via File-Open, she gets "The file is locked for editing. you can open the file as read-only".
    When trying to do so, she gets "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters".
    If Word gets Force-quit, the same document opens without any problems.
    1. Repairing Disk permissions was ran several times. and the volume was found to be OK.
    2. I have noticed that in this scenario either deleting the normal.dotm or com.microsoft.word.plist (~/Library/Preferences) sometimes resolves the issue, sometimes it doesn’t. There is no pattern to follow. All versions of Office are affected, the fully updated and the non-updated ones.
    3. I have tried completely removing the suite using Office 2011 Uninstall.app and/or Remove Office 2011 Uninstaller.pkg, then going through customer's library and manually removing all the Office references.
    4. None of these systems had Office 2008 in the past.
    Any help will be greatly appreciated.

    Reboot both the Mac and the server. Word opens .DOC files and Excel opens .XLS files. As you have found out by copying the files to the computer. It is the connection between the 2 computer that is causing the error.

  • How to open a ".doc" file with ms word directly with this servlet?

    Here is a servlet for opening a word or a excel or a powerpoint or a pdf file,but I don't want the "file download" dialog appear,eg:when i using this servlet to open a word file,i want open the ".doc" file with ms word directly,not in IE or save.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class OpenWord extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
    String strFileName = req.getParameter("filename");
    int len = 0;
    String strFileType1 = "application/msword";
    String strFileType2 = "application/vnd.ms-excel";
    String strFileType3 = "application/vnd.ms-powerpoint";
    String strFileType4 = "application/pdf";
    String strFileType = "";
    if(strFileName != null) {
         len = strFileName.length();
         if(strFileName.substring(len-3,len).equalsIgnoreCase("doc")) {
              strFileType = strFileType1;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("xls")) {
              strFileType = strFileType2;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("ppt")) {
              strFileType = strFileType3;
         } else if(strFileName.substring(len-3,len).equalsIgnoreCase("pdf")) {
              strFileType = strFileType4;
         } else {
              strFileType = strFileType1;
    if(strFileName != null) {
         ServletOutputStream out = res.getOutputStream();
         res.setContentType(strFileType); // MIME type for word doc
    //if uncomment below sentence,the "file download" dialog will appear twice.
         //res.setHeader("Content-disposition","attachment;filename="+strFileName);
         BufferedInputStream bis = null;
         BufferedOutputStream bos = null;
         String path = "d:\\"; //put a word or a excel file here,eg a.doc
         try {
         File f = new File(path.concat(strFileName));
         FileInputStream fis = new FileInputStream(f);
         bis = new BufferedInputStream(fis);
         bos = new BufferedOutputStream(out);
         byte[] buff = new byte[2048];
         int bytesRead;
         while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
         bos.write(buff, 0, bytesRead);
         } catch(NullPointerException e) {
         System.out.println ( "NullPointerException." );
         throw e;
         } catch(FileNotFoundException e) {
         System.out.println ( "FileNotFoundException." );
         throw e;
         } catch(final IOException e) {
         System.out.println ( "IOException." );
         throw e;
         } finally {
         if (bis != null)
         bis.close();
         if (bos != null)
         bos.close();

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • I can no longer open .doc files with pages 5

    hi,
    whenever I click on a .doc document pages tells me that:
    "Pages doesn’t support RTF files."
    this is very annoying and complicates everyday exchange with colleges,
    does anyone has an idea how to solve that? make pages open .doc?
    best,
    jakob

    Jakob1233 wrote:
    The weird thing is that it was a .doc file (I suspect an older version is what has caused that error) and not .rtf... I tried to open the same document with the older version of pages, which worked fine.
    No, I can assure you it was an RTF file.  The fact that the filename ended ".doc" is irrelevant and certainly does not make a file a Microsoft Word document.  The filename is irrelevant, and the file content is what's critical.  For example, I could take a .mp3 music file, and then rename it "Presentation.doc".  You would not be able to open this in any word processing software on any operating system.
    Also remember that having files end with ".xxx", although a requirement in Microsoft Windows is completely optional in other operating systems like OS X and Linux.  Files do not have to have "extensions" at all.
    You have two options:
    1.  Rename the file, removing the ".doc" part.  Now when you open in Finder, it will automatically open with Text Edit, which is OS X's RTF editor.  If you absolutely must cling to Windows conventions, you could set the extension as ".rtf" - it makes no difference, as Finder uses the file content format to detemine the best program to use.
    2.  If you do have Microsoft Word available (either on Windows or Mac), open the .doc file in Word, choose "save as..", change the document type from RTF to the Word ".doc" format, ignore the warning informing you that you are changing the format, and then Save.  Now you can open the file in Pages.
    Hope this helps.

  • Open .doc file with pages

    Is there a possibility, that I can double click a .doc file and pages instead of word will open the document?

    Welcome to Apple Discussions
    If the Word document is password protected Pages will not open it. I suggest trying one of the Office clones such as NeoOffice or Open Office.

  • Missing fonts warning when opening a Keynote file

    I'm using Keynote 2.0.2 on a Mini Mac. Having searched for an answer to the ubiquitous "Missing Font" problem when opening a Keynote file, I was wondering if upgrading to the latest version would solve this problem. Unless it does, we would have to think twice about upgrading the software. A lot of users seem to have the problem with version 3 too. Does anyone have a solution to this? The presentation runs perfectly well, but the warning message is annoying and doesn't look nice when presenting to clients. HELP!
    1.42 GHz Mac Mini PPC G4   Mac OS X (10.4.8)   1GB DDR SDRAM

    I've experience this same problem multiple times. There is a way to get rid of the troublesome font, thereby getting rid of the annoying message. I may be glossing over a step or two, but it goes something like this:
    (1) In the Finder, right click on the Keynote file and select "Show Package Contents"
    (2)Locate the index.apxl.gz file and open it. The file exands -- then open the index.apxl file with Textedit (or Word). Throw away the gz file.
    (3) Do a search and replace -- find all instances of the troublesome font name and replace it with a non-troublesome font name, such as GillSans
    (4) Close the text file.
    Opening the Keynote file should now proceed normally. Note: Better practice this on a dummy file until you are sure everything works. I imagine that if you muck up the index file that the orignial Keynote file might be toast!
    Rob
    Black Macbook   Mac OS X (10.4.7)  

  • Open Acrobat pdf file with Pages

    Hi,
    I've read a lot of information about using pdf files with the ipad. I purchased goodreader but I'm not happy with the way text is rendered, it is blurry. When I open the same file with Safari, it looks perfect. Sent an email and I'm waiting for a response.
    I was reading about Apple Pages for the ipad. Will this open pdf files or just export to pdf files? Thanks.
    Regards-Michael G.

    I was reading about Apple Pages for the ipad. Will this open pdf files or just export to pdf files?
    Pages is a word processor, not a pdf reader. It can only export to pdf.

  • When opening a Photoshop file with Bridge, how can I control which version of Photoshop the file wil

    When opening a Photoshop file fthrough Bridge, how can I control which version of Photoshop the file will open in?
    I store my PSD files adjacent to the original RAW file from which it was derived.
    If I open the file folder and double click on that PSD file, it opens in CS6. But,if I use Bridge (CS6) to navigate to and open the same file, it first opens Photoshop CS5 and then opens that PSD file in CS5.
    How can I control which Photoshop will open a file I select when opening it through Bridge?.

    Interesting, but it doesn't give a clue what I'm supposed to do. No Photoshop ducuments listed.
    Look at the PSD file on the location Curt provided and search for Photoshop Document. Next to it ideally should show Adobe Photoshop CS6 if you have Bridge CS6 open. Click on it to provide the fly out menu and choose the correct Photoshop from the list.
    But probably something went wrong with your install. By default Bridge chooses the latest version of PS to open its file in.
    Maybe a reset of the preferences might also help you. Can you provide more details about OS version etc.
    And do you have a good reason for keeping your Raw and finished files in the same location. Personally I keep them apart and use a proper file name convention (yyyymmdd and details) so I can easily search for the DNG files in my archive if I needed them but I don't make mistakes in opening the wrong one

  • Firefox keeps aksing me what programs that i want to open a doc.file with every time i try to download a doc file.

    the program that I use is open office. I chekced the box that says that this will always open a doc file but it keeps asking me about it.

    Firefox should be able to remember your preference -- as long as the site is specifically identifying the file as a distinct content type. Some sites may fail to do this and simply indicate it is a binary file that the browser can't handle, in which case Firefox doesn't store a specific preference.
    So this could be a problem caused by how the server is identifying the content type. Or it could be a problem with the settings file that stores download preferences. The workaround for that problem is to remove the file and have Firefox rebuild it. If you have changed settings from the default (for example, how to view PDFs) you will have to change those settings again.
    If you want to try it:
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > (in the first table) "Show in Finder" button
    Leaving that window open, switch back to Firefox and Exit/Quit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Restart Firefox and see whether its memory improves.

  • Opening a .doc file in Pages results in Untitled document?

    Hi all!
    I've reinstalled iWork '06, along with the rest of my OS, and I've noticed something strange: if I set Pages as default to open .doc files, every time I double-click on a .doc file, Pages opens it in an Untitled document.
    Of course, when it comes to saving changes, Pages asks me to save them in the Untitled, not in the original document. No matter that I exported the file in .doc in Pages in the first place, it just doesn't save it.
    How come?

    Before Pages 3/iWork '08, Pages opened any "foreign" document (Word, AppleWorks, text, RTF) as an untitled Pages document, just as it does a template. When you export a document, you're doing just that, not saving it. Pages "knows" you haven't saved it as a Pages document so the title doesn't change until you do save it.
    Since Pages 3, a "foreign" document will have the name of the original with the .pages extension added. But the rest of the process is the same.

  • How to open a .DOC file with MS-Word ?

    Hye fellow Java freaks,
    I have made an application to upload .DOC and .RTF files to the server using servlets and the Jakarta Commons FileUpload package.
    The files are uploading successfully.
    Now, I want to place a link to the most recently uploaded file and then, on clicking that link, I want the file to open not in the browser, rather with MS-Word.
    What is the servlet code that I should implement to accomplish this ?
    Any suggesions ?
    Thanx in advance.

    I think this is a client-side issue - how the browser chooses to deal with the .doc file it receives.
    You can 'save as' and then open the file by hand.
    --Jon                                                                                                                                                                                                                                                                                                                               

  • Is it possible to open a pdf file with pages?

    i created a wonderful document with pages a few years ago, and thankfully i exported it as a PDF file, because when i went to work on it in pages, i found that it had become rather jumbled. the PDF is in perfect condition. how can i import it to pages and continue my work?

    It's easy to split the PDF into single page files.
    Then, you may paste the pages in a Pages document.
    Some times ago I posted a script resizing these pasted PDFs to fit the Pages page size.
    When this will be done, create text boxes above the pieces of text which must be edited.
    Yvan KOENIG (VALLAURIS, France) mercredi 22 juin 2011 13:36:58
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Unable to open skydrive docs files with Lumia

    Hello, I can open  doc files from skydrive with PC and browser, but not with Lumia phone office application. There is text : "there were some problems opening this file, some part may be missing. You may correct the problem opening and fixing the problem with PC"  I opened original and skydrive saved files. They were working normally with Openoffice or with browser but not with lumia. Thank you for your help. 
    Solved!
    Go to Solution.

    OpenOffice is known to not write fully Office compliant files. It may well be that is you open in Office and then save as a new file it will load up fine.   OpenOffice != Office and do not let them make you believe it is !
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Finding embedded word files when opening a powerpoint file with Keynote

    I can't!
    I have tried control clicking on the file and there is nothing. In the presentation there are icons that are meant to open word files but when I click them it just takes me to the next slide. I have been through all the menus and I am stuck.
    I know that the files open for people using powerpoint but I suspect I am the only Mac user in the group of teachers using the files.

    Welcome to the discussion boards, k1r5tymm.
    Unfortunately, Keynote will not open Word files from within a presentation -- see this discussion about the issue, and possible workarounds. Your best bet is to follow Kyn's suggestion in that thread, and open the documents before you start the presentation, then use Command-Tab during the presentation to change between KN and Word. Or, if you have all the documents open, you could also use Expose's Show All Windows (the F9 key), which would allow you to select the document you want very quickly, and looks slick besides.
    PowerMac G5   Mac OS X (10.4.4)  

Maybe you are looking for