Applescript to upload file with Transmit
Applescript to upload file with Transmit
- Subject: Applescript to upload file with Transmit
- From: Bert Groeneveld via AppleScript-Users <email@hidden>
- Date: Wed, 26 Feb 2020 16:24:27 +0100
Hi, since Fetch FTP is no longer scriptable I am looking for an aternative and
found Transmit. Unfortunately all example code I can find is from older
Transmit versions and doesn’t work. Can anyone post example code how to upload
a file with Transmit? Below is what I could figure out so far. But it doesn’t
work yet.
set theServerAddress to "ftp.reclamebureau-ivc.nl"
set theUserName to "tester"
set thePassword to "0eeDMYK6"
set theDirectory to "IN"
tell application "Transmit" -- version 5.6.3
close every document
set myConn to make document
tell myConn
set myTab to tab 1
tell myTab
set myConn to connect to address theServerAddress as
user theUserName with password thePassword with protocol FTP with initial path
theDirectory
set file_browser to file browser 1
tell file_browser
upload item at path
"Macintosh_HD:Users:bertus:Desktop:Screenshot 2020-01-08 at 16.48.26.png" --
error: Transmit got an error: You must use a remote File Viewer for this action.
end tell
end tell
end tell
end tell
Thanks in advance for any help.
Bert.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden