iMac Issues with asset location and paths

@jfperusse @sim - just a brief query on Codea on iMac - how do you incorporate graphic sources/files using, for example, readImage(path) ?

What is the assets directory on the Mac, can I load directly from the hard drive/desktop ?

Or - do I have to use iCloud, Dropbox etc ?

What are the addressing paths ?

Took me some time to figure this out! In the Finder on your Mac, go to the menu item:

Finder → Settings

Select “Sidebar”

Make sure “On My Mac” is selected

Then in the finder, when you choose “On My Mac” you will see a “Codea” folder that has all your projects locally

@sim - thanks for the reply, I have been limping along with this and managed but it has been restrictive not being able to cut and paste assets.

Whilst on this - is there any way, within Codea, to lock the Codea screen size ? There must be OS routines to do that as I’ve seen it in other Mac applications. That would enable emulation of an iPad of any screen size on a Mac.

Second thought, you may also consider this for the iPad, to enable editor features like changing background colour, text size, font, and highlighting - the latter is almost impossible to use in dark mode on my iMac screen.

Thanks again.

@sim - long time since the first post on this but I can not find the ‘On My Mac’ link in Finder that you refer to finding where the Codea assets are stored. Is that a folder that you have created on your Mac ?

Could it possibly be related to the MacOS version - I’m on Sequoia (15.3.2 (24D81)) ?

You need to turn it on in the Finder Sidebar settings (see second screenshot in my original post)

@sim - there no such folder on my mac doesn’t show up in finder. Is it a folder you have added.

I have tried to access folders by using the Codea asset loading with sprite etc and no e of the folders in the root and finder list are accessible with the paths entered.

Are the assets just included in the Codea application folder itself ?

@sim - Hmmmm, looking deeper on this when you click on the readImage() link to include your asset path a finder window opens headed Assets with a narrow white heading containing [Co] Built-in. Below that are a range of resources ( includes the assets provided with Codea, what looks like the assets in Codea root and (in my case) a Documents folder).
It also includes the ability to add a folder (which doesn’t appear to work).
I am assuming that the ‘Built-in’ locale is incorporated into Codea to provide the Mac path to your assets/directories etc.

I can’t seem to use this, apart from the assets already provided. If it does work can you describe how ?

Does the folder not even show in your Finder sidebar settings pane? The one where you can turn on and off other sidebar items?

No, unless there is a facility to add Codea addressable folders the I don’t see a way of setting one up.