View Single Post
I'm trying to export my OmniPlan project into many separate PDFs that are filtered by the following criteria: Resourse, Starting Date, and Ending Date.

I tried the following in AppleScript:

Code:
tell application "OmniPlan"
	using terms from application "OmniPlan"
		set SDate to date "Monday, October 1, 2007 12:00:0 AM"
		set EDate to date "Friday, November 9, 2007 12:00:0 AM"
		set mPlatt to "Mike Platteter"
		export front document to "Users:~:Documents:W:W Project:W Project Milestone 4 Mike.pdf" as "PDF" using template "" with properties string resource = mPlatt
	end using terms from
end tell
(where "~" is my home folder...)
but with no luck.

If I just use:

Code:
tell application "OmniPlan"
	using terms from application "OmniPlan"
		export front document to "Users:~:Documents:W:W Project:W Project Milestone 4 Mike.pdf" as "PDF"
	end using terms from
end tell
then in exports the entire OmniPlan document as the named PDF. But I'm trying to access the filtering options in the Export Dialog for something similar to the attached.

I'm a newbie to AppleScript...

Mike
Attached Thumbnails
Click image for larger version

Name:	OmniPlanExport.gif
Views:	1425
Size:	12.3 KB
ID:	350