Re: making new documents with Style
Re: making new documents with Style
- Subject: Re: making new documents with Style
- From: Shane Stanley <email@hidden>
- Date: Mon, 12 Feb 2001 08:16:16 +1100
On 12/2/01 7:41 AM +1000, cheshirekat, email@hidden, wrote:
>
I've been creating some AppleScripts that will manipulate data in a
>
hidden window with the application, Style.
>
>
I'm running into a stumbling blocks with creating new documents. It seems
>
this should be obvious, and I'm sure someone will point out the obvious
>
that I just haven't been able to grasp.
>
>
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?
Use:
make new document with properties {background color:preferredColor,
visible:false} data {"Halt! Who goes there?"}
--
Shane Stanley, email@hidden