My machine is running Tiger and so is the Xserve tied to Active Directory for its domain. The volume below is mounted on my machine and the folder referenced is one that I am the owner of. I’m able to use the Finder in Applescript to read and write other files, but not a text file that I create using the below.
--set tempb to ("Users:swalton:Desktop:mast.lis") <--- this works
set tempb to ("'/Volumes/Server/Xclient/ARC YE/untitled/'" & "mast.lis") --< dies here
set brad to "Test msg"
set fRef to open for access file tempb with write permission
set eof fRef to 0
write brad to fRef starting at eof
close access fRef
The file is not created when Script Editor notifies me the “Network file permisison error.” Looking at the archives here, the posts refer to the change in mounting volumes vis a vis pre-OS X. My volume is already mounted.
Thankfully, it works when I point the path to my desktop. It appears that the script is appearing to the server as a different user than me?
The file cannot be open because it was never created. Enclosing the statement with a try yields an error. Appreciate your time, thanx, sam