• 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
Set Contents not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Set Contents not working


  • Subject: Set Contents not working
  • From: Ted <email@hidden>
  • Date: Mon, 14 Nov 2005 09:14:58 -0800

Good Morning,

I was hoping someone could help me with a problem I'm having. I found a very old AS that lists fields, scripts, and layouts from a FMPro db. It referenced the old Scriptable Text Editor, so I'm trying to use TextEdit instead, but it stops at the following:


tell application "TextEdit"
make new document
set the contents of front document to "Database report on " & dName & return & return
I'm getting the following error in Script Editor:


"TextEdit got an error: Can't make contents of document 1 into type reference."

Can someone tell me what I'm doing wrong? I've looked through the TextEdit dictionary, but it seems like it should work.

Thanks,
Ted

Superior Shelving Systems
http://www.superiorshelving.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Set Contents not working
      • From: Bill Cheeseman <email@hidden>
    • Re: Set Contents not working
      • From: kai <email@hidden>
  • Prev by Date: Re: 10.4.3 changed what?
  • Next by Date: Re: Printing to PDF File
  • Previous by thread: Re: Word 2 PDF
  • Next by thread: Re: Set Contents not working
  • Index(es):
    • Date
    • Thread