• 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 text to Record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML text to Record


  • Subject: XML text to Record
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 19 May 2011 15:29:43 -0500

I've been working on a script this afternoon.
It contains these two lines ...

do shell script "hdiutil imageinfo -plist " & imagePath -- get info about a disk image file
set response to the result -- text in xml format

At this point my script needs this information as a record.
So I need to ...

1. Write response to a text file, in temporary items folder, with name extension .plist.
2. Tell "System Events" to read the value of this .plist file
    into the record "imageinfoRecord"
3. Delete the temporary file.

I've tested this and it works, BUT ...

Is there any way to directly convert response into imageinfoRecord without steps 1 thru 3 ?

 _______________________________________________
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 text to Record
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: AppleScript and XPath query
  • Next by Date: Re: XML text to Record
  • Previous by thread: Re: For some strange reason
  • Next by thread: Re: XML text to Record
  • Index(es):
    • Date
    • Thread