Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 06-28-2012, 01:06 PM   #1
lenny_eiger
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
lenny_eiger is offline   Reply With Quote
Old 06-29-2012, 05:55 AM   #2
bramley
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.
bramley is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.