• 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
MacSFTP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MacSFTP


  • Subject: MacSFTP
  • From: John Allen <email@hidden>
  • Date: Fri, 10 Feb 2006 14:07:37 -0800

I'm a bit of an occasional Applescript user having mostly done stuff with BBEdit where you can 'record' most scripts at least that I have used. I am using MacSFTP to download some files on a regular basis and note that it is applescriptable and even recordable. So I recorded what I do and got this AppleScript:
tell application "MacSFTP Carbon"
activate
SetTellTarget
make new transfer window given url:"ftp://email@hidden/ HOME/"
SetTellTarget
make new progress window given url:"email@hidden/HOME/"
SetTellTarget to progress window "stanford.edu"
Change directory "/HOME"
GetFiles {"Test.txt"} pathname file "Macintosh HD:Users:johnallen:Documents:HospitalReports:Oncology files Folder:Test.txt" given «class As »:"FF9C00ABF47F:Test.txt"
SetTellTarget
close progress window "stanford.edu"
end tell


When I run the script above though I get this error message:

AppleScript Error
MacSFTP Carbon got an error: {"Test.txt"} doesn't understand the GetFiles message.


Does anyone have any ideas as to how I might get this to work? Much appreciated.

John

Division of Oncology
Department of Medicine
Stanford University
Stanford, CA 94305 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Dealing with Sliders...
  • Next by Date: Re: Dealing with Sliders...
  • Previous by thread: Re: Dealing with Sliders...
  • Next by thread: Re: Applescript-users Digest, Vol 3, Issue 86
  • Index(es):
    • Date
    • Thread