Identifying App folder Redux

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Identifying App folder Redux

Post by bogs » Thu Feb 06, 2020 9:44 pm

jmk_phd wrote:
Thu Feb 06, 2020 9:28 pm
-- I'm still inclined to cut my losses by storing the resources in the Documents folder.
That is certainly the way I'd go, if you don't want to worry about which OS your writing for ...
Dictionary wrote: specialFolderPath("Documents") is listed for -
Windows folder names, #3:
"documents": The current user's "My Documents" folder
On Mac OS systems, #4:
"documents": The current user's documents folder
On iOS systems, only create files in the "documents", "cache" and "temporary" folders.
"documents": The folder in which document data should be stored (backed up by iTunes on sync)
On Android systems, note that the file system is case-sensitive.
"documents": The folder where application-specific data can be placed (typically valuable)
On Linux systems, the following folderIdentifier values are supported:
"home": The current user's home folder
LOL, of course, Linux can't be trusted to run that way at all, good thing you don't write for that one :P
Image

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Identifying App folder Redux

Post by jacque » Thu Feb 06, 2020 10:08 pm

Using the documents folder isn't just for mobile apps any more, desktop OSs are becoming more and more sensitive to file permissions due to malware prevention.

I think your update plan is solid. In fact, it sounds like it would be pretty easy to auto-update the few small files. Provide an Update button somewhere in the app, then download the files from your server and copy them over to the documents folder. They'd automatically replace any existing ones there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Mac OS”