The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   passing parameters to export (http://forums.omnigroup.com/showthread.php?t=17116)

plrz 2010-08-03 06:27 AM

passing parameters to export
 
I've written an export plugin which produces html.

I've added a parameters dictionary to the info.plist with one parameter. According to the SDK:

"These parameters can be set at runtime via OmniOutliner's AppleScript support"

But how?

And how do I access the parameter in the plugin's xsl

DerekM 2010-08-03 09:57 AM

Unfortunately the ability to use parameters with the XSLT exports broke a while ago, some point after OO 3.6, and it wasn't discovered until recently. What you would do though is use the 'set parameter' AppleScript command.

What are trying to use this parameter for? Is this some other way to accomplish it?

plrz 2010-08-03 11:11 AM

[QUOTE=DerekM;82508]Unfortunately the ability to use parameters with the XSLT exports broke a while ago, some point after OO 3.6, and it wasn't discovered until recently. What you would do though is use the 'set parameter' AppleScript command.

What are trying to use this parameter for? Is this some other way to accomplish it?[/QUOTE]

Ah, I see. Most unfortunate.

The error is interesting though - 'Builtin plugins are immutable' - my plugin isn't built in, therefore, can't be hard to fix ;-))

I need to pass the document name (minus extension) to the stylesheet. Perhaps I'll have to do the transformation directly?

DerekM 2010-08-03 11:56 AM

One option would be to set the outline title (View -> Show Outline Title -> Always) manually to I guess the file name (delete the tag that's there and type it in yourself). That info will then be saved into the xml so you can access that with your transform.

plrz 2010-08-03 12:41 PM

[QUOTE=DerekM;82513]One option would be to set the outline title (View -> Show Outline Title -> Always) manually to I guess the file name (delete the tag that's there and type it in yourself). That info will then be saved into the xml so you can access that with your transform.[/QUOTE]

Ah, of course! I don't even need to show the title - I can set it with AppleScript and go from there. It'll work nicely, thanks.

May I nevertheless encourage you to get the parameters thingy fixed ;-))


All times are GMT -8. The time now is 10:57 AM.

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