on Feb 20th, 2017, 1:38pm, mavison wrote:
|Any clues what this problem might be caused by please? |
Not really. The only 'questionable' aspect of your code is that it appears not to be compatible with path names that contain spaces or other punctuation, but I would have expected paths of that kind to be less likely on a Mac rather than more so. Still, it would be desirable to add the necessary quotes for safety.
Some of the example programs do exactly what you are doing, and they work fine here. Notably clock.bbc (in the graphics folder) which contains the following code:
clock$ = @dir$ + "clock.bmp"
F% = OPENIN(clock$) : DIM clock% EXT#F% : CLOSE #F%
OSCLI "LOAD """ + clock$ + """ " + STR$~clock%
So one thing to check is whether clock.bbc works for you or not. If it doesn't, evidently the problem is related to some difference between your Mac and mine. If it does work you may want to investigate what the salient difference is between the two programs.