• 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: Applescript-users Digest, Vol 3, Issue 86
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript-users Digest, Vol 3, Issue 86


  • Subject: Re: Applescript-users Digest, Vol 3, Issue 86
  • From: Cliff Pruitt <email@hidden>
  • Date: Sat, 11 Feb 2006 11:40:02 -0500

Well, there are a few little issues with debugging. First, unless you someone (such as myself) has the app "Mac SFTP" we cant open the apps dictionary to check out the problem command. You're obviously having trouble with the line:

GetFiles {"Test.txt"} pathname file "Macintosh HD:Users:johnallen:Documents:HospitalReports:Oncology files Folder:Test.txt" given «class As »:"FF9C00ABF47F:Test.txt"

Mac SFTP apparently has a GetFiles command in it. From this recorded script it looks like its handing a list of files to it that contains only one file "test.txt". But somehow the application is misinterpreting it as a command to tell the Test.txt file to run a GetFiles command that it understands (but it has none obviously). The best place to start is by using File > Open Dictionary in Script Editor and looking for the Get Files command in the Mac SFTP dictionary to see if it sheds any light.

Second, you've got another little hiccup. The part of the line that says; '«class As »' is not really actual AppleScript. Its letting you know that when the script was recorded something was compiled but it can't be re-displayed as AppleScript. '«class As »' doesn't make much sense to me and looks like it might have been something that was not really interpreted correctly when the script was recorded.

In short my guess is that that whole line is just buggy and if you can find the command in the dictionary and build that line on your own without recording then that might be all it takes to get the script running.

Hope this kind of helps. Its hard to give you more info without the dictionary or the app to test it on.

- Cliff



On Feb 10, 2006, at 6:00 PM, applescript-users- email@hidden wrote:

Message: 9
Date: Fri, 10 Feb 2006 14:07:37 -0800
From: John Allen <email@hidden>
Subject: MacSFTP
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

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


  • Follow-Ups:
    • Re: Applescript-users Digest, Vol 3, Issue 86
      • From: John Allen <email@hidden>
  • Prev by Date: Re: Another Shell Script question ftp
  • Next by Date: Re: Applescript-users Digest, Vol 3, Issue 86
  • Previous by thread: MacSFTP
  • Next by thread: Re: Applescript-users Digest, Vol 3, Issue 86
  • Index(es):
    • Date
    • Thread