Saving data in List Magic tables
cszasz at mac.com
Thu Aug 5 11:58:14 CDT 2010
I am sorry to open this can of worms! The apps I made in the past were ones that did only computations where no data was saved. And, recently I learned about creating, saving and reading Prefs!
My current app is the only one that has LM tables where information have to be saved for these tables within the app itself. Otherwise, data files created by my app are saved as data files in documents. So, I will go ahead and use Application Support to put my app.
cszasz at mac.com
On Aug 5, 2010, at 12:45 PM, Richard Gaskin [via Runtime Revolution] wrote:
> charles61 wrote:
> > After going to Key Ray's site, I found "asup" as code for Application
> > Support constant for OS X. Is this the best place to put your app
> > when you install it on an user's OS X computer?
> Now you've gone an opened up a can of worms, Charles! :)
> This question touches on a few issues, but let's handle the small one first:
> If you want to save DATA (not the app, we'll get to that in a moment) to
> the Application Data folder, you need to decide which one. There's a
> system-wide one in the System folder, and a user-specific one in the
> user's Library folder.
> The system-wide one can be useful for data which will be used by all
> users on that machine:
> get specialFolderPath("asup")
> There is no special constant for the user's App Support folder, but you
> can get it by concatenating the user folder with the App Support folder:
> get specialFolderPath("home")& specialFolderPath("asup")
> But that's for data only. And Apple gets somewhat specific about
> *which* data should go there - see this overview of "Where to put
> application files":
> In short, they suggest using the Preferences folder for prefs data, and
> Application Support for "any type of file that supports the application
> but is not required for the application to run."
> As for the application itself, it should go into the Applications folder
> on OS X and Program Files on Windows. But remember that modern versions
> of both OS X and Windows can restrict access to those folders for
> non-admin accounts.
> For Windows, any installer builder you use will allow an option for the
> user to elevate privileges to a level appropriate for installation, or
> if you're rolling your own you can use the option for setting User
> Access Control in Rev's Standalone Builder.
> On OS X, it's common to deliver apps in a DMG image file, so they user
> will be able to put it wherever they have permissions to do so.
> Once the app is installed, if the user doesn't have admin permissions
> the app may not be able to write to its own folder. So for things like
> your Reports stack, I would consider using Application Support on OS X
> and Application Data on Windows.
> Richard Gaskin
> Fourth World
> Rev training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com
> revJournal blog: http://revjournal.com/blog.irv
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> View message @ http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315129.html
> To unsubscribe from Saving data in List Magic tables, click here.
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315148.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode