QUark scripting on OSX

We have a script that asks for a file to be imported from a server into a picture box, running the script in os9 is fine, but in OS X it keeps asking for the password to server.
Any Help.
Steve