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 > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Today's Posts

 
OF 1.7 Printing Problems Thread Tools Search this Thread Display Modes
I'm getting a crash when I attempt to print in OF 1.7 using either my own or a built-in perspective. Is anyone else seeing this?

(Crash reports submitted.)
__________________
Cheers,

Curt
 
Just in case others are having this problem, I resurrected an old script to the 1.0 sneaky peek days. This script will take your current OF view and create an OmniOutliner Pro outline from it. You can then print from OO. The script is quick and dirty. It doesn't capture anything but the titles and notes of the items (that is, no additional columns), but it worked for me in a pinch today.

Code:
(*
	This script generates an OmniOutliner outline from currently displayed view in OmniFocus.
	
	version 0.1.2, by Curt Clifton
	
	Copyright © 2007–9, Curtis Clifton
	
	All rights reserved.
	
	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
	
		• Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
		
		• Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
		
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*)

tell front document of application "OmniFocus"
	tell document window 1
		set topLevelTrees to every tree of content
	end tell
end tell

tell application "OmniOutliner Professional"
	activate
	make new document at before documents
end tell

createRows(topLevelTrees)
return

-- theItems is a list of top-level trees
on createRows(theItems)
	if (theItems is {}) then return
	createRow(item 1 of theItems)
	createRows(rest of theItems)
end createRows

-- anItem is a tree
on createRow(anItem)
	set rowData to getRowData from anItem
	tell front document of application "OmniOutliner Professional"
		set aRow to make new row at end of children with properties {topic:(rowTopic of rowData), note:(rowNote of rowData)}
	end tell
	createChildren(anItem, aRow)
end createRow

on getRowData from anItem
	using terms from application "OmniFocus"
		set theTopic to name of anItem
		try
			-- Not all tree nodes have notes, so punt on error
			set theNote to (note of value of anItem)
		on error
			set theNote to ""
		end try
	end using terms from
	return {rowTopic:theTopic, rowNote:theNote}
end getRowData

-- anItem is a tree
-- aRow is an OmniOutliner row
on createChildren(anItem, aRow)
	using terms from application "OmniFocus"
		set itemChildren to every tree of anItem
	end using terms from
	createChildrenHelper(itemChildren, aRow)
end createChildren

-- itemChildren is a list of trees
-- aRow is an OmniOutliner row
on createChildrenHelper(itemChildren, aRow)
	if (itemChildren is {}) then return
	set childItem to item 1 of itemChildren
	set childData to getRowData from childItem
	tell front document of application "OmniOutliner Professional"
		set childRow to make new row with properties {topic:(rowTopic of childData), note:(rowNote of childData)} at after last child of aRow
	end tell
	createChildren(childItem, childRow)
	createChildrenHelper(rest of itemChildren, aRow)
end createChildrenHelper
__________________
Cheers,

Curt
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with printing caspersgrin OmniOutliner 3 for Mac 2 2008-08-27 01:05 PM
printing problems bpsArch OmniPlan General 1 2008-05-12 02:20 PM
Two problems with printing Paul Hoadley OmniFocus 1 for Mac 2 2007-12-17 10:06 PM
Printing problems Onmi OmniPlan General 3 2007-04-03 03:16 PM
Still having problems with printing on some websites Hunter S OmniWeb General 4 2007-01-10 01:41 PM


All times are GMT -8. The time now is 08:59 PM.


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