• 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: How to create a document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a document?


  • Subject: Re: How to create a document?
  • From: Mitchell L Model <email@hidden>
  • Date: Sun, 05 Jun 2016 10:25:51 -0400

I am going to answer people’s replies (for which I thank the) by clarifying my original requirements. I neglected to say that I wanted the script to set the document’s contents. That’s where the weird behavior I am seeing occurs.

	tell application "TextEdit"
		activate
		set doc to make new document with properties {name:"Test5"}
		set the text of doc to " "
	end tell

If you switch to TextEdit you will probably see an unusual bubble to the right and below the name of the document in the title bar saying the document couldn’t be backed up, and if you try to save it the system says you don’t have permission to do that. Take a look at the path to the file for a fascinating surprise.  If this strange behavior doesn’t happen on your system then there is something really odd about my setup.





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to create a document?
      • From: Phil Stokes <email@hidden>
  • Prev by Date: Re: strange behavior setting window index to 1 in Safari
  • Next by Date: Re: How to create a document?
  • Previous by thread: Re: How to create a document?
  • Next by thread: Re: How to create a document?
  • Index(es):
    • Date
    • Thread