syntax problem for reading an xml file in a bundle
syntax problem for reading an xml file in a bundle
- Subject: syntax problem for reading an xml file in a bundle
- From: Graham Anderson <email@hidden>
- Date: Thu, 27 Jan 2005 12:27:59 -0800
I am trying to read an xml file located in my script's application
bundle
I am not running this within script editor as it would generate
erros....
set gLocalPrefFile to (((path to me) as string) &
"Contents:Resources:Data:!Fonovisa.xml")
set theScript to "sed -n
'/<launcherVer>/{s/.*<launcherVer>\\(.*\\)<\\/launcherVer>.*/\\1/p;}' "
& POSIX path of gLocalPrefFile
the xml file contains:
<?xml version="1.0" ?>
<preferences>
<launcherVer>1.0.0.37</launcherVer>
</preferences>
many thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden