On 5-aug-08, at 05:12, Micah Woods wrote:
> <plug-in>_Version( "Product" ) // returns name of the plug-in
For the Auto-Update mechanism, the server looks for a folder that
carries the name that you use in the first parameter in the
FMSAUC_UpdatePlugIn() function.
So you can call that folder whatever you want to call it, and that
specific version parameter as Dacons does is not really needed.
In my daily FileMaker development work, I'm in control of the server
folder situation, so I decide myself how the folders are named, and
know about those names in my AutoUpdate records.
It's nice to have the plugin function propose a name, but I consider
this as an optional feature.
Regarding the version digits, the server uses that in the second
parameter in the FMSAUC_UpdatePlugIn() function.
To be really sure it will not interfere with the OS's name space for
folders, please let's not use any separators, because the plug-in has
to be found in a sub-folder carrying those digits as a name.
( no need to apologise Jake...:-) I'm sure us europeans make a few
eyebrows raise as well sometimes ... ; | )
On 5-aug-08, at 13:27, Jesse Barnum wrote:
> If everybody who is participating in this discussion were to approach
> the powers that be at FMI with a united plan, I really believe that
> they will listen and incorporate this feature. If that happened, I
> think that the overall plugin market would increase by at least
> double and probably much more than that.
People at FileMaker are reading this list. I know even Clay does. But
let's be practical and not hold our breath while waiting for a new
API. The problem exists now, and should be solved ASAP. If FileMaker
comes up with a better API in a few years from now, I will be very
happy. But that's about it.
Adding this very simple function solves the problem. Now.
I understand Jesse's skeptisism, but it takes as much effort to
propose a standard to FileMaker ( and hope for the best ) as to agree
on a standard among us ( getting things done ).
I'm skeptical as well, but in a slightly different way.
In reaction to other suggestions for more parameters:
Let's not take it to far. The only thing we need is a unified response
when performing the <pllugin>_AutoUpdateVersion(). That will do the
job. It's really the only functionality needed.
If a developer wants to add additional OPTIONAL parameters to provide
a superset of functionalities, that's OK, as long as it does not
interfere with the function call without parameters.
Optional parameters could be <plugin>_AutoUpdateVersion("Name"),
<plugin>_AutoUpdateVersion("blah") or whatever, the function would
still remain compatible with the agreed upon simple standard.
To answe to Kent's poll:
1) New function call v's parameter on existing 'Version' function
1a) <plugin>_AutoUpdateVersion()
2a) 01029900
The reason for my choices:
- a new function does not interfere with any code I've written earlier
for the existing <plugin>_version function, so I will not be
introducing new bugs there
- "AutoUpdate" says what the function is for, I know other names will
also work, but let's not loose ourselves in choosing the absolutely
perfect name
- I prefer the trailing zero for a level 1 version digit < 10, it
emphasises the structure and does not interfere with version
comparisions, as Jake said already.
PS: I like the suggestion made by ( who was it? ) to cook up some
sample code. It always takes me ages to write just a few lines of c
code.