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

Re: syntax problem for reading an xml file in a bundle


  • Subject: Re: syntax problem for reading an xml file in a bundle
  • From: Graham Anderson <email@hidden>
  • Date: Mon, 31 Jan 2005 19:50:34 -0800


I'll give it another try tomorrow and give you the error.... thanks Chris :)


On Jan 31, 2005, at 6:01 PM, Christopher Nebel wrote:

On Jan 27, 2005, at 6:10 PM, Graham Anderson wrote:

here's the strange problem....
I can not seem to read a file in the contents folder of my applescript application's Contents
set gLocalPrefFile to (((path to me) as string) & "Contents:Resources:Data:Preferences.xml";)
set theScript to "sed -n '/<launcherVer>/{s/.*<launcherVer>\\(.*\\)<\\/launcherVer>.*/\\1/p;}' " & POSIX path of gLocalPrefFile
set localVer to do shell script theScript
does not return anything and gives an error:(
when compiled and put into a dmg volume, I am getting type 1 errors

Yes, but *what* error? The "1" of your "type 1 error" is simply the exit status of the shell command -- the more informative part is the error message.



--Chris Nebel AppleScript Engineering


_______________________________________________ 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
References: 
 >syntax problem for reading an xml file in a bundle (From: Graham Anderson <email@hidden>)
 >Re: syntax problem for reading an xml file in a bundle (From: Christopher Nebel <email@hidden>)
 >Re: syntax problem for reading an xml file in a bundle (From: Graham Anderson <email@hidden>)
 >Re: syntax problem for reading an xml file in a bundle (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Apple Mail help sought
  • Next by Date: Re: Curl progress bar ?
  • Previous by thread: Re: syntax problem for reading an xml file in a bundle
  • Next by thread: Re: syntax problem for reading an xml file in a bundle
  • Index(es):
    • Date
    • Thread