• 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: Bill Cheeseman <email@hidden>
  • Date: Sun, 11 Feb 2001 16:03:54 -0500

on 2/11/01 3:41 PM, cheshirekat at 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?"}

Text works for me:

tell application "Style"
make new document with properties {visible:false, text:"Hi, there!"}
set visible of result to true
end tell

-
Bill Cheeseman, Quechee, Vermont <mailto:email@hidden>

The AppleScript Sourcebook
<http://www.AppleScriptSourcebook.com/>
Vermont Recipes-A Cocoa Cookbook
<http://www.stepwise.com/Articles/VermontRecipes/>


References: 
 >making new documents with Style (From: cheshirekat <email@hidden>)

  • Prev by Date: Re: Two Questions
  • Next by Date: Re: making new documents with Style
  • Previous by thread: Re: making new documents with Style
  • Next by thread: Re: making new documents with Style
  • Index(es):
    • Date
    • Thread