Your best friend for file transfer.

Fetch application logoFetch

Selective FTP and Parse via Fetch and AppleScript (2 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 9 years ago by bwalker
  • Latest reply 9 years ago from Jim Matthews
  • bwalker Member

    I have zip files on a Windows FTP server which need to be unzipped and the contents parsed into directories on my OS X server according to file name.

    E.g.:

    The files:
    RX46_inventory.zip and RX51_inventory.zip are updated daily on my Windows server.

    Each night I hope to extract the files
    RX46_master.csv and
    RX46_detail.csv from the RX46_inventory.zip file.

    I will also extract the files
    RX51_master.csv and
    RX51_detail.csv from the RX51_inventory.zip file.

    The two extracted *_master.csv files are destined for the "master" folder on my OS X server. The two extracted *_detail.csv file are destined for the "detail" folder on the same server.

    I'm looking for advice and some sample code I could adapt for this purpose.

    Thanks in advance!

    Posted 9 years ago #

  • Jim Matthews Administrator

    The first thing I usually do when I want to write a script is to press the Record button in Script Editor and walk through the steps of the process manually. Fetch, the Finder, and some other applications will automatically record script statements for you, and that should give you a good starting point. I believe that StuffIt is AppleScript recordable as well, and you may want to use it for extracting files from .zip archives.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

Topic closed

This topic has been closed.