0

I'm storing a data file in the resource directory of a RealBasic app. But how do I programmatically locate it?

I've looked through the SpecialFolder classes, but found nothing useful.

The app will be OS X only, so I don't need to take care of multiplatform issues.

Thanks!

Yvan

friedkiwi
  • 2,158
  • 8
  • 29
  • 52

2 Answers2

1

try app.executablefile.parent.parent.child("Resources")

npalardy
  • 61
  • 1
1

If you have the MonkeyBread Software plugins you can use this:

  dim f as FolderItem 
  f = app.BundleResourceFolderMBS

which I think is much easier to understand.

BKeeney Software
  • 1,299
  • 6
  • 8