Missing "pad of" version inspector for OS X

Starting a new topic for this to try to get some more traction. It sure would be nice to have the “pad of” inspector available to use on OS X. Seems like a simple thing to add for getting more platform parity. It’s just simple string parsing and version comparisons, which are largely handled the same across platforms. Am I missing something?

Q: pad of ("1.0" as version)
E: The operator "pad" is not defined.

Use case:

Q: version of folder "/Applications/Microsoft Outlook.app"
A: 15.17

Q: version of folder "/Applications/Microsoft Outlook.app" < "15.17.1" as version
A: False

RFE: IBM Ideas

1 Like

I agree, it is annoying that this is missing.

This is an annoying sort-of work around: https://bigfix.me/relevance/details/2999215

I agree its annoying too. It would be a lot easier however to add if non Windows platforms didn’t allow alphanumeric versions :slight_smile:

But I think it is okay if it doesn’t work for non-numeric versions. We already know that we need to handle these situations in a special way, even on Windows this happens.

How does that change the way the padding works? Aren’t non-numerics already compared? By ASCII values?

Q: "a" as version > "b" as version
A: False

Q: "c" as version > "b" as version
A: True
Q: "b.b" as version > "b" as version
A: True

Q: "b.b" as version > "b.a" as version
A: True

Q: "b.a" as version > "b.b" as version
A: False

I think the issue is you can’t pad versions with non-numerics.

1 Like

Yep that’s the problem :slight_smile: