Using the script editor I encountered an error with one of the options suggested by code completion feature. It was for the ‘dispatch’ command’s 4th item in the code completion popup menu – dispatching a message to a target object along with parameters(argumentList).
What happened
-
I started to type the ‘dispatch’ command
-
As expected the popup menu appeared with options for completing the ‘dispatch’ command.
-
However, the last option in this pop up had a typo. it said:
`dispatch message to targetwith argumentList`
-
-
I thought this might be just a cosmetic issue with the popup menu. I did a test to show that was not true.
- I selected the last item in the menu and it was pasted to the editor.
- It was written the same way as the popup menu with the error.
- This of course triggered a compilation error in the script editor.
-
-
Workaround
- type ‘dispatch’ on a new line of the script editor
- select the 4th item in the context menu - ‘dispatch message to targetwith argumentList’
- the suggested text is inserted into the script editor
- edit the line by adding a space between ‘target’ & ‘with’
The message I typed at 5:00 am was really badly written.
Re-reading now at 8:50 am I see that now, so I have edited it for grammar, spelling, clarity and what ever else I was doing at 5:00 in the morning.