• 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
making new documents with Style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

making new documents with Style


  • Subject: making new documents with Style
  • From: cheshirekat <email@hidden>
  • Date: Sun, 11 Feb 2001 13:41:26 -0700

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?

kat


  • Follow-Ups:
    • Re: making new documents with Style
      • From: Emmanuel <email@hidden>
    • Re: making new documents with Style
      • From: Shane Stanley <email@hidden>
    • Re: making new documents with Style
      • From: Bill Cheeseman <email@hidden>
    • Re: making new documents with Style
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Calling an application
  • Next by Date: Re: change the desktop picture(was two questions)
  • Previous by thread: Re: Two Questions
  • Next by thread: Re: making new documents with Style
  • Index(es):
    • Date
    • Thread