XML text to Record
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