Read FTP/SFTP file using UI Vision macro

Is there anyway to read file from ftp/sftp server with credentials via the macros?

You can use the XRUN command to call a command line FTP tool.

Oh, okay … I know about xrun, which I tried while trying to run gnome-calculator, thank you for the reply. Actually what I was looking for is a thorough process of connecting and downloading/uploading the file from or to the server if the solution already exists rather then trying to implement macro myself.