html export using AppleScript?
I'd like to do automated html export using AppleScript. Basically my goal is to periodically (daily?) publish updates of project plans for public consumption, but I can't find a way to script the "Export".
I found this example for OmniOutliner (not OmniPlan), but it doesn't work for me and I have no idea what variations I might try: [url]http://forums.omnigroup.com/showthread.php?t=2774[/url] Anyone know if this is possibe? And if so, how? thanks Kaan |
It should work something like this:
[CODE]tell application "OmniPlan" tell front document save in "Volumes:Extra:myReport.htmld" as "HTML Full Report" with properties {export template:"Users:lizard:Library:Application Support:OmniPlan:HTMLTemplates:Custom Project Report"} end tell end tell[/CODE] However, that's giving me an error right now. I've filed a bug, and hopefully we can get an engineer to look at it soon. (But feel free to try something like this anyways and let me know if it does somehow work for you.) |
Awesome, your suggestion worked great. Here's something I just used for a template I named "Standard", it's really close to yours. I haven't tried using this script against a custom template yet.
[I]tell application "OmniPlan" tell front document set reportName to "Users:kaan:Desktop:" & (get name) & ".htmld" save in reportName as "HTML Full Report" with properties {export template:"Users:kaan:Library:Application Support:OmniPlan:HTMLTemplates:Standard"} end tell end tell[/I] Thanks! Kaan |
kaan: what version of OmniPlan are you using? I think we must have re-broken this in our internal builds recently!
|
All times are GMT -8. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.