• 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
System Events XML Suite - how to add / delete elements and attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System Events XML Suite - how to add / delete elements and attributes?


  • Subject: System Events XML Suite - how to add / delete elements and attributes?
  • From: Richard Rönnbäck <email@hidden>
  • Date: Mon, 21 Jul 2008 20:04:39 +0200
  • Thread-topic: System Events XML Suite - how to add / delete elements and attributes?

Title: System Events XML Suite - how to add / delete elements and attributes?
I have spent the last on trying to find some example of how to Edit XML with System Event's XML Suite, to no avail. I am aware of the Excellent XML tools from Satimage and LateNightSoftware, but unfortunately I can't use them for the current project

So far this is about what I have managed to find (through Google), in terms of creating something at all:


set myResult to do shell script "curl 'http://galacticaa.net/widget/feed.php? ts=1171327909000&v=2.1'"

tell application "System Events"
    set myData to make new XML data with properties {text:myResult}
    --set {EpNum, EpName, EpType, EpIm, EpM, EpD, EpY, EpFul, EpSum, NewVer, UpgradeMessage} to value of XML elements of XML element "galacticaa" of result
end tell


But how on earth do I create a new element at end somewhere in the structure, or delete one for that matter? I am really lost and would greatly appreciate a working example.
 _______________________________________________
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

  • Follow-Ups:
    • Re: System Events XML Suite - how to add / delete elements and attributes?
      • From: Philip Aker <email@hidden>
    • Re: System Events XML Suite - how to add / delete elements and attributes?
      • From: Axel Luttgens <email@hidden>
References: 
 >Getting a color value (From: "Jesse Almanrode - JA Computing" <email@hidden>)

  • Prev by Date: Getting a color value
  • Next by Date: Re: Changing the info in the sudoers file
  • Previous by thread: Getting a color value
  • Next by thread: Re: System Events XML Suite - how to add / delete elements and attributes?
  • Index(es):
    • Date
    • Thread