Why won't this save?

I get this error at the bottom of this script

save current document in {alias “Hal 9000:Users:matthew:Pictures:”, “FI65WW00460OR6OS.psd”} as PNG with options {class:PNG save options, interlaced:false} without copying
→ error number -1700

I’m assuming that its the PSD causing the problem and needs to be dropper?

set tempFolder to (path to pictures folder)
tell application "Adobe Photoshop CS5.1"
	-- I remove the command activate, Photoshop stay in background
	set ruler units of settings to pixel units
		set origName to name of current document 
		set myPNGOptions to {class:PNG save options, interlaced:false}
		tell current document
			--If the quick mask mode has been left on then delete the channel Quick Mask
			if (quick mask mode) then delete channel ¬
				"Quick Mask"
			--If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
			if (exists layer "Original Layer") then ¬
				tell layer "Original Layer" to set name to "Original Image"
			(delete layer "Original Image")
			set current layer to layer "BACKGROUND" of layer set "Dodge and Burn"
			delete current layer
			merge visible layers
			trim basing trim on top left pixel with top trim, right trim, left trim and bottom trim
			resize image height 512
			save in (tempFolder & name) as PNG with options myPNGOptions without copying
			close saving no
		end tell
	end try
end tell

the result of path to . folder is always an alias.
To concatenate path components you need a string path

set tempFolder to (path to pictures folder as text)

excellent, I had over looked that.

Many Thanks