Copy or grab a file from an FTP server

Maybe I am not searching correctly, but I can’t seem to find out how to save or grab a file that exists on an FTP mac server. I know the IP address and the login and password to the computer.

For example, I am trying to save an .xml file that I assign to a variable to an mac server: id is: admin2 password is admin2 and the path is WorkspacePlace/InDesign_Workspace_Backup

Conversely, I would like to have another script that would enable a user to look into that same folder and select a file to copy to their local machine.

Can anybody lead me in the right direction as to where to look. even if requires a shell command?

I found this link which helped me copy files. and it worked well. Now I just need to search more for grabbing files