I have not found an answer yet so I'm hoping someone here can help me. I don't know a great deal about PLIST files, so forgive me if I do not use the proper terminology.
I am trying to write an AppleScript to change the value of the Info.plist file for iWork '09 Pages. I know how I can write to a value, but not how to write to a child value. I am trying to change the value CFBundleTypeRole of item 8 of CFBundleDocumentTypes. This is the script I have so far:
I do not know how to get any further than that. Any help would be greatly appreciated.
I am trying to write an AppleScript to change the value of the Info.plist file for iWork '09 Pages. I know how I can write to a value, but not how to write to a child value. I am trying to change the value CFBundleTypeRole of item 8 of CFBundleDocumentTypes. This is the script I have so far:
set plist to do shell script "defaults read /Applications/\\iWork\\ \\'09\\/Pages.app/Contents/Info CFBundleDocumentTypes"
I do not know how to get any further than that. Any help would be greatly appreciated.