• 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: TextEdit Save Problem (Thomas Maffucci)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEdit Save Problem (Thomas Maffucci)


  • Subject: Re: TextEdit Save Problem (Thomas Maffucci)
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 24 Jan 2013 01:48:24 -0600

On Jan 23, 2013, at 16:01, Thomas Maffucci <email@hidden> wrote:
Thanks Brian for your prompt rely but I am sorry to say but right out of the box your suggestion failed.
I am still unable to save the text due to permission problems.
______________________________________________________________________

Hey Thomas,

There was a long thread about this sort of problem late last year:

http://lists.apple.com/archives/applescript-users/2012/Oct/msg00109.html

tell application "TextEdit"
set newFile to (((path to desktop) as text) & "New_Doc.rtf")
set _doc to make new document with properties {path:newFile}
set text of _doc to "This is sample text"
save _doc
end tell

--> ERROR: The document “~:Desktop:New_Doc.rtf” could not be saved. You don’t have permission.

By contrast this one works:

tell application "TextEdit"
set newFile to (((path to desktop) as text) & "New_Doc.rtf")
set newFile to POSIX path of newFile
set _doc to make new document with properties {path:newFile}
set text of _doc to "This is sample text"
save _doc
end tell

I don't know if Apple will ever fix the list archive search engine, but you can use Google:

site:http://lists.apple.com/archives/applescript-users textedit save problem

--
Best Regards,
Chris


 _______________________________________________
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: TextEdit Save Problem (Thomas Maffucci)
      • From: "koenig.yvan" <email@hidden>
References: 
 >TextEdit Save Problem (Thomas Maffucci) (From: Thomas Maffucci <email@hidden>)

  • Prev by Date: Re: TextEdit Save Problem (Thomas Maffucci)
  • Next by Date: Re: TextEdit Save Problem (Thomas Maffucci)
  • Previous by thread: Re: TextEdit Save Problem (Thomas Maffucci)
  • Next by thread: Re: TextEdit Save Problem (Thomas Maffucci)
  • Index(es):
    • Date
    • Thread