Here’s a script which will prompt you for a folder, find all the *.more documents inside that folder, and tell OmniOutliner 3 to open them and write them all back out as *.oo3 documents.
This script assumes you’ve just downloaded (and opened) OmniOutliner 3 Professional from our website, though you can change that assumption by editing the first few lines of the script.
-- This assumes you've downloaded OmniOutliner 3 Professional from <http://files.omnigroup.com/software/MacOSX/10.4/OmniOutlinerPro-3.10.6.dmg> and that the disk image is currently open. It runs the app directly from that disk image so you can just eject it when you're done and not pollute your hard drive with the older app.
-- To run OmniOutliner 3 Professional from a different path, just change this version3Path declaration
global version3Path
set version3Path to "/Volumes/OmniOutliner Pro/OmniOutliner Professional.app"
-- First, prompt the user for the folder containing their MORE documents and find all the *.more files in that folder
set folderName to quoted form of POSIX path of (choose folder)
set findResults to (do shell script "find " & folderName & " -name '*.more' | sed 's#//#/#'")
set moreFiles to every text item of splitString(findResults, return)
-- Now iterate through all those files and convert them
repeat with moreFile in moreFiles
convertMoreFile(moreFile)
end repeat
on convertMoreFile(moreFile)
log "Converting " & moreFile
tell application version3Path
-- MORE documents can end up turning into multiple OmniOutliner documents, so we need to close all open documents before opening a MORE document so we can save every document that's still open afterwards
close documents
-- Tell OmniOutliner to open the MORE document
open moreFile
-- Save each document to its own file (*.more.oo3, *-2.more.oo3, *-3.more.oo3, etc.)
log "... saving " & moreFile & " as " & (count documents & " documents")
set documentIndex to 1
repeat with convertedDocument in documents
if documentIndex > 1 then
set suffix to "-" & documentIndex
else
set suffix to ""
end if
set targetFile to moreFile & suffix & ".oo3"
log "... saving " & targetFile
save convertedDocument in targetFile
close convertedDocument
set documentIndex to documentIndex + 1
end repeat
end tell
end convertMoreFile
-- This is just a little utility function to split the lines of output returned by the UNIX find command
on splitString(theString, theDelimiter)
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to theDelimiter
set theArray to every text item of theString
set AppleScript's text item delimiters to oldDelimiters
return theArray
end splitString
Hope this helps!