READ/WRITE TO FILE USING APPLE SCRIPT

Hi…
I am new to apple script.

I want to write a apple script which can read a file(Doc or Txt on Any)

Pls let me know the codes.

Regds,
sanjeeb.

Open Script Editor

Select Menu FILE:OPEN DICTIONARY

(if you’re using OSX, wait a very long time then) Scroll in the
Selection box to STANDARD ADDITIONS

(if you’re using OS9) use the Open Dialog box to navigate
to the Scripting Addtions folder of your System folder

Open the dictionary for Standard Additons

Examine the Open, Close, Read, Write commands.

When Applescript was installed on your system, it should have installed both example files using these commands and entries in the help system which tersely show how to use these commands.


If you need more help, ask again.

mgh

The sub-routine for writing a file to disk is here:

http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.11.htm