Batch conversion of mac word files to PC .doc files

C

Coppernob

I have tried with no success in googling and download.com etc for a
utility that will:
identify mac word files and add the extension .doc to them so that a
PC Word can identify them as Word files
 
P

Paul Berkowitz

I have tried with no success in googling and download.com etc for a
utility that will:
identify mac word files and add the extension .doc to them so that a
PC Word can identify them as Word files


Here's an applescript that will do it if you drop a gaggle of them on the
script saved as an Application in Script Editor. You can even drop a folder
containing word files and it will do the same. It assumes that these are
genuine Word 6, 98, 2001, X files made on the Mac (and will work with 2004
Word files too when they come out.)

Paste this script into Script Editor (here: /Applications/AppleScript/Script
Editor). Compile, then File/Save As Application (NOT Compiled Script - flip
the popup to Application) to the desktop or elsewhere. Call it "Add doc" or
whatever, but don't include the "." or the OS will think you want to turn it
into a Word doc.

Drag one or more (any number of pre-selected) Word files, or a folder of
Word files, onto the droplet you have made.



-----------

on open (theItems)

repeat with theItem in theItems
tell application "Finder"
if kind of theItem is "Folder" then
set theFiles to every file of theItem
repeat with theFile in theFiles
my AddDocExtension(theFile)
end repeat
else
my AddDocExtension(theItem)
end if
end tell
end repeat
beep
display dialog "Done!" giving up after 3 -- seconds

end open


to AddDocExtension(theFile)
set filePath to theFile as Unicode text
tell application "Finder"
try
set theFile to file filePath
tell theFile
if its creator type is "MSWD" and {its file type} is in
{"W8BN", "W6BN"} then
if name extension ‚ "doc" then
set theName to name
set name to (theName & ".doc")
end if
end if
end tell
end try
end tell
end AddDocExtension

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


--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
T

Tim Murray

identify mac word files and add the extension .doc

The extension part is easy. Can you not do the determination of whether or
not they are Word docs on the Mac side of the equation? Have they lost
their type/creator codes?
 
B

Bob Mathews

The extension part is easy. Can you not do the determination of
whether or not they are Word docs on the Mac side of the
equation? Have they lost their type/creator codes?

The format for equation graphics is different on the Mac and PC.
The professional version of Equation Editor -- MathType -- has a
conversion utility, but Equation Editor does not. You can get
more information about MathType, and purchase it if you want, at
the link in my signature.

--
Bob Mathews (e-mail address removed)
Director of Training 830-990-9699
http://www.dessci.com/free.asp?free=news
FREE fully-functional 30-day evaluation of MathType 5
Design Science, Inc. -- "How Science Communicates"
MathType, WebEQ, MathPlayer, MathFlow, Equation Editor, TeXaide
 
T

Tim Murray

The format for equation graphics is different on the Mac and PC.

Interesting. Luckily any docs that I've moved between platforms didn't have
any equations. I've owned both Win and Mac MathType for a gazillion years,
and I'm thrilled they (you!) finally put out a new Mac version.
 
C

Coppernob

Here's an applescript that will do it if you drop a gaggle of them on the

thanks. very useful.

Now if i wanted to do the same with excel files what lines would i
change? :)

Cop
 
J

JE McGimpsey

Coppernob said:
Now if i wanted to do the same with excel files what lines would i
change? :)

Just in case you were serious:

Change creator type to "XCEL" and file type to "XLS8". Change the
extension to "xls"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top