Re: making new documents with Style
Re: making new documents with Style
- Subject: Re: making new documents with Style
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 11 Feb 2001 12:51:39 -0800
On 2/11/01 12:41 PM, "cheshirekat" <email@hidden> wrote:
>
I can create new documents by using either of the following syntax:
>
>
make new document with data "Halt! Who goes there?"
>
make new document with properties {background color:preferredColor,
>
visible:false}
>
>
What I can't figure out is how to combine the above two examples, so that
>
I have something like this:
>
>
make new document with properties {background color:preferredColor,
>
visible:false, data: "Halt! Who goes there?"}
>
>
I've tried to replace "data" with contents, text and selection. These
>
will always return an error of "... no such property". Is it possible to
>
do this in one command?
I don't know the app at all, but I do know one where a particular property
does not seem to have implemented as part of "properties", so you always
have to add it later. (In Entourage, the 'category' property of tasks cannot
be made as part of
set newTask to make new task with properties {whatever}
You have to set newTask's category immediately following. Obviously an
oversight, but not too terrible.) Maybe it's a similar thing in Style.
--
Paul Berkowitz