Re: Applescript to upload file with Transmit
Re: Applescript to upload file with Transmit
- Subject: Re: Applescript to upload file with Transmit
- From: René Groot via AppleScript-Users <email@hidden>
- Date: Wed, 26 Feb 2020 23:07:56 +0000
I have obtained very good results using shell script with sftp in a spawn
command. This is basically a series of commands that react to the responses an
sftp server gives. If you want to go that way I can send or post my example.
Cheers, René Groot
> Op 26 feb. 2020 om 20:00 heeft email@hidden het
> volgende geschreven:
>
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Applescript to upload file with Transmit (Bert Groeneveld)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Feb 2020 16:24:27 +0100
> From: Bert Groeneveld <email@hidden>
> To: AS users <email@hidden>
> Subject: Applescript to upload file with Transmit
> Message-ID:
> <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"
> 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.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/applescript-users/attachments/20200226/5893af44/attachment.htm>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
>
> ------------------------------
>
> End of AppleScript-Users Digest, Vol 17, Issue 19
> *************************************************
_______________________________________________
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