File sharing with Mac OS 9

From Provider Wiki

Jump to: navigation, search

With the Mac OS 10.4.9 update Apple improved the speed of the Apple File Share Protocol (AFP) a little, but did so in a way that often breaks compatibility with Mac OS 9. There is a tweak that can be used to solve this issue. You simply have to run the following command:

sudo defaults write /Library/Preferences/com.apple.AppleFileServer TCPQuantum -int 327680

Apple has this documented in a technical article on their web site. But for people who want it to be even easier, here is a pre-packaged AppleScript that does the same thing.

And here is the script for that AppleScript:

set foundIt to true
try
	set thisone to do shell script "ps -aucxwww | grep AppleFileServer | grep -v grep"
on error
	set foundIt to false
end try

if foundIt then
	display dialog "Please turn off FileSharing before running this script!"
else
	do shell script "sudo defaults write /Library/Preferences/com.apple.AppleFileServer TCPQuantum -int 327680" with administrator privileges
	display dialog "You can turn FileSharing back on now, and it should work better with Mac OS 9"
end if
Personal tools