• 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
Re: XML handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML handling


  • Subject: Re: XML handling
  • From: Thomas Fischer <email@hidden>
  • Date: Wed, 18 Nov 2009 16:31:46 +0100

Joshua,


Am 18.11.2009 um 01:20 schrieb Joshua Whalen:

> This might have the output & modification stuff... At least a clue:
>
> http://www.mactech.com/articles/mactech/Vol.22/22.03/StoringandAccessingData/index.html
>
> I'm glad this thread got started. I'd been meaning to do this research forever.

Thanks, this looks good but I couldn't get it to work in the general XML context (see below).

Shane,

>
> Presumably you create an XML element the same way you create just about
> every other object in AS: using the make command. So you probably want
> something like:
>
> make new XML element at end of XML element 2 of XML element "myTag" of
> myData with properties {...}

Yes, this is what I thought but couldn't get off the ground.
My main stumbling block now is the following:

If I try something like this (inside of "tell myData")

make new XML element with properties {name:"myTag", value:"Test"}

then I get the German version of

System Events received an error. The „at“ parameter for „make“ is missing.

And if I try

make new XML element with properties {name:"myTag", value:"Test"} at end of XML element "track" of XML element "xml"

I get an AppleEvent Error -10000.

(and the same with any other place I tried). So I don't know *where* to create the new XML element, what to use as "at" parameter.
This doesn't occur for property lists and stops me from progressing from Joshua's suggestion.
So, has anybody ideas what goes wrong, where I can create my new XML element?

Else I have to go back to Ed's suggestion:

> They're both free. They can both be distributed inside your script bundle,
> which makes them generally available anywhere your script runs.
>
> Plus, Late Night has excellent documentation.  I'm sure SATimage does as
> well.
>
>> Is there anybody in this audience who could tell Apple to come up with
>> documentation for the XML suite beyond its library?* It definitely would make it
>> more useful…
>
> No disagreement there, but, trust me, you can grow old waiting for Apple to
> do something that you might think would make things better.

I've grown old already…

> (I think that should be "beyond its dictionary")

And yes, that's correct.

All the best
Thomas

 _______________________________________________
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: XML handling
      • From: Shane Stanley <email@hidden>
References: 
 >re: XML handling (From: Joshua Whalen <email@hidden>)

  • Prev by Date: Re: Apple Script For Opening External EML File With Apple Mail
  • Next by Date: AppleScript Grammar
  • Previous by thread: re: XML handling
  • Next by thread: Re: XML handling
  • Index(es):
    • Date
    • Thread