« Return to Thread: Build number or precise version number?

Re: Build number or precise version number?

by Thomas Swenson :: Rate this Message:

Reply to Author | View in Thread


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/summit

4D Internet Users Group (4D iNUG)
FAQ:  http://www.4D.com/support/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

 « Return to Thread: Build number or precise version number?