Re: Getting started with XML?
Re: Getting started with XML?
- Subject: Re: Getting started with XML?
- From: Steve Bennett <email@hidden>
- Date: Thu, 7 Dec 2006 21:21:38 -0700
Sorry Michelle,
I replied to the wrong email.
On Dec 7, 2006, at 8:15 PM, Michelle Steiner wrote:
On Dec 7, 2006, at 6:52 PM, Steve Bennett wrote:
This FileMaker plugin allows you to combine PDF files and may help
you out.
http://www.schubec.com/en_pdfplugin.php
Huh? What does that have to do with reading XML files with
Applescript?
-- Michelle
On Dec 7, 2006, at 6:14 PM, Michelle Steiner wrote:
On Dec 7, 2006, at 3:10 PM, Christopher Nebel wrote:
-- assuming that "XMLfile" has been set to an alias...
tell application "System Events"
set foo to contents of XML file (path of f) -- "'f as text'
would have worked, too, as would 'POSIX path of f'."
end tell
The explicit "path of" is necessary because System Events does
not recognize an alias a selector data for a file.
Once you're done there, "foo" will be an "XML data" object
specifier. To get parts of it, direct your eyes upward in the
dictionary from "XML file" to "XML data" and observe that an
"XML data" contains "XML elements". You can also get the text
representation by saying "text of", but for an element that's
mostly only useful for debugging.
Thanks.
Don't forget that if the XML file you're dealing with is a
plist, then you ought to be using the Property List Suite
instead. It's easier to work with, and there's no guarantee
that a plist is XML.
No, it's not a plist; it's an XML export from iTunes.
-- Michelle
--
It is not who I am underneath, but what I do, that defines me.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40telus.net
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40michelle.org
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
--
"That boy ain't got no culture. You talk about Dylan, and he think
you're talking about Dylan Thomas."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40telus.net
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden