Your best friend for file transfer.Fetch
Selective FTP and Parse via Fetch and AppleScript (2 posts)
- Started 12 years ago by bwalker
- Latest reply 12 years ago from Jim Matthews
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.
RX46_inventory.zip and RX51_inventory.zip are updated daily on my Windows server.
Each night I hope to extract the files
RX46_detail.csv from the RX46_inventory.zip file.
I will also extract the files
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!
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.
- Page 1
This topic has been closed.