Can someone please tell me the correct syntax to get the owner name of a file?
Thanks
Hi,
It’s in the Finder dictionary under item:
set file_ref to (choose file)
tell application “Finder”
set file_owner to (owner of file_ref)
end tell
gl,
Thanks for that - I saw it in the dictionary but wasn’t sure of the syntax
OK, that code worked, however, I’ve now discovered that when you copy a fiile into the drop folder it changes the file owner name from the person who created the file to the current user account of the computer - is there any way to prevent the computer doing this?
Hi,
You’re welcome.
gl,