|
|
#1 |
|
Prospect
Join Date: Jun 2012
Posts: 2
|
Trouble with Transmit
I copied the Transmit sample scripts, this is really basic. However, despite tehe fact that the script runs perfectly every time, the try part is throwing me an error and I don't know why.... (the handleErrors handler sends me an email.)
Here's the handler: on sendbyTransmit() with timeout of 7200 seconds set theFileToSend to theNewFtpDest as alias tell application "Transmit" activate try set myFav to item 1 of (every favorite whose name is transmitFavoriteName) tell current tab of (make new document at end) connect to myFav tell local browser change location to path backupFolder end tell tell remote browser upload item at path theFileToSend end tell close remote browser end tell on error errMsg number errNum set transmitFailure to true set errorDescrip to "Transmit failed" tell me to handleErrors(errorDescrip) end try quit end tell end timeout end sendbyTransmit Thanks for any assistance, I've been looking at it too long... Lenny |
|
|
|
|
|
#2 |
|
MVP
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 2,461
|
I do not use Transmit so cannot provide any specific input.
However I note that you might get a better idea of what's wrong by finding the value of errMsg and errNum. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|