Re: open for access file
Re: open for access file
- Subject: Re: open for access file
- From: Christopher Nebel <email@hidden>
- Date: Thu, 16 Jul 2009 11:17:30 -0700
On Jul 16, 2009, at 9:20 AM, Barry Wainwright wrote:
On 16 Jul 2009, at 16:31, Mike Lally wrote:
set StoryFile to (path to users folder as string) & "ThreePigs.txt"
that is the problem. This will return the path to a theoretical file
in the top level 'Users' folder - the one that contains all the
different user profiles. A normal user will not have full read/write
access to this folder.
I guess the script should read:
set StoryFile to (path to desktop folder as string) &
"ThreePigs.txt"
or
set StoryFile to (path to documents folder as string) &
"ThreePigs.txt"
...or, as the author more likely intended, "path to home folder".
Barry has it right; the "Users" folder is normally writable only by
root, so attempting to create a file there will fail. Using any of
the other suggestions should work.
Despite the text of the error message, "Network file permission
error", it actually applies to any file permission error. Back when
it was created, only network AFP volumes had permissions at all, hence
the name, but these days local disks do too. There is nothing wrong
with your machine setup.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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