FTP via AppleScript failing

This is probably not a Panorama problem, but that is where the problem is occurring, so giving it a shot.

I have a procedure that posts nightly information to a remote server via FTP. I use AppleScript. Very simple part of the procedure for very many years. It was working fine as of 10/31/25. Didn’t have any new info to post until 11/5/25, at which point the whole procedure hung up at the FTP. The only way out is to force quit Panorama.

I am able to load the info manually. I have not touched the procedure between uses. Made multiple attempts to post via the procedure.

I’m feeling this is an AppleScript conflict with the remote server, but so far they haven’t found any errors on their end.

I’ve tried rebooting and a different computer.

Any hints as to what may have changed that would cause this error?

You’re right, it’s probably not a Panorama problem. But no matter what kind of problem it is, you’re super unlikely to get any help since you have posted absolutely nothing about the code you are using. Most likely the problem is in the AppleScript code you are using, but we can only guess since you didn’t show us the code.

The only way out is to force quit Panorama.

If the AppleScript hung up, you just have to wait longer. Panorama will time out an AppleScript if it takes longer than a minute.

I wonder if you are really using using FTP, which is an obsolete, insecure protocol. I’m hoping you are really using SFTP, which is much more modern.

No, not using SFTP. Using the address they gave us years ago, which has worked up until now. Maybe they converted to SFTP recently and didn’t let us know. It’s a start.

The code in question:

local lvRepFTP

lvRepFTP=“[Path to text File to send]”

    applescript |||

            tell application "Finder"

            set SwiftPost to quoted form of $«lvRepFTP»$

            set SwiftScript to "curl -T " & SwiftPost & " ftp://USERNAME:PASSWORD@ftp.TARGETSITE.com/IN/"

                  do shell script SwiftScript

            end tell

                |||

My educated guess is that something changed on the TARGETSITE server. Maybe they even dropped support for FTP, as I mentioned before, many servers no longer support this insecure protocol.

I will also note that running a shell script via AppleScript is definitely doing it the hard way in 2025. You should be able to replace it with code like this:

let lvRepFTP=“[Path to text File to send]”
let result = posixscript("curl -T "+posixpath(lvRepFTP)+" ftp://USERNAME:PASSWORD@ftp.TARGETSITE.com/IN/"

However, if your code doesn’t work due to a server issue, this code isn’t going to work either (they do the same thing).