Thanks
I discovered what is behaving.
I'm running Lion.
I used the search tool which revealed two com.apple.iWork.Pages.plist files.
When I execute :
do shell script "defaults write ~/Library/Preferences/com.apple.iWork.Pages FormatXML -string YES"
or
do shell script "defaults write com.apple.iWork.Pages FormatXML -string YES"
The value is not stored in the file defined by the instruction :
Macintosh HD:Users:yvankoenig:Library:Preferences:com.apple.iWork.Pages.plist
It's stored in :
Macintosh HD:Users:yvankoenig:Library:Containers:com.apple.Preview:Data:Library:Preferences:com.apple.iWork.Pages.plist
It seems that the file Macintosh HD:Users:yvankoenig:Library:Preferences:com.apple.iWork.Pages.plist
is read during the startup process and copied in :
Macintosh HD:Users:yvankoenig:Library:Containers:com.apple.Preview:Data:Library:Preferences:com.apple.iWork.Pages.plist
It's this one which is used.
I think that the first one is read during the startup process because I have a script which is ran at this time and which replace it by a clean one stored elsewhere.
Changes which I apply by hand are killed (it's deliberate) when I reboot.
If I want to keep new settings, I copy the edited file to the 'clean' one.
Yvan KOENIG (VALLAURIS, France) samedi 28 janvier 2012 19:05:55