MacOS 10.6 problem

hello boys, pls help me with a problem:

I use in my work some scripts to mount ftp discs

The part of script look so:

tell application "Finder"
		
		set mountedDisks to list disks
		
		if mountedDisks does not contain "FTP$" then
			mount volume "cifs://192.168.45.14/FTP$" as user name "blahblah" with password "blahblah"
		end if
		
	end tell

it works super in MacOS 10.4 and 10.5

but in 10.6 i v got error “network file permission error.”

Any ideas?

Hi,

the Finder is not needed for this part of the script.
This is sufficient


set mountedDisks to list disks
if mountedDisks does not contain "FTP$" then
	mount volume "cifs://192.168.45.14/FTP$" as user name "blahblah" with password "blahblah"
end if

Maybe this solves the problem, because Scripting Addition commands in application tell blocks behave different in Leopard and Snow Leopard