At present the Wiki says this:
I think I would have been a lot less confused if the Wiki had said something more like this:
At present the Wiki says this:
I think I would have been a lot less confused if the Wiki had said something more like this:
I agree, that would be clearer.
@peternlewis @JMichaelTX - can the wiki be updated along these lines please?
That will have to be a job for @peternlewis, since I barely understand KM Dictionaries, and almost never use them.
Keyboard Maestro's dictionaries are an extreme PITA to create and maintain.
I'd much rather use a plain text table or a JSON object.
-Chris
I would be more than happy to make the small suggested edit changes to the Wiki myself (but I don't think I have the privileges needed to do that?) as I have found the Dictionaries to be genuinely useful in the last week - having never tried them before. I am sure others would find uses for Dictionaries too and that many have probably given up at the first hurdle.
If you would like to post a Topic in the Wiki Category (sub-forum) with your proposed changes, I would be happy to apply them to the actual KM Wiki.
Thanks @JMichaelTX - I was just about to do that but see that @ccstone has gone ahead and made the changes to the Wiki.
The most confusing part in the Wiki before was the use of the word "name" in different parts of the explanation rather than "key". This is what gave me a headache the first time when I tried to read the explanation.
It was also confusing having the recall example straight away use a variable (which hadn't been referred to before). Not to mention the recall example being about people (who by coincidence also had "names")... rather than coffee prices...
Once the % symbols and [ and , are understood the final syntax is actually not that hard.
Also good to show that each Value has its own "Set Dictionary" Action - very similar to Setting a Variable.
And as a footnote I see that the AppleScript for setting Dictionaries has now been corrected:
So is the Wiki clear now?
Yes.
If the Wiki had been as it is now, I might not have had to ask the question which started this thread
I have finally put all this to use for my Macro - which is now in the Macro Library for anyone else to make use of. It has been fun to do but taken quite a time. It would have been fairly easy to make something just to work for me.. The challenge was to make it robust and simple enough that others could use it too. Thanks for your help guys.
So, I joined this forum yesterday and came across this post, and had an issue with what someone posted about not having access to input and output data in array - I went right to work... without reading on. Now that I finished building my "point" I decided to read through. Well, it's a little late, and although you have your solution, I built it, so here's what I have for you.
ARRAY EXAMPLE AND DISPLAY.kmmacros (31.4 KB)
Just run it for demo
Lesson learned - I will read through a post before responding