Bulk import word docs to apple wiki?
August 13, 2011 11:01 PM   Subscribe

I have a Apple Lion server, and would like to import a bunch of word documents as wiki pages. How can I do this with the smallest level of effort?

I'd like to avoid applescript if possible, but if that's the only route then it's not a total dealbreaker. More generally, is there any decent documentation for this available online. My googling tends to either turn up Apple's ads for Lion Server, or any number of wikis about Apple stuff.
posted by pompomtom to Computers & Internet (8 answers total)
 
Check out this wiki page about converting from word to wiki:

http://en.wikipedia.org/wiki/Wikipedia:Tools/Editing_tools#From_Microsoft_Word_or_OpenOffice
posted by digividal at 11:27 PM on August 13, 2011


Response by poster: Sorry, I can see I haven't really been clear. I'm using OSX's built-in wiki server, and want to import for that, rather than installing MediaWiki (or other wiki software).
posted by pompomtom at 12:03 AM on August 14, 2011


Good luck and let me know if you find what you're looking for. I had the same situation but with snow leopard server and couldn't find any great way to do this.
posted by mosessis at 4:56 AM on August 14, 2011


The Mac OS X Lion Server discussion forums might be a more productive place to ask this question.
posted by blob at 5:26 AM on August 14, 2011


Not familiar with the OSX wiki, so this may not be helpful. Is it the format that is the problem? Is it simple to import text files?

Antiword allows for batch conversion of word files to text.

Example of how to do so in Linux.
posted by jsturgill at 9:45 AM on August 14, 2011


Ooohh... I've hacked wikid on 10.6, although not along these lines. Not familiar with 10.7 yet but here's what I know of 10.6. I don't know of any builtin way, but there are two routes to go if you're willing to write some code.

1) The wikid software has an XMLRPC interface. Look at the classes in "/usr/share/wikid/lib/python/apple_xmlrpc_server". Specifically, WikiService.py and ContentServiceBase.py list all the valid remote calls. You should be able to write a client in your favorite scripting language to read all the documents then make the XMLRPC calls to create new entries.

2) Data is stored in "/Library/Collaboration/Groups/$NAME/wiki" in a fairly simple format. I've never tried it but you might be able to just put the generated html files directly here, using the right structure of course. There's still the matter of some of the index and db files, but I'd think those wouldn't be too hard to puzzle out.

Personally, I'd spend time with (1) but I've been a programmer a long time.
posted by sbutler at 10:08 AM on August 14, 2011


there's a tool (AppleWikiImporter) for bulk importing content to a 10.6 wiki server install that might or might not work for the 10.7 wiki server. it's for pulling content in from other web sites though, so you'd need to save your Word docs as HTML, then hope the importer can parse the garbage markup that Word produces.

from the 10.6 server docs -
Migrating Wiki Content from Other Websites

AppleWikiImporter is a tool that can traverse a website that has a page listing all other pages on the site and create wiki pages based on the website contents. If the website uses tags, AppleWikiImporter can import those tags.

To use this tool, you need some knowledge of CSS selectors and, depending on the website you’re importing, some knowledge of JavaScript.

AppleWikiImporter is located at:

https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/ getSoftware?bundleID=19994

For information about using AppleWikiImporter, see its readme file.
you'll probably need an Apple Developer Connect account (freebie one should do it) to download from connect.apple.com.
posted by russm at 5:34 PM on August 14, 2011


sbutler - if you make direct edits to wiki content, rather than tweaking the index yourself you're just meant to delete index.db in the top-level wiki group directory and wikid will reindex everything itself.
posted by russm at 5:37 PM on August 14, 2011


« Older HELP ME BLOW THEIR MINDS (and then determine the...   |   Help me identify this piece of classical music... Newer »
This thread is closed to new comments.