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

 
Multiple file export via Applescript Thread Tools Search this Thread Display Modes
I noticed some talk elsewhere in this forum about using AppleScript to automate exporting multiple OO files. I'm new to OS X and haven't even looked at AppleScript yet, so I was wondering if anyone has an export script they'd be willing to share with me to help get me started.

I just got OO Pro this week and already see that it is the perfect application for a specific documentation project I'm working on. I'm annotating about 120 wireframes for a website. The wireframes are done as separate canvases in an OmniGraffle file, organized as a sitemap, and exported as an HTML image map. I'd like to maintain all of my notes on a per-page basis in OO (one OO file per wireframe page), and export them in bulk to dynamic HTML each time the sitemap is published. At that point I'd use a shell script to append each dynamic HTML file to its corresponding output wireframe page (the HTML file containing the image map for the specific page).

The shell script to combine the sets of files is easy enough, I'm just looking for a head start on automating outputting the 120 OO files to dynamic HTML.

Any help you can provide will be greatly appreciated. Let me know if you have any other ideas for doing this more elegantly.

Last edited by braindump; 2008-01-05 at 07:17 AM.. Reason: edited to fix a few typos
 
Hi, sorry for not seeing this sooner, here's a script that will export all currently open files to a specified folder:

Code:
set text item delimiters to ".oo3"
tell application "OmniOutliner Professional"
	tell application "Finder"
		set thePath to (choose folder with prompt "Select folder to export to")
		
	end tell
	
	repeat with myDoc in every document
		
		set docName to name of myDoc
		set docName to text item 1 of docName
		
		--change "com.omnigroup.OmniOutliner.HTMLExport/HTML (Dynamic)" to change export type
		--"writable document types" will list acceptable file types
		save myDoc as "com.omnigroup.OmniOutliner.HTMLExport/HTML (Dynamic)" in ((thePath as string) & docName)
		
	end repeat
	
end tell
set text item delimiters to ""
 
Hey, thanks a bunch!
 
 


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
applescript to export to text file? jbaile38 OmniFocus Extras 3 2008-09-06 12:01 PM
File extension issue for HTML export can overwrite plan file jrwilco1 OmniPlan General 4 2007-10-31 02:38 PM
multiple sheets in one file? mpoulalion OmniPlan General 1 2007-04-24 05:31 PM


All times are GMT -8. The time now is 02:01 PM.


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