Using Data From Tab Delimited Text File
Using Data From Tab Delimited Text File
- Subject: Using Data From Tab Delimited Text File
- From: Les Cavanagh <email@hidden>
- Date: Wed, 07 Nov 2001 09:30:11 +1000
I need to write an Applescript to run a bunch of copies of Web Server Log
Analysis Programs.
The Web Server Log is broken up by a Perl script and files created in in
folders corresponding to the domains hosted.
The details of the domains hosted for the purposes of the Logging is kept in
a Tab Delimited text file in the form:
www.domain.com name_of_logfile
www.domain2.com name_of_logfile2
and so on...
The name_of_logfile part is not important to the Applescript function, just
the www.domain.com part as it will form part of the path to the application
to be run.
The path will be like:
Macintosh HD:Web Server:Web Sites:server_stats:www.domain.com:Application
So I want the script to go to the text file, get the first www.domain.com,
activate the Application, wait till it is finished, then get the next
www.domain.com from the text file and activate that Application and so on...
The parts I am having trouble with are:
1. Getting the www.domin.com information from the text file
2. Getting the script to wait for the Application to finish before going on.
--
Regards,
,-----/----.
| O | O | Les Cavanagh
| / | Certified Apple Engineer
| (__ | 0419 946 637
| \___|__/ | email@hidden
'-----\----'