Re: Applescript to upload file with Transmit (Bert Groeneveld)
Re: Applescript to upload file with Transmit (Bert Groeneveld)
- Subject: Re: Applescript to upload file with Transmit (Bert Groeneveld)
- From: David Crowe via AppleScript-Users <email@hidden>
- Date: Wed, 26 Feb 2020 13:07:37 -0700
- Ironport-sdr: y25cZwpZ14zDpHrxYTOvY2kpNblq0IjHChHV6IBwsao+tAb1mL5bCBqqYHjnuXkpYxyef157KZ dGrTDty3HvJRDS+ZErcXuWUd3mfXyozGxk64SAWRm78lPu90Nup/B4Q2KDbAGVDDFRKxlINKNZ zi7uTcN7l/STX20DZ+tcXIsp4Gc9sc2ANOyxcYN+JUImqbLDDFiCJGbk+j7f5lF7sHfRxzp7Fb +D7OKm1OC20M4JuyA/uBdxmB9d3Kfyrk85+Cn8fYSauNP/mwz2JlpdkgELxNWAfTFbu3jKYaNi SCk=
I have numerous AppleScripts that still work with Fetch. When are they going
to break on me? If I upgrade the OS?
- David Crowe
> Message: 1
> Date: Wed, 26 Feb 2020 16:24:27 +0100
> From: Bert Groeneveld <email@hidden
> <mailto:email@hidden>>
> To: AS users <email@hidden
> <mailto:email@hidden>>
> Subject: Applescript to upload file with Transmit
> Message-ID:
> <email@hidden
> <email@hidden">mailto:email@hidden>>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> <http://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