How can I create a directory on my server using FTP in applescript?

Hi
I have created a script which successfully uploads files to my server using FTP and a curl command.
The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
Would this be possible?
Thanks
Nick

Thanks Bernard.
I have tried that and still get the error message:
"curl: Can't open '--ftp-create-dirs'!
curl: try 'curl --help' or 'curl --manual' for more information
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (9) Server denied you to change to the given directory"
The other relevant parts of the script are:
set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
set ftp_username to "*****@*****.org.uk"
set ftp_password to "****"
set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
set outPath to outputFolder & fileCounter & ".jpg"
and then...
do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error.

Similar Messages

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration
    Just don't install the sample schemas. See the installation guide
    http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm
    Using the Database Configuration Assistant
    When you install Oracle Database with the Oracle Universal Installer, the sample schemas are installed by default if you select the Basic Installation option. Selecting the sample schemas option installs all five schemas (HR, OE, PM, IX, and SH) in the database. If you choose not to install the sample schemas at that time, you can add them later by following the instructions in section "Manually Installing Sample Schemas".
    Choose a custom install and don't install the sample schemas.
    All other schems/tables installed are REQUIRED by Oracle

  • How can i create a Laptop like the ones use in SAP TecEd?

    How can i create a Laptop like the ones use in SAP TecEd hands on labs? with all the NW products install on it.

    Hi,
    Vague question, but to create a laptop with the solution installed - you need to order the solution and and then install it on the laptop. Or download trial versions from SCN and install those as well.
    Regards,
    Srikishan

  • How can I create mailing labels? I'm used to windows' label process

    How can I create mailing labels using pages?  I'm very familiar with window's way of doing this and can't find a tool for labels.  please help!

    Post in the Pages froumwhere those experts are:
    https://discussions.apple.com/community/iwork/pages

  • How can I create digital signatures for my users using Windows 2008 Active Directory Certificate Services?

    Hi,
    I need to create local digital signatures for my users. How can I do that using W2k8 Active Directory Certificate Services? We are gonna sign Office 2010 documents.
    What company offers cheap digital signatures solutions?
    Thanks in advanced

    Consider the following:
    if you use your local CA server to issue digital signature certificates, there is no cost, because you are eligible to issue so many certificates as you need. However, documents signed by these certificates will be considered trusted only within your AD
    forest and other machines that explicitly trust your local CA. Any external client will not trust your signatures.
    If you want to make your signature trusted outside your network (say, in worldwide), you need to pruchase a certificate from trusted commercial CA (VeriSign, GoDaddy, GlobalSign, StartCom, etc) according to respective vendor price list. In that case you
    don't need to have your local CA server, because it is not used. All certificate management is performed by the external CA. A most common scenario is to purchase signing certificate for particular departament principals (head managers) or few certificates
    for a whole company (all documents are revised by a responsible person or persons who holds signing certificate and sign them after review).
    so, it is not clear from your post what exactly you need.
    My weblog: http://en-us.sysadmins.lv
    PowerShell PKI Module: http://pspki.codeplex.com
    Windows PKI reference:
    on TechNet wiki

  • How can I create a directory chooser?

    hi there
    is there any way to create a directory chooser? because it is the directory that I am more interested in, but with JFileChooser, I must select a file to get a directory. help please, and thank you.

    Just a followup regarding directory choosers.
    I previously attempted to use the JFileChooser.DIRECTORIES_ONLY selection to make a directory chooser, but found that this didn't allow the user to descend into the wanted directory, then select it.
    The following code shows my attempt to resolve this. BTW, this works because the assumption has been made that when a directory is descended into, its name will appear in the file name field.
    JFileChooser browser = new JFileChooser(System.getProperty("user.dir"));
                   browser.removeChoosableFileFilter(browser.getAcceptAllFileFilter());
                   browser.addChoosableFileFilter(new DirectoriesOnlyFilter());
                   //This method will set the dialog type to custom via setDialogType(CUSTOM_DIALOG);
                   if (browser.showDialog(this, "Select") != JFileChooser.APPROVE_OPTION)
                        return;
                   File location = browser.getSelectedFile();
                   if (!location.exists())
                        String dirName = location.getName();
                        //Find the requested directory by looking at the parent directory
                        location = location.getParentFile();
                        if (location.exists() && location.getName().equals(dirName))
                             //User has descended into the wanted directory -
                        else
                             //Cannot resolve the requested directory
                   else if (location.isDirectory())
                        //The user has clicked, without descending, onto a directory in the chooser
                        //This is the directory that the user wants
                   else
                        //Oops - File found.  This should only happen in one of two cases:
                        //1) If there is a file with the same name as the directory it is in
                        //2) If the user has typed in a file name into the field
    class DirectoriesOnlyFilter extends javax.swing.filechooser.FileFilter
         public DirectoriesOnlyFilter()
         public boolean accept(File file)
              return file.isDirectory();
         public String getDescription()
              return "Directories";
    }Hope this helps.
    Rob

  • How do you create a directory on Apps Server

    Hi
    Is there any way to create a directory on the apps server at runtime using any of the forms built-ins or WebUtil?

    Use the HOST command, since HOST works on the App Server. WebUtil works on the client PC.

  • How to fetch and save file in common server using FTP in SAP

    Dear All,
    My requirement is to fetch a image and save an image in a common server through SAP .
    I think there is some concept of doing the same using FTP.
    Please put some light on this issue.
    REgards,
    Amruta

    Hi,
    Below are the FM's use to FTP.
    FTP_CONNECT                    Connect to FTP server
    FTP_COMMAND                    Execute FTP Command
    FTP_DISCONNECT                 Disconnect from FTP server
    You can search SDN for more details on each of the FM's.
    Hope this helps
    Regards
    Shiva

  • How can i create work directory for Tomcat4 which is installed on Mandrake

    Hello Everybody,
    I installed Tomcat4 with the help of JPackage on Madrake Linux. It is working fine. But Unfortunatly my work folder in tomcat4 is deleted. I restarted my Tomcat, But the work folder not created. my application is not working. I need help from u people. Is there any other options to create work folder. I installed the tomcat4 from jpackage.
    Thanks in advance, Naveen Kumar Madugula

    4) Advanced Configuration - Multiple Tomcat 4 Instances
    In many circumstances, it is desirable to have a single copy of a Tomcat 4
    binary distribution shared among multiple users on the same server. To make
    this possible, you must configure a CATALINA_BASE environment variable (in
    addition to CATALINA_HOME as described above) that points to a directory
    that is unique to your instance.
    When you do this, Tomcat 4 will calculate all relative references for files in
    the following directories based on the value for CATALINA_BASE instead of
    CATALINA_HOME:
    * conf - Server configuration files (including server.xml)
    * logs - Log and output files
    * shared - For classes and resources that must be shared across all web
    applications
    * webapps - Automatically loaded web applications
    * work - Temporary working directories for web applications
    * temp - Directory used by the JVM for temporary files (java.io.tmpdir)
    If you do not set CATALINA_BASE to an explicit value, it will be initialized
    to the same value as is set for CATALINA_HOME (which means that the same
    directory is used for all relative path resolutions).
    more -> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

  • How can I create a database from a sharepoint using entity framework

    Hello All,
    I want to develop a data base from SharePoint list independently. The column name are based on a SharePoint list eg: Contact-list (will be having 10 columns)
    can any one please suggest me an idea on how to do this task? Which Visual Studio template is suitable for this purpose?
    I confused with starting with following Visual studio template!!!
    Empty SharePoint Project??, Business Data Connectivity Model??, ASP.Net Web application??
    Somebody please help me soon....
    I am using SharePoint 2010 and Visual Studio 2010

    Hey,
    basically you should start with an empty SharePoint 2010 project where you add an List-EventReceiver. This Receiver should point to the url of the list and handle the ItemAdded-Event. In this method you place the code to create the database, for example
    with a SQL-Statement.

  • How Can I Create A Contact Form In Dreamweaver Using ASP

    I tried to create a contact form using php, but that failed epically. The server doesn't support php, and there isn't anything I can do about that. My only option now is to create it using ASP but I can't find a good tutorial on how to do so. Please help me!

    Ask your host if they have a form-to-email script you can use.  Many commercial hosts have scripts on their servers which you can activate through your C- or Admin-panel.
    Failing that, there are some commercial products you can use.
    Forms to Go ~
    http://www.bebosoft.com/products/formstogo/overview
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How can you create an instance of a class using ClassLoader given only

    the class name as a String. I have the code below in the try block.
    Class myTest = this.getClass().getClassLoader().loadClass("Testclass");
    Object obj = myTest.newInstance();
    String className = obj.getClass().getName();I don't want to typecast the class like
    Testclass obj = (TestClass) myTest.newInstance();I want to be able to create the classs at runtime and then get the methods in the class and execute those methods. Can it be done without having to code the typecasting in before compile time?

    I read on the web of people creating objects from interfacesDoesn't sound like the thing to do... Theoretically you could create dummy classes on the fly that implement some interface, but that's not very useful.
    Sounds like you are trying to load classes and execute them via interfaces. Like this:
         Class clazz = Class.forName("java.util.LinkedList");
         Collection c = (Collection) clazz.newInstance();
         c.add("hello");
         c.add("world");
         System.out.println(Arrays.toString(c.toArray()));LinkedList is the class, Collection is the interface which LinkedList implements. You can then call the methods declared in the interface. The interface gets "compiled in" into the program and the classes that implement it get loaded whenever and from wherever you load them.
    You could also use reflection to call methods without an interface, but that is type-unsafe, inelegant, hackish, and just plain ugly.

  • How Can I Create A .exe file in java using th enetbeans IDE

    Dear Friends
    i am trying to ceate a .exe file in th e netbeans IDE for jav prorams.
    I am uanble to fine the option to create the .exe file.
    i will be thankfull if you will help me out.

    Search for exe4j

  • How can I create a line width 0 when using a line style other than solid?

    Every time I select a line style other than solid,
    the line width gets reset to 0. This makes for a
    VERY faint line on the printed output.

    If this question is for the HiQ box, this is not a product that is supported by general technical support Applications Engineers any longer. The help for HiQ is exclusively online, and can be found at http://www.ni.com/support/hiqsupp.htm
    Of course, this question can still be answered by other HiQ users that visit this forum. Please post back if you have any questions. Thanks, and have a great day.
    Daniel McChane
    Application Engineer
    National Instruments

