Short Version / File Version
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 15
- Joined: Wed Sep 11, 2013 3:44 pm
Short Version / File Version
Is there an easy way to get the MAC short version and the Windows File Version of my app into a splashscreen?
Re: Short Version / File Version
HI ckelly5430,
yes there is
Livecode stores the standalone builder settings in a custom property set named "cRevStandaloneSettings"
and you can retrieve this info in a standalone, since this CP set is obviously not deleted when building the standalone.
These are the keys:
scriptLibraries
Linux x64
MacOSX
OSX,name
UNIX,fileSelector
Windows
Windows,LegalCopyright
UNIX,pageSetup
Solaris SPARC
OSX,documentType
Linux
ios
inclusions
Windows,documenticonFile
answerDialog
OSX,documentExtension
Windows,FileDescription
OSX,longVersion
UNIX,printerChooser
OSX,copyright
android
OSX,identifier
name
Solaris Intel
OSX,shortVersion
Windows,fileversion1
Windows,fileversion2
Windows,productversion1
Windows,fileversion3
Windows,productversion2
Windows,fileversion4
Windows,productversion3
cursors
Windows,productversion4
OSX,info
MacOSX PowerPC-32
Windows,UUID
askDialog
Windows,iconFile
OSX,signature
defaultBuildFolder
Windows,ProductName
UNIX,colorChooser
MacOSX x86-32
ios,ipad intial orientations
Windows,companyname
So you can do something like this:
You get the picture
Best
Klaus
yes there is
Livecode stores the standalone builder settings in a custom property set named "cRevStandaloneSettings"
and you can retrieve this info in a standalone, since this CP set is obviously not deleted when building the standalone.
These are the keys:
scriptLibraries
Linux x64
MacOSX
OSX,name
UNIX,fileSelector
Windows
Windows,LegalCopyright
UNIX,pageSetup
Solaris SPARC
OSX,documentType
Linux
ios
inclusions
Windows,documenticonFile
answerDialog
OSX,documentExtension
Windows,FileDescription
OSX,longVersion
UNIX,printerChooser
OSX,copyright
android
OSX,identifier
name
Solaris Intel
OSX,shortVersion
Windows,fileversion1
Windows,fileversion2
Windows,productversion1
Windows,fileversion3
Windows,productversion2
Windows,fileversion4
Windows,productversion3
cursors
Windows,productversion4
OSX,info
MacOSX PowerPC-32
Windows,UUID
askDialog
Windows,iconFile
OSX,signature
defaultBuildFolder
Windows,ProductName
UNIX,colorChooser
MacOSX x86-32
ios,ipad intial orientations
Windows,companyname
So you can do something like this:
Code: Select all
...
put the cRevStandaloneSettings["OSX,shortVersion"] of stack "name of standalone mainstack here" \
into fld "versionnumber" of cd 1 of stack "splash"
...
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Short Version / File Version
I believe the cRevStandaloneSettings property set is removed during build time, so that info won't be available in a standalone.
For this reason, I continue to use my own custom properties for things like version number and app name, and use a setProp handler in a custom tool to update the corresponding cRevStandaloneSettings values as needed.
FWIW, the properties I use are defined in the ECMI spec, available on the Rev Interoperability Project page where we also have tools for conveniently setting those properties:
http://livecodejournal.com/revinterop/index.html
One of the benefits of using a common set of property name conventions is that it allows tool makers and other developers to have a common place we can rely on for such general info.
For this reason, I continue to use my own custom properties for things like version number and app name, and use a setProp handler in a custom tool to update the corresponding cRevStandaloneSettings values as needed.
FWIW, the properties I use are defined in the ECMI spec, available on the Rev Interoperability Project page where we also have tools for conveniently setting those properties:
http://livecodejournal.com/revinterop/index.html
One of the benefits of using a common set of property name conventions is that it allows tool makers and other developers to have a common place we can rely on for such general info.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Short Version / File Version
Hi Richard,
but now it is not even listed in the IDE und "custom properties", I had
to use MetaCard to see the cp set
Best
Klaus
do you kno when this has changed? It used to work in earlier versions,FourthWorld wrote:I believe the cRevStandaloneSettings property set is removed during build time, so that info won't be available in a standalone.
but now it is not even listed in the IDE und "custom properties", I had
to use MetaCard to see the cp set
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Short Version / File Version
I don't; I'd thought it always worked that way.Klaus wrote:Hi Richard,do you know when this has changed?FourthWorld wrote:I believe the cRevStandaloneSettings property set is removed during build time, so that info won't be available in a standalone.
If you turn on the Preferences checkbox labeled "LiveCode UI elements appear in lists of stacks" that also allow IDE-specific custom property sets to become visible in the Inspector.It used to work in earlier versions, but now it is not even listed in the IDE und "custom properties", I had
to use MetaCard to see the cp set
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Short Version / File Version
Ah, thanks, never thought this would also affect cps.
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Short Version / File Version
Me neither until I discovered it by accident one day. Believe me, I took my time switching from MC to LC.Klaus wrote:Ah, thanks, never thought this would also affect cps.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn