MacSFTP
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