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)
-   -   Extract the Legal para number using Applescript (http://forums.omnigroup.com/showthread.php?t=5954)

Simon Knight 2007-11-30 04:53 AM

Extract the Legal para number using Applescript
 
I am attempting to write my own CSV exporter script so that I am able to control how the document looks. I wish to include the legal numbering that is present in my Outliner document and have the legal numbers exported into the first column. Is there an Applescript command that yields the numbers as a result?

I have discovered the "level" property and am planning to maintain my own para number string within my script code. Is this the only way of doing it?

Simon

Simon Knight 2007-12-02 04:29 AM

I have written a couple of scripts. The one here will create a Tab Seperated File that can be imported into Excel. It adds a legal style number to each item based on its level. It is a simple task to edit the code so that it outputs CSV but I have found that TSV is more useful. The code includes comments and can be adapted to extract data from other columns. At present these columns have to be accessed by name. I hope to create a version that will extract from all columns by column number at some point. I am also working on my own export to RTF.

If all is well there should be a zip file with two scripts. The Export to RTF will only work with a OOp document that has extra columns, the other one should create a TSV file from any OOp document.

Simon


All times are GMT -8. The time now is 03:13 AM.

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