The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan Extras (http://forums.omnigroup.com/forumdisplay.php?f=45)
-   -   Export custom reports to PDF in AppleScript? (http://forums.omnigroup.com/showthread.php?t=5271)

Bigkronk 2007-10-23 08:10 PM

Export custom reports to PDF in AppleScript?
 
1 Attachment(s)
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
[/CODE]

(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
[/CODE]
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

Lizard 2007-10-24 01:24 PM

Sorry, you can't do filtering via AppleScript at this point. (I'll file a feature request for you.) The only properties that work are the ones in the Export Settings.

diagram type -- Export to Graffle diagram type.
iCal todo -- Export to iCal as to-do items instead of calendar events.
include task groups -- Include task groups in CSV export.
show all rows -- Expand all groups for the export.
views to include -- Which views to export (outline, gantt, or both)

Tom Dibble 2007-10-29 06:51 PM

[QUOTE=Lizard;23347]Sorry, you can't do filtering via AppleScript at this point. (I'll file a feature request for you.) The only properties that work are the ones in the Export Settings.
[/QUOTE]

Add another vote for being able to filter via applescript. I suppose I might be able to have UI controls do it for me, but that's obviously rather brittle (will break the next time you guys change the dialog).

I need to rather frequently pull out a report of tasks which are scheduled to start on any date up to the end of next week, and which did not complete as of the start of last week (ie, everything worked on in the past week, plus everything scheduled to start in the next week). I can do this manually, and thought maybe the "with properties" parameter to "export" might somehow give the possibility to do this via Applescript, but I hadn't been able to find any documentation or example using that parameter of the command.

ghoetker 2013-11-10 06:25 PM

Any progress on being able to filter via Applescript. I see a request was put in back in 2007, but I can't seem to find it if it is available.

Thanks.


All times are GMT -8. The time now is 07:00 PM.

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