or for mac in non-unicode...
C_TEXT($input;$output;$desiredName;$command)
$path:=Application file+":Contents:Info.plist"
$pos:=Position(":";$path) `get your hard drive out of the path - could also use rm -r
$path:=Substring($path;$pos)
$path:=Replace string($path;":";"/") `make it posix style
$desiredName:="CFBundleShortVersionString"
$command:="grep '"+$desiredName+"' "+$path+" -A 1"
LAUNCH EXTERNAL PROCESS($command;$input;$output;$error)
If ($output="")
`WTF?!?
Else
`output should look like
`<key>CFBundleShortVersionString</key>
`<String>11.4(61404)</String>
`parse that from there
End if
**********************************************************************
Register for 4D Summit 2009 Today
Early Bird Pricing Ends August 28th -
http://www.4d.com/summit4D Internet Users Group (4D iNUG)
FAQ:
http://www.4D.com/support/faqnug.htmlArchive:
http://lists.4D.com/archives.htmlOptions:
https://lists.4d.com/mailman/options/4d_techUnsub: mailto:
4D_Tech-Unsubscribe@...
**********************************************************************