• 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
CURL+FTP scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CURL+FTP scripting


  • Subject: CURL+FTP scripting
  • From: Satyam Satyanarayana <email@hidden>
  • Date: Thu, 7 May 2009 16:47:06 +0530

Hi,

I am writing a script that will download a folder from FTP.
For that, I am initially looking for what are all files that are available in a folder.
Then recurring through the list of files, I will download it.
My script is as follows: (It doesn't include the download file script. I have yet to write)


set fileList to {}
set fileList to do shell script "curl -l ftp:// username:password@ipaddress/foldername"


repeat with fName in fileList
display dialog fName --Expecting file name, but displaying individual characters
end repeat


In the above script, I am trying to display a filename, but it is displaying individual characters only.

Any body knows about it?

--Satyam.


On 06-May-09, at 2:55 AM, David Marshall wrote:

On Tue, 5 May 2009 08:39:23 -0500, Jim Brandt wrote:

This code:

    tell application "System Events"
        tell process "Safari"
            set nm to name of front window
            click checkbox "Hide Extension" of sheet 1 of window nm
        end tell
    end tell

toggles the checkbox.

I want to do this ONLY if the checkbox is not already checked,
otherwise I'm
unchecking it. So, is there a way to test it first?

instead of

click checkbox "Hide Extension" of sheet 1 of window nm

you could say (all in one line!)

if value of checkbox "Hide Extension" of sheet 1 of window nm is 0 then click checkbox "Hide Extension" of sheet 1 of window nm

- - - - -

Dave


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40novell.com
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: CURL+FTP scripting
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Testing a checkbox status in Safari (From: David Marshall <email@hidden>)

  • Prev by Date: Re: "C" language continue statement in applescript
  • Next by Date: Re: CURL+FTP scripting
  • Previous by thread: Scripting MSWord
  • Next by thread: Re: CURL+FTP scripting
  • Index(es):
    • Date
    • Thread