On Jun 14, 2017, at 2:47 AM,Nigel Greenlee wrote:
> I think old age has crept up on me.
>
> I have some macros which I use in my development structure. I want those
> macros to work client server(i normally develop on single user).
>
> The Macros V2 folder is next to the .4db at the same level as plug ins,
> components folders etc. In Client server thie Macros V2 folder does not get
> copied to the client cache.
>
> I seem to remember tackling this before but cant find what i did and cant
> remember how to get the macros on the ’server’ to auto implement on the
> client.
>
> Thanks to anyone who can set me straight
The "Macros v2” currently lives at “~/Library/Application Support/4D/Macros
v2/“ on macOS. It is not automatically distributed to 4D Clients when running
4D Server. If you want this you have 2 options:
1. Put a copy of “Macros v2” in your “Resources” folder. That will get it
automatically to your 4D Client “Resources” folder. Then write some code to
move it to it’s final home at “~/Library/Application Support/4D/Macros v2/“ .
2. Put “Macros v2” folder in a component next to the .4DB or .4DC file. The
macro .xml will then be automatically distributed to 4D Client AND 4D will
integrate the macros with the other macros already on the 4D Client machine.
This allows you to include some macros with a component and 4D will recognize
them. It’s a feature most do not know about. I know it works because I’ve used
it in 2 of my own components.
Tim
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
**
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4d_tech-unsubscr...@lists.4d.com
**