AppleScript: Getting text from a pop-up list cell
Timothy Jarrett
toj at mac.com
Thu May 9 10:11:02 PDT 2002
I have a question about scripting OmniOutliner. What is the correct
syntax for getting the text from an outline cell containing a pop-up
list? Using
set theCells to cells of theRow
repeat with theCurrentCell in theCells
set theCellText to (get text of theCurrentCell as international text)
end repeat
fails with an NSReceiver error (3) when the current cell is defined as a
pop-up list.
Also, what is the correct syntax to use to get data from a cell if it
contains international characters (e.g. u-umlaut)? Using (get text as
international text) appears to truncate the returned string right before
the first accented character.
Thanks
Tim
On Monday, May 6, 2002, at 03:02 PM, omnioutliner-users-
request at omnigroup.com wrote:
> Send OmniOutliner-Users mailing list submissions to
> omnioutliner-users at omnigroup.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
> or, via email, send a message with subject or body 'help' to
> omnioutliner-users-request at omnigroup.com
>
> You can reach the person managing the list at
> omnioutliner-users-admin at omnigroup.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of OmniOutliner-Users digest..."
>
>
> Today's Topics:
>
> 1. Re: document format (Adrian Smith)
> 2. Re: document format (James Peregrino)
>
> --__--__--
>
> Message: 1
> Date: Mon, 6 May 2002 11:47:31 +1000
> To: omnioutliner-users at omnigroup.com
> From: Adrian Smith <adrianslists at optushome.com.au>
> Subject: Re: document format
>
>> Is the data structure of the document written up anywhere? It
>> appears to be XML. The DOCTYPE declaration points to
>> /System/Library/DTDs/PropertyList.dtd.
>>
>> I'm trying to write some Perl that will allow me to convert OO into
>> another format. Should I be looking at Apple's developer docs to
>> learn more about /System/Library/DTDs/PropertyList.dtd ?
>>
>>
>> (I'm new to the list, a former PC-Outline/Acta/InControl user.
>> Nowadays I actually do most of my outlining on my Palm using
>> BrainForest and Progect).
>>
>> --
>> -- James Peregrino -
>> http://lab.dce.harvard.edu/~peregrin/business-card.html
>> _______________________________________________
>
>
> Reading between the lines here... but are you working on a something
> for converting OO files to Brainforest files by any chance? I would
> love to be able to do that...
>
> Adrian
>
> --__--__--
>
> Message: 2
> Date: Mon, 6 May 2002 09:23:22 -0400
> To: OmniOutliner-Users at omnigroup.com
> From: James Peregrino <james_peregrino at harvard.edu>
> Subject: Re: document format
>
> No...because that's an undocumented format to a commercial product.
> I don't have the skills to reverse engineer that. But since Progect
> is open source, there's more hope...plus someone else has written
> some Perl modules for Progect.
>
> I'm finding some docs on PropertyList.dtd at Apple's developer site.
>
>>> Is the data structure of the document written up anywhere? It
>>> appears to be XML. The DOCTYPE declaration points to
>>> /System/Library/DTDs/PropertyList.dtd.
>>>
>>> I'm trying to write some Perl that will allow me to convert OO into
>>> another format. Should I be looking at Apple's developer docs to
>>> learn more about /System/Library/DTDs/PropertyList.dtd ?
>>>
>>>
>>> (I'm new to the list, a former PC-Outline/Acta/InControl user.
>>> Nowadays I actually do most of my outlining on my Palm using
>>> BrainForest and Progect).
>>>
>>> --
>>> -- James Peregrino -
>> http://lab.dce.harvard.edu/~peregrin/business-card.html
>>> _______________________________________________
>>
>>
>> Reading between the lines here... but are you working on a something
>> for converting OO files to Brainforest files by any chance? I would
>> love to be able to do that...
>>
>> Adrian
>> _______________________________________________
>> OmniOutliner-Users mailing list
>> OmniOutliner-Users at omnigroup.com
>> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
>
>
> --
> -- James Peregrino - http://lab.dce.harvard.edu/~peregrin/business-
> card.html
>
>
> --__--__--
>
> _______________________________________________
> OmniOutliner-Users mailing list
> OmniOutliner-Users at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/omnioutliner-users
>
>
> End of OmniOutliner-Users Digest
>
>
--
Tim Jarrett
toj8j at alumni.virginia.edu
http://www.mit.edu/~tjarrett/
More information about the OmniOutliner-Users
mailing list