How to determine Commercial or Community versions.

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to determine Commercial or Community versions.

Post by Mark » Thu Jan 09, 2014 4:48 pm

Richard,

Your script is almost the same as what I already proposed earlier in this thread.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to determine Commercial or Community versions.

Post by FourthWorld » Thu Jan 09, 2014 5:15 pm

Indeed it is, yet after the subsequent posts about using the address it seemed helpful as a reminder.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to determine Commercial or Community versions.

Post by Mark » Fri Jan 10, 2014 1:34 am

You think people might forget, after reading this not-so-very-long thread? :-)

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: How to determine Commercial or Community versions.

Post by monte » Fri Jan 10, 2014 1:45 am

Code: Select all

if revLicenseType() is "community" then
   -- do what ya like
end if
Last edited by monte on Fri Jan 10, 2014 1:53 am, edited 1 time in total.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to determine Commercial or Community versions.

Post by Mark » Fri Jan 10, 2014 1:53 am

Monte,

If I remember correctly, the revLicenseType function caused an error in standalones made with older versions. Does this function work in standalones now?

According to the dictionary, one shouldn't use this function and it would always return "Enterprise". I know that this dictionary entry is wrong, but perhaps one should refrain from using this function, just to be sure.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: How to determine Commercial or Community versions.

Post by monte » Fri Jan 10, 2014 1:56 am

I don't see any mention of standalones in the original question. If that's a requirement then I'm sorry. Use Richard's function instead.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: How to determine Commercial or Community versions.

Post by [-hh] » Fri Jan 10, 2014 6:52 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:34 pm, edited 1 time in total.
shiftLock happens

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: How to determine Commercial or Community versions.

Post by AndyP » Fri Jan 10, 2014 9:06 am

Thanks for all the comments and different solutions.

As usual with LiveCode many alternate ways to solve a problem..that's not a critisim by the way :wink:
Andy .... LC CLASSIC ROCKS!

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: How to determine Commercial or Community versions.

Post by Thierry » Fri Jan 10, 2014 11:05 am

AndyP wrote: As usual with LiveCode many alternate ways to solve a problem.. :wink:
TMTOWTDI

A very old mantra which applies to most of dynamic modern languages
including Livecode :wink:

By the way, I like Mark's one :)


Regards,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: How to determine Commercial or Community versions.

Post by [-hh] » Fri Jan 10, 2014 4:26 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:34 pm, edited 1 time in total.
shiftLock happens

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to determine Commercial or Community versions.

Post by FourthWorld » Fri Jan 10, 2014 4:55 pm

[-hh] wrote:Assume there is an external to password protect scripts (Monte certainly could do this at once, right out of his brain). And if such an external is simply adding "set password" to the vocabulary of community versions of the IDE.
How would you then distinguish between commercial and community versions of the IDE?
Historically, the engine does not allow us to override built-in engine commands and functions. This is done primarily for performance reasons, but it can also be considered a security measure as well: if my library can alter the behavior of your scripts by intercepting commands you intended to be handled by the engine, the results could range from annoyance to catastrophe.

For these reasons, even when the "open language" initiative is released, I doubt they'd allow all the built-in commands to be overridable.

That said, there are legitimate reasons why one might want to protect scripts in the Community Edition, mostly to ensure their integrity against possibly alteration by other scripts with malicious intent.

This has been raised to the development team, but I suspect that if a solution is offered, or even if a solution were to come from the community, it would not affect the expected behavior of the engine's current password mechanism.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: How to determine Commercial or Community versions.

Post by Thierry » Fri Jan 10, 2014 5:04 pm

[-hh] wrote:There remains one problem.
Assume there is an external to password protect scripts (Monte certainly could do this at once, right out of his brain). And if such an external is simply adding "set password" to the vocabulary of community versions of the IDE.
How would you then distinguish between commercial and community versions of the IDE?
Monte, don't do that! :D
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: How to determine Commercial or Community versions.

Post by monte » Fri Jan 10, 2014 10:36 pm

Thierry wrote:Monte, don't do that! :D
Relax... I think @-hh is overrating my brain here...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: How to determine Commercial or Community versions.

Post by Thierry » Sat Jan 11, 2014 3:10 pm

Relax... I think @-hh is overrating my brain here...
Oups, sorry.
Was supposed to be a joke...
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: How to determine Commercial or Community versions.

Post by Mark » Sun Jan 12, 2014 2:15 am

Hi,

First of all, I don´t think that the externals API currently allows for properties, but I suppose that this could be changed. If there is an external that can set a password using a password property or command, this property or command should be in the externalCommands or externalFunctions, or perhaps in the externalProperties (which doesn't exist yet). If it were in the externalProperties, you'd know that it isn't in the engine and hence you'd be using the open source edition.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply