Thank you. I created that and some other Applescripts several years ago by hit and miss with some gentle help from folks like you. I guess it is time to learn more about Transmit's Applescript dictionary. Thanks again for your comments.
Charlie On Fri, Feb 15, 2019 at 6:10 PM Bob Stern < [email protected]> wrote: > > On Feb 15, 2019, at 2:46 PM, Charles Hartley <[email protected]> wrote: > > > > Using Apple's Script Editor, I loaded the original script, and changed > the application name from "Interarchy" to "Transmit" as shown below. > > > > tell application "Transmit" > > activate > > mirrorupload alias "Macintosh HD:path/to/folder" host "ftp.xxx.org" > path "/public_html/xxx/" user "yyy" protocol FTPProtocol without dryrun > > quit > > end tell > > > > Received the syntax error message: > > Expected end of line, etc. but found class name > > > > with the word alias highlighted. > > > > When I replaced "Transmit" with "Interarchy" again, it compiled fine. > > > The compilation error happened because “mirrorupload” is a command for > Interarchy but not for Transmit. You need to find the corresponding > command(s) in Transmit’s AppleScript dictionary and rewrite the AppleScript > according to Transmit’s syntax. Altho I own Transmit, I haven’t tried > scripting it, but it appears from its AppleScript dictionary that you first > have to connect to the FTP server using “connect” and then upload a file > using “upload”. > > Do you have AppleScript experience, or did you copy this script from > somewhere? Do you want suggestions for AppleScript tutorials? > > In any event, since this is an AppleScript problem rather than a FileMaker > problem, you might want to post further questions on: > > https://lists.apple.com/mailman/listinfo/applescript-users > > Bob Stern
