Re: How to create a document?
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