Re: making new documents with Style
Re: making new documents with Style
- Subject: Re: making new documents with Style
- From: cheshirekat <email@hidden>
- Date: Sun, 11 Feb 2001 17:05:40 -0700
On 02-11-2001 1540, Shane Stanley may have typed or relayed in full or in
part ...
>
On 12/2/01 9:17 AM +1000, Bill Cheeseman, email@hidden, wrote:
>
>
> on 2/11/01 4:16 PM, Shane Stanley at email@hidden wrote:
>
>
>
>> Use:
>
>>
>
>> make new document with properties {background color:preferredColor,
>
>> visible:false} data {"Halt! Who goes there?"}
>
>
>
> No, that does not compile.
>
>
Whoops! Somehow I edited out the word "with" before "data". Let me just
>
paste my working script:
>
>
tell application "Style"
>
set preferredColor to white
>
make new document with properties {background color:preferredColor,
>
visible:true} with data {"Halt! Who goes there?"}
>
end tell
>
>
--
>
Shane Stanley
Thank You!!!!!!! I really really realllllllly appreciate the help!!
I wondered why you had your data in brackets, thought maybe it was
required in Style. After testing, it isn't required, but wondered if it
might be useful.
If I had stopped banging my head against the wall this morning, I
wouldn't have wasted so much time. But something that seemed should have
been quite simple I hated to give up on until I was way too frutrated
after trying so many variations.
I guess I'll go put some ice on my head and go back to bed now.
kat