• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: making new documents with Style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: making new documents with Style
      • From: Bill Cheeseman <email@hidden>
References: 
 >making new documents with Style (From: cheshirekat <email@hidden>)

  • Prev by Date: Re: making new documents with Style
  • Next by Date: Re: removing an item from a list [Was: Two Questions]
  • Previous by thread: Re: making new documents with Style
  • Next by thread: Re: making new documents with Style
  • Index(es):
    • Date
    • Thread