• 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: open for access file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: open for access file
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: open for access file (From: Mike Lally <email@hidden>)
 >Re: open for access file (From: Barry Wainwright <email@hidden>)

  • Prev by Date: Re: open for access file
  • Next by Date: Re: open for access file
  • Previous by thread: Re: open for access file
  • Next by thread: Re: open for access file
  • Index(es):
    • Date
    • Thread