• 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
POSIX file permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX file permissions


  • Subject: POSIX file permissions
  • From: Hudson Barton <email@hidden>
  • Date: Wed, 09 Feb 2011 11:45:14 -0500

I have the following script:

property fin : "/private/tmp/in.txt"
property fout : "/private/tmp/out.txt"
property finmac : POSIX file fin
property foutmac : POSIX file out

dostuff("blah blah blah", fin, fout, finmac, foutmac)

on dostuff(sometext, fin, fout, finmac, foutmac)
	open for access finmac with write permission
	set eof finmac to 0
	write (sometext as string) to finmac
	close access finmac
end dostuff

The script runs fine on one user, but when I move it to any other user, it produces the error "Network file permission error." number -5000 from file "Macintosh HD:private:tmp:in.txt"  at open for access finmac.

What's going on?  I don't understand permissions on POSIX files, or more especially how to fix it.

H.
 _______________________________________________
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: POSIX file permissions
      • From: Axel Luttgens <email@hidden>
    • Re: POSIX file permissions
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: SpamCop script which worked in Tiger suddenly dropping some attachments in Leopard
  • Next by Date: Re: Error -1700 Test
  • Previous by thread: Re: SpamCop script which worked in Tiger suddenly dropping some attachments in Leopard
  • Next by thread: Re: POSIX file permissions
  • Index(es):
    • Date
    • Thread