• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Transmit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Transmit


  • Subject: Re: Scripting Transmit
  • From: Courtney Braafhart <email@hidden>
  • Date: Mon, 2 Aug 2004 14:13:22 -0500

I figured out how to check for the file, but now the issue is if the file is not there Transmit puts out an error that needs someone to press okay to get rid of the message... is there a way to tell Transmit not to put out errors or a way to script pressing okay?
Thanks
Here is the current script:
tell applicaiton "Transmit"
make new document at before front document
tell document 1
connect to "0.0.0.0" as user "user" with password "password"
with connection type FTP
set your stuff to "target path"
if (download item "file to download") then
quit application "Transmit"
else
quit application "Transmit"
end if
end tell
end tell
Thanks in advance!!!
On Aug 2, 2004, at 1:17 PM, Courtney Braafhart wrote:

Good Day-
I am trying to make a script that will download a file using Transmit. I can get it to work except for one problem. ....

I first need to check to see if the file exists.. if it does then I want to go ahead and download it, if it doesn't exist then I want to quit.

Here is what I have so far

tell application "Transmit"
make new document at before front document
tell document 1
connect to "0.0.0.0" as user "username" with password "password" with connection type FTP
set your stuff to "target path"
download item "file to download"
quit application "Transmit"
end tell
end tell

If anyone could help me with the proper syntax for checking for the file that would be great!
Thanks
Courtney
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Scripting Transmit
      • From: Jason Bourque <email@hidden>
References: 
 >Scripting Transmit (From: Courtney Braafhart <email@hidden>)

  • Prev by Date: Re: Work aroun for "say" in Portuguese language.
  • Next by Date: Re: button titles
  • Previous by thread: Scripting Transmit
  • Next by thread: Re: Scripting Transmit
  • Index(es):
    • Date
    • Thread