Check for a local file - if it isn't there you can be sure that it is the first time the app has been launched. After you ask your user your questions, write the file. On subsequent launches when you check for the file...it's there, so skip the questions.
So on openstack do: put specialfolderpath ("documents") & "/" &"firstlaunch.txt" into pathToLaunchFile if there is not a file pathToLaunchFile then askYouQuestions set the defaultFolder to specialFolderPath("Documents") put "1" into URL (("file:firstlaunch.txt")) else doSomethingElse end if Gerry -- photos: http://gerryorkin.com On Sunday, 17 April 2011 at 4:42 PM, Maarten Koopmans wrote: > Hi, > > Is there a best practice for checking if the application is on a > first run for a standalone(especially one that will go to an App store > eventually)? > > I simply need to ask the user a few questions on first run (and set up > a sqlite db). > > Best, Maarten > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode