Help with 4D_Plugin_Wizard Import from Plugin

Hi All,

I am running the 4D_Plugin_Wizard in 4D v15.2 (Mac) with a brand new Project. I am trying to save some time by importing the myPlugin.rsrc file.

I am looking for in a previous plugin (one running in a production app) and the program sees it but it is always disabled and non-selectable. I’ve looked at the source and it does have the proper extension.

In my “live” plugin the path is:

myApp\Plugin.bundle/Contents/Resources/myPlugin.rsrc

So the problem is that the file is always disabled and cannot be selelected.

Any suggestions?

Thanks,
John…

Hi All,

I had some success (although with a bug).

I wondered if a the wizard being in 4D v15 and the Plugin being in 4D v17 was the issue. So I updated the wizard using 4D v17 32-bit (and the 4D Write plugin) and then it was able to see the .rsrc file.

As I said there is a bug in RSR_Import starting L#74:

What appears to be happening is that when $cpt is equate to Size of array($MyTab) then this line breaks because of an “indice out of range” error:

[Commands]Theme:=$ThId{$MyBlob{$cpt-1}+1}

Has anyone seen and fixed this error. I’m not to keen on Blob manipulation.

Appreciate,
John…

I would say someone added a new command to that plugin but didn’t add corresponding entry to “FON#” resource.
Just change the preceding If on line 73 to:

If (BLOB size($myBlob)>=$cpt)

Hi Milo,

Makes sense.

Thanks,
John…

you can change .rsrc to .rsr to make the file selectable.

Hi Miyako,

Thank you!

I’ll give that a try.

Appreciate,
John…