• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XML editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Script Editor Text Prefs Lost After System Upgrade
  • Next by Date: Apple/Shell script to ping multiple host/ip
  • Previous by thread: Re: Script Editor Text Prefs Lost After System Upgrade
  • Next by thread: Apple/Shell script to ping multiple host/ip
  • Index(es):
    • Date
    • Thread