Edit/update config file with Applescript??
am trying to read the file and then trying to change the values of the same with permissions, pls suggest how to write the same file with permissions.
The below script gives me the values as shown below, i need to change those values like aaaaa to 1, pls suggest.
set fileContents to {}
set x to ""
set filepath to POSIX path of "Macintosh HD:Library:Application Support:Macromedia:abc.cfg"
try
open for access filepath
set fileContents to (read filepath)
close access the filepath
on error
return false
end try
fileContentsoutput :
"aaaaa=0
bbbbbbb=0
"Mac OS X (10.7.4)