The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

multi-file export with Automator? Thread Tools Search this Thread Display Modes
Is there a way to export multiple documents at once with Automator?

It seems like the filename has to be hardcoded in the export action, which makes it hard to use with several different files at once.

I was hoping that leaving the filename blank would make Outliner figure it out itself. I've got a bunch of outliner files that I want to convert to OPML, so that myfile.oo3 -> myfile.opml.

For now I'm using this applescript where the export action would go:

on run {input, parameters}
	set exportDir to "/tmp/opml/"
		do shell script "mkdir '" & exportDir & "'"
	end try
	tell application "OmniOutliner"
		repeat with doc in input
			set s to doc's name
			set opmlName to texts 1 thru ((s's length) - 4) of s & ".opml"
			set outfile to exportDir & opmlName
			export doc to outfile as "OOOPMLDocumentType"
		end repeat
	end tell
	return input
end run

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visio Export doesn't export pattern fill [A: limitation of Visio file format.] BradP OmniGraffle General 4 2012-02-25 03:50 PM
Use OPML file with Mindmeister and export to rtf-File nm2 OmniOutliner for iPad 3 2011-05-22 06:30 AM
Using Automator to export latest version to PDF jeromev OmniGraffle General 0 2011-04-19 11:54 AM
File extension issue for HTML export can overwrite plan file jrwilco1 OmniPlan General 4 2007-10-31 02:38 PM
Automator / AppleScript HTML Export sstringer OmniOutliner 3 for Mac 1 2007-02-08 03:25 PM

All times are GMT -8. The time now is 11:33 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.