• 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
syntax problem for reading an xml file in a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: syntax problem for reading an xml file in a bundle
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Move Document Window to Front Quark6.5
  • Next by Date: Re: Terminal grep from AS
  • Previous by thread: TruBluEnvironment
  • Next by thread: Re: syntax problem for reading an xml file in a bundle
  • Index(es):
    • Date
    • Thread