Usually i’m not interested at all what’s written in a plist, because these are parameters to set in our applications. The point is some application behaviour is poorly or lazily designed
So a shortcut comes in handy
set libPt to path to preferences folder from user domain
tell application "System Events"
set plistFile to property list file (libPt & ".GlobalPreferences.plist" as text)
tell plistFile
set HiddenToolbar to value of property list item "_HIHideMenuBar"
if HiddenToolbar is true then
set value of property list item "_HIHideMenuBar" to false
log 1
else
set value of property list item "_HIHideMenuBar" to true
log 2
end if
end tell
end tell
The value is written, but doesn’t activate the desired effect.