export to plain text fixed width

James Moore jam at omnigroup.com
Mon Dec 6 19:03:57 PST 2004


The important bit is at the end.

tell application "OmniOutliner Professional"
	tell (make new document)
		set sorting postponed to true
		-- columns
		tell column 1
			set name to ""
			set width to 18
		end tell -- column
		tell column 2
			set name to "Topic"
			set type to rich text
			set width to 406
		end tell -- column
		tell (make new column)
			set name to "Untitled #1"
			set type to rich text
			set width to 100
		end tell -- column
		-- rows
		tell (make new row) -- row #1
			set text of cell 1 to ""
			set text of cell 2 to "a"
			set text of cell 3 to "b"
			set expanded to true
			tell (make new row) -- row #2
				set text of cell 1 to ""
				set text of cell 2 to "c"
				set text of cell 3 to "d"
			end tell -- row
		end tell -- row
		set sorting postponed to false
		
		save in "OSX10.3:private:tmp:blah.txt" as "OONeatoStringPboardType"
		close without saving
	end tell -- document
end tell -- application


-James

Technical Support Engineer
The Omni Group


On Dec 5, 2004, at 4:00 PM, John DeSoi wrote:

> I still can't get this to work in OO3. Any clues?
>
> Thanks
>
>
> John DeSoi, Ph.D.
>
>
> =====
>
>
> 	From: 	  support at omnigroup.com
> 	Subject: 	Re: OmniOutliner 2.2.6 (v69.6) Feedback (license 
> EQGTKVQHHALMDLMKWPSLIFOBQYKHLGITGTE)
> 	Date: 	September 23, 2004 7:21:42 PM EDT
> 	To: 	  desoi at icx.net
>
> John it looks like you should be able to do what you describe but its 
> actually broken in Outliner. We've fixed this bug for Outliner 3. 
> Sorry for the inconvenience.
>
> -James
>
> Technical Support Engineer
> The Omni Group
>
>
> On Sep 22, 2004, at 8:19 PM, John DeSoi wrote:
>
>> Hi James,
>>
>> On Sep 20, 2004, at 4:51 PM, James M wrote:
>>
>>> John, I suggest you post your applescript questions on the Outliner 
>>> users list. There are some folks on there that are real applescript 
>>> pros (unlike me) and they typically respond quickly to questions. 
>>> The link to the mailing list is
>>>
>>
>> Unfortunately, no responses. I just need the magic word(s) to replace 
>> "text" below to get the right format. It is not in the docs. Not in 
>> the AppleScript dictionary. I have tried guessing. Surely somebody 
>> there knows :).
>>
>> Thanks!
>>
>> John DeSoi, Ph.D.
>>
>>
>> ====
>> tell application "OmniOutliner"
>> 	set doc to front document
>> 	set thePath to path of doc
>> 	save doc as "text" in (POSIX path of thePath) & ".txt"
>> end tell
>>
>>
>>
>> On Sep 16, 2004, at 12:38 PM, John DeSoi wrote:
>>
>>> I've tried and tried and cannot figure out how to export my document 
>>> in a script with the "Plain Text (Fixed Width)" option available in 
>>> the export dialog. I can only get the tab indented version which 
>>> adds additional characters.
>>>
>>> Thanks,
>>>
>>> John DeSoi, Ph.D.
>>>
>>>
>>
>
> _______________________________________________
> OmniOutliner-Users mailing list
> OmniOutliner-Users at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
>




More information about the OmniOutliner-Users mailing list