Word > Pages batch converter

Discussion in 'Mac Apps and Mac App Store' started by Sesshi, Jan 23, 2007.

  1. Sesshi macrumors G3

    Sesshi

    Joined:
    Jun 3, 2006
    Location:
    One Nation Under Gordon
    #1
    Aside from attempting to script this, is there a tool out there which does batch conversions from .doc to .pages?
     
  2. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    Sesshi, are you OK? Where has the Dell lover gone? :p

    I'd have thought you'd probably need to script it, as I imagine only Pages can open .pages files.
     
  3. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #3
    OK my efforts at a quick script seem to have failed me, I can't get the damn thing to close the save dialog. APPLESCRIPT IS REALLY IRRITATING.

    Code:
    set tilde to (path to home folder as string)
    tell application "Pages"
    	open file (tilde & "desktop:read me.doc")
    	activate
    	tell application "System Events"
    		tell process "pages"
    			keystroke "S" using {command down}
    			delay 1
    			keystroke "read me" -- the name of the file
    			delay 1
    			--doesn't press return here. :mad:
    			delay 5
    			keystroke "W" using {command down}
    		end tell
    	end tell
    end tell
    
    This only works for a file called "read me" on the desktop and requires pages to be set up to write the files to the directory you want first, but gives a general idea of a script.
     
  4. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    Why not just change the default application for .doc to be Pages, then convert them as you need/read them?
     
  5. IJ Reilly macrumors P6

    IJ Reilly

    Joined:
    Jul 16, 2002
    Location:
    Palookaville
    #5
    That's way too simple and Mac-like. You should be ashamed of yourself! :)
     
  6. Sesshi thread starter macrumors G3

    Sesshi

    Joined:
    Jun 3, 2006
    Location:
    One Nation Under Gordon
    #6
    Quite the contrary actually. You'd have to save them once you've opened each document. The sort of people I'm trying to get to use Macs as they can't ably handle a Windows machine would be flummoxed by this.

    I figured I'd have to script it. Thanks, I'll make a start on it.
     
  7. emptyCup macrumors 65816

    emptyCup

    Joined:
    Jan 5, 2005
    #7
    When I worked at a large, mixed Mac/PC organization I found MacLinK+ invaluable. The documents need to be reviewed after conversion, though, as no converter is 100%. There are usually some formatting problems with page breaks, etc. (footnotes are the worst).
     
  8. mlewan macrumors newbie

    Joined:
    Dec 2, 2005
    #8
    You could try adapting the script to convert from Word to work the opposite way.
     
  9. Sesshi thread starter macrumors G3

    Sesshi

    Joined:
    Jun 3, 2006
    Location:
    One Nation Under Gordon
    #9
    Thanks for the link.

    I wonder if Word is scriptable in the same way. Since I've switched back full-time to Vista for my regular working machines and all my partners have done the same I don't need a Word converter anymore... but the script you linked will be very handy for some of my legacy documents in Pages. Thanks.
     

Share This Page