Friday, November 17, 2017

#1 2000-03-30 11:12:39 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Reading text file to list

I am trying to read a text file containing file names created with perl. I need to know what delimiters to put into the text file so it can be put be read by applescript. I need to know how to open the text file and put the text into a list for applescript to process.
Thanks


One mans trash is another mans treasure

Offline

 

#2 2000-03-31 06:55:14 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Reading text file to list

The file read & write commands are in the Standard Additions file in the Scripting Additions in the System Folder. Open this file as a Dictionary to read about the commands.
set file_ref to open for access file_path read file_ref close file_ref
for more info, download the Applescript Langauge Guide, Applescript Guidebook, etc. from Apple's web site.


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)