Maybe you are looking for

  • Add prices and display in dynamic text box

    Hey, I have a combobox and radio buttons with specific prices that I want attached depending on the choice the user makes. I'm having trouble getting the application to add the total of the selections and display the total in a dynamic textbox. I am

  • Passing Mail through postfix to EIMS

    Hello, I need help in trying to configure my OS X 10.4 server with email services. I am running EIMS (Eudora Internet Mail Server) 3.2 for email services and would like to continue to do so. My problem is that I have some php scripts that need to sen

  • Emergency question about CR basic for VS2008 and CR developer for VS2008

    Dear All, 1/ Crystal Reports Basic for Visual Studio 2008 can not output the txt file and Crystal Reports Developer can do it ,right? 2/  a.Crystal Reports Basic for Visual Studio 2008        b.CrystalReport Developer version    Can b open and edit t

  • Regular Expressions for converting HTML to Structured Plain Text

    I'm writing a PL/SQL function that will convert HTML to plain text, but still preserve some of the formatting/line breaks. One of my challenges is in writing a regular expression to capture the text blocks while ignoring the markup. I'm trying to wri

  • JDI Configuration - Imports finished but nothing done

    Hello, I am importing the files SAP_JTECHS, SAP_BUILDT, and SAP-JEE as per track configuration steps. We are on NW04 SP15. I started the imports, DEV and CONS system went OK (they were running a few minutes or so) but import into the TEST system fail