Music Banter - View Single Post - The Official Computer Tech Support Thread
View Single Post
Old 02-15-2012, 05:22 PM   #1117 (permalink)
Stephen
I sleep in your hat
 
Stephen's Avatar
 
Join Date: Mar 2011
Location: Melbourne, Vic. Aus.
Posts: 1,846
Default

Ok not computer tech but programming question. Any AppleScript gurus on site? I need to read a text file into a list to automate ftp upload of a bunch of files. I know most of it but just don't know how to format the text file when I write it so the AppleScript can read it and parse it into a list for processing.

Something like

{site: 'www.musicbanter.com', user: 'fazstp', password: 'analbeads', file_list: {'Mac HD/Users/fazstp/Desktop/Files/0001.jpg', 'Mac HD/Users/fazstp/Desktop/Files/0002.jpg', 'Mac HD/Users/fazstp/Desktop/Files/0003.jpg'}}


Edit: Might give this XML format a try - Parse XML with AppleScript

Last edited by Stephen; 02-15-2012 at 06:02 PM.
Stephen is offline   Reply With Quote