Use of Resources folder

Don’t use the path. Save a folderitem pointing to your folder in ApplicationData and use Child to get to the specific file in the folder.

app.StuffFldr = SpecialFolder.ApplicationData.Child(""OpVPdata" )

elsewhere,

f = app.StuffFldr.Child("some file")

I searched for that, but apparently I was looking in the wrong place.
Thanks to all who helped.

One more question: If it’s a Windows system, what do I do with the Libs folder that was created by the Xojo build?

Nothing. You keep them beside the application (or it will not work).

Is there any reason you don’t want to create an installer? That would automate all these tasks.

Installer are not really a Mac thing (even if there were some 25-30 years ago).

Since then, we move the application into the Applications folder and the Application do the job (looks what Xojo does at load time: create a Xojo folder, copy there the local LR, etc.).

I do not care about Installer. What I hate is msi files: you believe you downloaded the software and at load time you realize you only have a downloader application. If you do not have Internet at home, you are in the s***t :(. Now I know that I have to check the size of what I download… :frowning:
In the end, you downloaded the installer + the application !

Well, think about it. As I mentioned two days ago, in macOS the Resources and Library folders are created INSIDE your app. So if you move it around, they get to go along too. In Windows these are created by the IDE build step NEXT TO your .exe. So you either leave them there or move the whole lot around together.

I don’t know where you got that idea. I do want to create an installer, and I’m currently working on it. Thanks for supporting the idea.

A thing of the past? The last program I purchased for my Mac was TurboTax, and it had an installer.

Never heard about it. Think, Xojo do not have an Installer.

That said, this is your software, your vision.

Eventually, check all major software to know if they use an Installer / check if the concurent applications use one.

Windows apps use installers, Mac apps do not.

There is no need to use an installer on a Mac app and if I ever came across a Mac app inside an installer, it would be a really bad sign to me as a long-time Mac user.

There are a handful of apps on a Mac that would require an installer
One’s that installs KEXT’S or other low level system components often need an installer
But your average app doesnt need to do this and so should not require much more than a drag and drop “install” like the Xojo IDE does on macOS
Windows is a whole different game though and installers are common - if not expected. MS basically assumes you do ship your app with an installer.

What is the path to the Applications folder?

Curious why you’d need that ?

Typically on macOS it is “/Applications”

But a properly built DMG can actually craft a short cut that when you drag and drop puts the app in the right spot
Simple check out the Xojo dmg on macOS
When you open it it shows Xojo and an alias to the Applications folder that if you drag Xojo onto that alias it lands in the rght place on your system
Thats as close to the “right way” to do this as you get

And there are tools to help you create such a DMG (dropdmg and several others)

Well, then, how do I create that alias?

  1. get dropdmg and let it do most of the work
    https://c-command.com/dropdmg/

or 2) spend 5 seconds with google looking for “how to make dmg with alias to applications folder”

https://gist.github.com/jadeatucker/5382343

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwjBk-WfxOThAhUqslQKHUEEB6UQFjABegQIChAK&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8bkUMKX4cZ0&usg=AOvVaw3ZcjRClQUXJYgp8tI8FqID

http://chromasoft.blogspot.com/2010/02/building-dmg-installer-for-mac-simple.html

and I’m sure there are thousands of other links

[quote=433429:@Tim Hare]Don’t use the path. Save a folderitem pointing to your folder in ApplicationData and use Child to get to the specific file in the folder.

app.StuffFldr = SpecialFolder.ApplicationData.Child(""OpVPdata" )

elsewhere,

f = app.StuffFldr.Child("some file") [/quote]

dim app.StuffFldr as FolderItem ’ This gives a syntax error

StuffFldr is a property which you can’t dim.

Click on app. Select Add Property from the menu. Set the type to FolderItem. Set the name to StuffFlder (or whatever you want to call it).

I wrote:
app.VPdata = SpecialFolder.ApplicationData.child( “OpVPdata” )
Dest = app.VPdata.child( “Games” )
if Dest = nil then
Dest.CreateAsFolder
end if
x = CopyFileOrFolder( Source, Dest )

and I get “NilObjectException” on “Dest.CreateAsFolder”

OpVPdata is a folder that has been previously created in SpecialFolder.ApplicationData. The absolute path is Internal:Users:Dan:Library:Application Support:OpVPdata

Games is intended to be a sub-folder into which CopyFileOrFolder
is to copy several text files from Source.
Of course Dest is nil, indicating the need to create the Games folder.

What am I doing wrong?