Expiration date for SC beta application

35 views
Skip to first unread message

andre.tremblay

unread,
Apr 3, 2019, 1:55:13 PM4/3/19
to SuperCard Discussion


Le mardi 2 avril 2019 00:19:39 UTC-4, codegreen a écrit :

As for a warning message that would certainly be POSSIBLE, but alas it's not likely to happen. The reason is it would give someone trying to crack the expiration a hopelessly obvious place to start looking.

All SC betas have a global property called the expirationDate though, which you can (and probably should) inspect when you install them so you know when their rendezvous with the reaper is scheduled to happen. If this is really a problem for you it also wouldn't be hard to add a little script to your sharedFile which reminded you each launch how long you had until it expired...

-Mark

Thank you Mark for this information, I wasn't aware of it, it doesn't seem to be mentioned  in the On-Line Help, nor the User Manual. 

Anyone would have a suggestion to integrate it in a project that would be compatible with SuperCard Beta, SuperCard Suite and also SuperCard Player?

Regards

André Tremblay
PhotoGraphex

codegreen

unread,
Apr 3, 2019, 3:25:19 PM4/3/19
to SuperCard Discussion
On Wednesday, April 3, 2019 at 1:55:13 PM UTC-4, andre.tremblay wrote:
Anyone would have a suggestion to integrate it in a project that would be compatible with SuperCard Beta, SuperCard Suite and also SuperCard Player?

Something like this maybe?

on testExpiration

  get the expirationDate

  if it = "Never" then exit script

  convert it to seconds

  subtract the seconds from it

  local secsPerDay = 24 * 3600

  if it < secsPerDay then alert caution "This beta is about to expire!" explain "It will stop working on" && the expirationDate

  else put merge("This beta expires in [[it div secsPerDay]] days (on [[the expirationDate]])")

end testExpiration


This version is a bit heavy-handed (for example you could easily modify it to whinge only once per day, or to hide the msg box again after a short delay, or whatever) but it demonstrates the basic strategy. 

Call something like this from your openProject handler and a beta timeout should never take you by surprise again...

HTH,
-Mark
 

andre.tremblay

unread,
Apr 4, 2019, 9:20:03 PM4/4/19
to SuperCard Discussion


Le mercredi 3 avril 2019 15:25:19 UTC-4, codegreen a écrit :
 

  if it = "Never" then exit script


“Never”, that is the piece of SuperCard glossary that was missing for my understanding! 

Thank you so much for your script exemple! I will integrate it to my project, as time count and on opening the project, 

My regards

André Tremblay
PhotoGraphex
Reply all
Reply to author
Forward
0 new messages