Using an Applescript to upload output files to Cyberduck?

Does anyone here use, or know of an Applescript that can automatically upload outputted files to an FTP site using Cyberduck?
I've been hearing about Applescript implementation in Compressor but can't seem to find something to automate my uploading with Cyberduck. I have found one that works with Fetch, but it's taken me long enough to get the technophobic staff here to use Cyberduck, I don't want to have to orchestrate a switchover to Fetch if I can possibly avoid it.
Thanks,
Chris

Hey Jon,
Thanks for your response. I didn't know about cURL but I suppose it would make things simpler than trying to script a process within Cyberduck.
Unfortunately I only really found out about Applescript today and my knowledge of it is limited to one beginners tutorial online which showed me how to change the shape, position and layout of finder windows (exciting!). As such, the script you linked me to means very little to me. Will I be able to attach it to a compressor job in order to automatically upload the file to the FTP site?
If so would you be so kind as to tell me what I need to write into the script so that the file name it is looking for changes depending on the name of the file being outputted by Compressor?
Sorry to be such a noob but everyone has to start somewhere right?
Thanks,
Chris

Similar Messages

  • AppleScript Studio - Uploading a file

    How can I upload a file to a website using AppleScript?
    I have the following code to find the file on my system:
    set theFilePath to POSIX path of (choose file without invisibles)
    set content of text field "fileToImport" of tab view item "importData-Tab" of tab view "tabView" of window "mainWindow" to theFilePath
    Now I want to upload the file using POST to a website. Please Help!

    Michael,
    I guess you should be able to do this using a shell script and "curl" - the one problem with curl is that it won't honor your system's proxy settings...
    Andreas

  • Use REST API to upload a file to office365 OneDrive

    Hi All,
    I failed to use RESTClient upload a file from local pc to my office365 OneDrive follow the Microsoft article.
    the following is Microsoft link
    http://msdn.microsoft.com/en-us/library/office/dn605900%28v=office.15%29.aspx
    Create file with content
    Creates a new file and provisions the file with content. Provide the content as a bit stream in the POST body. The body is required.
    Request
    POST ../_api/files/Add(string name, boolean overwrite)
    Body
    Bit stream of file content.
    Response
    Returns file properties and response code.
    if someone have some code in native c or c++, please help.
    Many Thanks
    Will

    Hi Atul Barve,
    If you mean the document unique id with Document ID Service Feature, through Site Sittings->Site Collection Features->Document ID Features.
    Then, the field is included in REST API, you can get it through “OData__dlc_DocId”.
    For example, first get the items using
    http://siteurl/_api/web/lists/getByTitle(‘libraryname’)/items
    This will get all items in the list, then view the page in XML format or JSON format, we can see the item fields, include:
    <d:OData__dlc_DocId>AWMJNX7ZDCK7-1-4</d:OData__dlc_DocId><d:OData__dlc_DocIdUrl m:type="SP.FieldUrlValue">
    “OData__dlc_DocId” is represent the document id field.
    Document ID is unique in the site collection, the value will not change when you move the document from one library into another library.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Using Timestamp [TS] in the output file name

    Hello Everyone,
    i am trying to get the timestamp into the output file generated by the store file atom. Since my Outbound channel is void i thought i could use:
    [TS]
    or
    [yyyy][mm][dd][hour][min][sec]
    My File Specification is: C:\Temp\Out\blabla[TS].xml and unfortunatelythe outputfile are named: blabla[TS].xml
    What am I doing wrong? Can i not use those placeholders in an atom?
    Help is greatly appreciated
    Best regards
    Simon

    Hi Simon,
    Now I see, you're trying to maintain the timestamp in the SLD FILO section and not in a store file atom of an integration scenario.
    In this case, please check the following help document:
    filePattern
    To define the outbound file pattern, define the directory and the file specification. Enter the full path. The integration framework supports Microsoft Windows UNC (Universal Naming Convention) names. The directory you enter must exist in the file system. The user for directory access must have the necessary rights in the file system.
    You can use the following special characters and variables:
    Character/
    Variable
    Description
    To introduce  numbering in the file directory use ?.
    If you enter  for example data????.xml, the integration framework creates an outbound file called data0000.xml, if the directory is empty. If a file, following this naming  convention, already exists in the outbound directory, the next generated file  name is data<last  number>+1.xml. If data0000.xml already exists in the directory, the next file in the directory  is data0001.xml.
    [vbiu]
    This is a placeholder for a value you can  define in scenario package processing. If you use the value, add the b1im_filename attribute directly in the outbound payload.
    <xsl:template  name="transform">
          <xsl:attribute  name="b1im_filename">myName</xsl:attribute>
    </xsl:template>  
    [TS]
    To add a  timestamp to the file name, use the variable. This gives you another  possibility to define unique file names.
    [yyyy]
    Adds the  current year in four digits to the file name
    [yy]
    Adds the  current year in two digits to the file name
    [mm]
    Adds the  current month to the file name
    [dd]
    Adds the  current day to the file name
    [hour]
    Adds the  current hour to the file name
    [min]
    Adds the  current minute to the file name
    [sec]
    Adds the  current second to the file name
    You can also combine the variables. For example file[TS]??.[hour][min].txt
    Here is a screenshot of my SLD FILO definition and from the result:
    Best regards
    Bastian
    P.S.: just in case you need to define a filename in the integration step for the store file atom, here is a screenshot:

  • How to use the applet to upload the file ?

    I am facing a problem that , I don't know how to use applet to upload the file to server .
    I have the code to upload the file by using servlet .
    However , I want to use applet to upload the file .But , the format of servlet I have used is "multipart/form-data"
    but applet can not do so , I think it is the header of the data . I don't know what can I do .....
    Can anyone give me some suggestion or coding to write the file upload by using applet ?
    Besides , using the socket are there any other choices ?
    thx a lot !!!!

    Well, to upload files you need to
    Server App - running on the webserver
    1. Open a socket
    (Study the classes Socket, InputStream, OutputStream in the Java API)
    2. Wait for connection.
    3. Open FileOutputStream
    3. Read data from InputStream, Write to FileOutputStream
    4. Close InputStream and FileOutputStream
    Applet
    1. Open a filedialog (Swing, AWT)
    2. Open file (FileInputStream)
    3. Connect to uploadServer (steps described above)
    4. Read FileInputStream, write OutputStream
    5. Close File and Socket
    This is just simpl and basic terms get you on the right track
    Jonas

  • Jlaunch process using High CPU, while uploading the files in XI system

    Hi,
    we are facing  jlaunch high cpu usage problems, while uploading the files of more than 25MB, in XI system. PIAFUSER is running on PRIV mode and huge java core dumps and heapdumps are  getting generated in server0 node
    error message->  - Out of memory situations running XI
    Exception thrown [Fri Sep 30 13:57:27,855]:Exception thrown by application running in JCo Server
    java.lang.Exception: java.lang.OutOfMemoryError
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:237)
         at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    first , we tested in Quality system, where,we are getting same problems as well.
    SAP Note 146289 - Parameter Recommendations for 64-Bit
    increased em/intial_size_MB  from 512MB to 2 GB and em/global_area_MB value from 96 to 256
    SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
    we added some jvm parameters in confitool
    -Djava.awt.headless=true
    -XX:+UseParNewGC
    -XX:+PrintGCTimeStamps
    Present  JVM values in XQ1 system..
    Xmx  value 3072
    xms  value 2048
    xmn  value 1000
    we have tested JCo RFC's  AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER , connection test was OK.
    We increased parameter com.sap.aii.ib.client.jnlp.j2se.maxheapsize from 512m to 800m
    Please advice me.. how to proceed..
    regards,
    balaram

    Hi Balaram,
    Kindly review below note, Hope it suits.
    716927 - Overview of AIX JVM for NetWeaver 2004 and 7.0 (2004s).
    Regards,
    Mani

  • Process with RenderPDFForm using Java API not generating output file

    I have a short-lived process that renders a PDF/HTML form based on input parameters. It also takes a .xdp file as input. This works just fine from with
    in Workbench (9.0). I have created a Java client to invoke this process. When I invoke the process from the Java Client,
    it is not creating the output file. When I look at the invocation response, I see the output parameter (output file) name, but it is null.
    Here is my code.
    Properties connectionProps =
    new Properties(); 
    connectionProps.setProperty(
    "DSC_DEFAULT_SOAP_ENDPOINT", "http://hostname:8080");connectionProps.setProperty(
    "DSC_TRANSPORT_PROTOCOL","SOAP"); 
    connectionProps.setProperty(
    "DSC_SERVER_TYPE", "JBoss"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_USERNAME", "username"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_PASSWORD", "password"); 
    //Create a ServiceClientFactory object
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    //Create a ServiceClient object
    ServiceClient myServiceClient = myFactory.getServiceClient();
    //Create a Map object to store the parameter value
    Map params =
    new HashMap();
    File file =new File("C:/test1/test.xdp");File ofile =
    new File("C:/TestProcess.pdf"); 
    //String formName = "RD410-4.xdp";
    InputStream inFile =new FileInputStream(file);OutputStream oFileStream =
    new FileOutputStream(ofile); 
    byte[] cData = "".getBytes(); 
    Document inputData =
    new Document(inFile); 
    // Document outputData = new Document(oFileStream);
    inputData.passivate();
    params.put("Form", inputData);params.put(
    "FormId", "12");params.put(
    "RevId", "12");params.put(
    "OutputType", "PDF");params.put(
    "targetSubmission", "http://localhost:8090/LCWebProject/HandleData");params.put(
    "param1",1);
    InvocationRequest invokeRequest = myFactory.createInvocationRequest(
    "MyApplication10/Processes/RenderForm", //Specify the short-lived process name
    "invoke", //Specify the operation name
    params,
    //Specify input values
    true); //Create a synchronous request
    InvocationResponse invokeresponse = myServiceClient.invoke(invokeRequest);
    Document encryptDoc = (Document) invokeresponse.getOutputParameter("outputFile"); 
    //Save the encrypted PDF document returned by the process
     //Save the password-encrypted PDF document
    File outFile =new File("C:\\test1.pdf");encryptDoc.copyToFile (outFile);
    I see the output parameter "outputFile" in the invokeresponse object. But it is null.
    Can anyone guide me in the right direction ?
    Thanks,
    Jyothi

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • How to upload/download file to/from server using FiledownloadUI ?

    Hi experts,
    I don't have much experience of WDABAP. I have to upload a file  to server and then download it again. I have implemented  this functionality but I am unable to view contents of .xls/.doc/.docx/.msg file only  txt file contents are properly visible. I have used  following command to upload the file:-
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    I had  also tried this but it is throwing  exception that it can be used only for character type data.
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE  ENCODING UTF-8    WITH SMART LINEFEED.  
    Thanks in advance.
    Problem Solved!
    Regards,
    Vishesh
    Edited by: Vishesh@1986 on Sep 26, 2011 7:37 AM

    I have resolved the issue myself!!!

  • How do you upload multiple files?

    Hi,
    This is propably an easy one.
    I am trying to upload multiple .gif files to a folder in KM.
    I went to Content Management -> KM Content and created a new folder inside a sub-folder.
    Now when I click on the contect menu I select New.. and then Upload...
    However, this only allows me to select for upload one file at a time.
    I neeed to upload about 50 files. It will take ages doing this one by one!
    Is there a quicker way?

    Hi
    Multiple upload of files is possible by using WEBDAV protocol.To use this follow the below steps.
    Go to folder to which u want to upload the files and the click on the context menu and select details.A new window will open up.In that select settings->properties->accesslinks.copy the WEBDAV link shown there.
    Now
    click My Network Places on your desktop, and choose Tools from the top menu bar/Map Network Drive from the context menu. If you donu2019t find My Network Places on your desktop you can find it under Windows Start menu option on your computer.
    select Sign up for online storage or connect to a network server. Click next
    Highlight Choose another network locations. Click next
    Use Cntrl+V to paste the URL path name(webdav URL).  Click next
    Change the URL location to the name of the folder in KM. Hit next.  Hit finish
    A folder by the name you just created will appear under my network places on your explorer application.
    Using this u can upload multiple files directly into folder u want.
    Hope this solves ur problem.
    Regards
    Hussain.

  • File Adapter Overwriting the output files

    Hi All,
    I´m using a File Receiver Adapter to write flat files on to an FTP. Same Communication Channel is used for all types of output files (As per the business requirement the file name(
    MzOutput.txt) shud b same for Deliverz orders, Purchase orders etc...). The receiver legacz szstem reads one file at atime and deletes it. So if i´m writing a Deliverz Order File, i have to wait until the file MzOutput.txt gets deleted and then i have to write the next file using the same name. in order to acheive this, i had used a module processor which waits until that MzOutput.txt gets deleted. Mz problem is
    As there are ´n´ no of orders waiting in the queue, if at 12:14:00 the MzOutput.txt gets deleted, then two threads which check for the existance of the MzOutput.txt file finds nothing and tries to write at same time. as a result, first file got overwritten by the second file.
    I dint check the indicator OverwriteExisting File in the CC configuration.If i use two different CC channels to write the same file, it is giving FTP Exception which is true.
    I´m loosing few deliveries as a result of the above case. Can anzone please help me out in this regard?
    Thnx in Advance
    Anil

    Hi Anil,
    Why dont you write the files with 'Add time stamp' option on for the file name and then the third party/legacy system to read the files in the order which they were created.?
    Another option will be to write these files into a folder with these Add time stamp option/counter option and make a shell script check the folder for the MzOutput.txt file exists in the folder from where the third party/legacy system reads the file and once it has deleted the existing file, then ur files shud be moved in the order in which they were written n the temporary folder.
    This will avoid the queue of messages in the adapter engine.
    Cheers
    JK

  • Problem in upload the file...

    Hi Gurus,
    I am new  in ABAP. I want to upload a file to Application Server.
    1. I create a file in Excel and give extension .prn and save on desktop so i think this file is on my presentation server.
    2. Now thru ABAP Editor i want to upload this file to Application Server
       Because i have to use this file in BDC.
    please give me the process..
    Thanks in Advance..
    Kind Regards
    Yogesh

    Hi Yogesh,
       As per the above suggestion you can use CG3Z tcode to upload your file directly from PS(Prersentation Server) to AS (Application Server).
       Otherwise if you need the procedure for coding, then first sav the file in .xls or .csv  or any format and upload the file into an internal table using any standard FM as per the extension ehich you use. Later use OPEN DATASET stmt. and open a file in AS and pass the data from your Internal table into this file through TRANFSER  stmt and after completing the required process use CLOSE DATASET stmt accordingly.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • IPlanet Web Server crashes when uploading a file of size 15 MB

    Hi
    Setup is iPlanet Web Server 6.0 with iPlanet App Server 6.5. A servlet is used to upload files using multipart form data. The web server restarts itself when tried to upload a huge file (approx 15 MB). The error log says
    Catastrophe (600) Web server crashed.
    Any help is appreciated
    Thanks in advance
    Rajesh

    yeah its working fine. Thank you very much..
    But it would be better if we provide the chunklength rather than using a zero to upload the file fastly.

  • No audio play through when uploading audio file

    Hello. I have been trying to use GB '08 to upload audio files of recorded interviews. Problem is when I begin uploading, no audio plays so I can't adjust levels, etc. I've tried looking through preferences/other tools for "play through" features but can't find any. It doesn't do me any good to try to upload interviews if I can't hear them to make sure the audio quality is good enough. Can anyone help with this? Thanks!

    Yes, I am importing the audio from an external recording device. I set up a basic track and then hit record but then I can't hear anything except the metronome or the timing clicks. So I have to stop it after a few minutes to check that it has recorded the audio properly - levels OK, etc. And then if the voice levels are too low or some other problem, I have to guess that I'm adjusting the input levels OK, and then I hit record again and repeat the process. I want to be able to hear the audio while I'm recording. That's what I can't seem to fix.

  • How to upload excel file in Webdynpro application using ABAP

    Hi Experts,
    Am developing a webdynpro application in which it will take an excel file as input and display the contents in the form of a table in output. I am able to upload tab delimited text file and populate the table using the below code but not able to do the same with .xls file. Pls let me know if I need to use a different function module for upload excel file.
    get single attribute
      wd_context->get_attribute(
        EXPORTING
          name =  `DATASOURCE`
        IMPORTING
          value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
      SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    Bind With table Element.
      LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.
        APPEND fs_table TO t_table1.
      ENDLOOP.
    lo_nd_data = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_data->bind_table( T_TABLE1 ).
    Thanks,
    Subathra

    Dear Exports
    Can anyone guide me how to uplode the .xlsx or ..xls formatted excel file using abap webdynpro without converting it to .txt file. Because my client requirement is only to upload the excel file. because to convert the .xlsx flie to .txt file it will be time taking and cost expanssive. Another requirement is suppose today i have create a application for uploading a file which has 8 columns and 10 rows. suppose tomorrow the client will make some changes in that flat file means the client will add 2 extra columns and 10 more columns in that fil. and will upload that file. Then the new file will be display on the browser or old file. but my requirement is to display the new file in browser.
    Can anyone kindly help to solve my problem. I am completely fresher in this field and I need to do it as soon as possible. Please help to solve the problem. 
    Regards
    Rashmita

  • AppleScript to perform Safari file upload?

    I need an AppleScript to handle the file picker dialog in Safari for an upload operation.
    I have most of it working, except for the small fact that I can't figure out how to actually SELECT the file from the list.
    Mac OS X 10.7.3, Safari 5.1.3
    Here's what I have so far:
    on run argv
              if (count argv) = 1 then
                        set file_name to item 1 of argv
              else
                        return "Usage: FilePicker.scpt file"
              end if
              tell application "Safari"
                        if not frontmost then activate
                        tell front window
      activate
                                  tell application "System Events"
      -- enable List View
      keystroke "2" using {command down}
      -- move input focus to the search field
      keystroke "f" using {command down}
      keystroke file_name
                                            delay 1
      -- select the "Filename Contains" suggestion
      keystroke (ASCII character 31) -- down arrow
      keystroke return
                                            delay 1
      -- TODO: select the first file from the list of matches
      keystroke return
                                  end tell
                        end tell
              end tell
              return 0
    end run
    Any suggestions?

    Finally got it working. Thank you for your help!
    on run argv
              set returnVal to 0
              if (count argv) = 1 then
                        set file_name to item 1 of argv
              else
                        return "Usage: FilePicker.scpt file"
              end if
              tell application "Safari"
                        if not frontmost then activate
              end tell
              tell application "System Events"
                        tell process "Safari"
                                  tell window 1
                                            if sheet 1 exists then
      -- enable List View
      keystroke "2" using {command down}
      -- move input focus to the search field
      keystroke "f" using {command down}
      keystroke file_name
                                                      delay 2
      -- select the "Filename Contains" suggestion
      keystroke (ASCII character 31) -- down arrow
      keystroke return
                                                      delay 3
                                                      tell sheet 1
                                                                tell group 1
                                                                          tell splitter group 1
                                                                                    tell scroll area 2
                                                                                              tell outline 1
                                                                                                        select row 1
                                                                                              end tell
                                                                                    end tell
                                                                          end tell
                                                                end tell
                                                                click button "Choose"
                                                      end tell
                                            else
                                                      set returnVal to -1
                                            end if
                                  end tell -- window 1
                        end tell -- Safari
              end tell -- System Events
              return returnVal
    end run

Maybe you are looking for

  • Changing HD from Macbook to Pro

    I have a Macbook White and just bought a Macbook Pro. I changed my Momentus XT HD of the white to the new PRO. But now I'm trying to put the 320GB HD of the Pro into the white, but is saying that I can't install the Mac OS, only in time machine mode.

  • Power Builder in Oracle 9i

    Guys, We have Power Builder 7.0.2 which runs against 7.3.4 dB. It works fine for the past several years. Now we are planning to move the database to 9.2. Will there be any problems from power builder? Your help is appreciated. Regards Ramesh

  • Biztalk

    when we send aany msg to a particaula Destination(For Example :Folder)  we get the filename as %MessageID%.xml so the message ID will be the name of the file is there any way where we can get the Current Date in the name of the file?

  • Transfer videos to iphone 6 from PC

    Hello. i ave some videos on my pc that i would like to have on my iphone their format is mp4 ive been trying to transfer them, they appeared in "videos" app i want to have the videos in my camera roll (when i record a video on my phone, the videos ar

  • Linux版Oracle11gR1,Oracle11gR2の違いについて

    何も考えずに.Oracle11gR1 - Oracle11gR2 にバージョンアップしました.Linux版です. それ以前は.9iでした. 11gR1以降の新機能を業務で使っていたわけではありません. 業務アプリ側から見て影響が無いものと信じたいですが.何か起きた場合. 既に「それが原因である」という切り分けができる環境がありません. 11gR2環境でのみの判断となります. Oracle11gR1 と Oracle11gR2 の違いによる業務アプリへの影響を明確にしておきたいのですが. 新機能(