POSIX file permissions
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