I've figured it out. I needed to edit the file ~/Library/TeXShop/Engines/sage.engine. The line /Applications/Sage.app/Contents/Resources/sage/sage "$sagename" needed to be changed to /Applications/Sage-6.5.app/Contents/Resources/sage/sage "$sagename"