Re: Permissions problems in Sierra
Re: Permissions problems in Sierra
- Subject: Re: Permissions problems in Sierra
- From: Shane Stanley <email@hidden>
- Date: Thu, 22 Dec 2016 09:27:00 +1100
It appears that TextEdit won't let you write to a file that doesn't already exist. A workaround is to create the file first:
set pathToFile to (path to desktop as text) & "test" & ".rtf" -- create file set theFile to pathToFile as «class furl» set fileRef to open for access theFile with write permission close access fileRef tell application "TextEdit" tell document 1 save in theFile end tell end tell
|
_______________________________________________
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