XML editing
XML editing
- Subject: XML editing
- From: Peter Vandewalle <email@hidden>
- Date: Fri, 16 Dec 2011 00:02:04 +0100
Hello all
I'm trying to edit an xml-file by applescript. I just need to replace some entries in the xml-file, but I do seem to miss some steps to get there. Any help would be appreciated. Here's what I got:
tell application "System Events" tell XML element "SavedSettings" of contents of XML file theFile tell XML element "Workspace.2011_NL_Studio___PV.Settings" set id of XML element "Palette.15.Coordinate.X" to 1 set value of XML element "Palette.15.Coordinate.X" to 1200 get properties of XML element "Palette.15.Coordinate.X" end tell end tell end tell
I get no errors, but the value 1200 doesn't write to the file...
Where do I go wrong?
Kind regards Peter Vandewalle |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden