Re: syntax problem for reading an xml file in a bundle
Re: syntax problem for reading an xml file in a bundle
- Subject: Re: syntax problem for reading an xml file in a bundle
- From: Christopher Nebel <email@hidden>
- Date: Mon, 31 Jan 2005 18:01:36 -0800
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