[quote=302295:@Michel Bujardet]I see. Then the logic would be to place the file in the Documents folder, within a subfolder by the name of your app.
This is done by simply creating the subfolder and copying the file from the bundle the first time the app is run. Drag the file into the project, so it is in the Resources subfolder of the bundle. Use Tim Parnell’s TPSF class to point to it, then use copyFileTo to place it in Documents.
It is far from being out of this world. Off the top of my head :
[code]Dim f as folderItem
f = TPSF.Resources.child(“myfile”)
dim dest as folderItem = specialFolder.Documents.child(“myApp”)
if not dest.exists then
dest.createasfolder
end if
f.copyfileTo(dest)
[/code]
Interestingly enough, this code is perfectly cross-platform, and will work just as well on Windows.[/quote]
Maybe I should just not ship the text file at all with my App and have it available as a separate download and the user can stick it in the folder beside my Program, would that work? I already have a facility within my program for the user to choose a path to the file, as the particular text file has uses by other programs.
I also ship separately add on “driver” programs that communicate using sockets with my main program that the user has to plonk into the folder along with the program.
I know this all sounds rather crude, but it was written last century and has worked well in dozens of countries around the world. The only guy that has a problem is the Japanese user who has Sierra.
You probably wonder what devilish hobby this all relates to, it is amateur “ham” radio, specifically “Moonbounce” and the software is used to calculate the moon and sun and other cosmic sources positions, pathloss, allow scheduling between stations, that is calculate mutual Moon windows. It has maps showing Moon footprint. It also has the ability to use realtime position of the target object and control a number of different computer controlled rotator systems via serial links, so that antennas can track the moon, sun etc. The software has grown over the years from something very small that just ran on a classic Mac system into a multi platform program. I dread to think how much time I spent developing it in my spare time. It still sells despite there being some free programs that do something similar, but are generally one platform only.
I handle all the orders via PayPal, and email out registration codes manually. Being shareware try before you buy gives the user a chance to make sure it runs and does what they want and if not they don’t order the registration code, but can use it in demo mode which has a few limitations in terms of session time.
I frequently added new rotator driver programs as users requested them, hardly any 2 manufacturers use the same protocols. I don’t charge for the rotator drivers, they are free to all registered users. I don’t charge for any updates to the software. I used to charge for licences for different platforms, but have even stopped that.
As anyone who is involved in shareware knows, the user especially the Windows user, frequently loses their registration code (their hard drive broke), despite being warned to write it down somewhere, and a great deal of time is spent resending details to users. I don’t charge for that either, but probably could and should.
So, they get a pretty good deal for 35 UKP I feel. I pay PayPal fees, and the taxman gets his share as well. So I am not making a living from this, I am lucky if it pays for Xojo licence. It’s a true labour of love. It’s not something that is suitable for the Mac App Store.