I am exploring using the CreateSymbol.finish action in Symbol Organizer, to automatically re-organize the Symbols page when a new symbol has been created.
The issue I am running into is that when CreateSymbol.finish is triggered, within the function that is called, the symbol is not appearing in the array I am assembling...
var doc = MSDocument.currentDocument();
var page = doc.pages().filteredArrayUsingPredicate(NSPredicate.predicateWithFormat("name == %@","Symbols",pluginDomain)).firstObject();
var symbols = page.symbols();
The new symbol is not Symbols array. If I create another new symbol, the first one will get included in the organization, but still not the latest one...
I don't want to use documentData().allSymbols() as there may be symbols not on the Symbols page, which I want to ignore.
Am I not using CreateSymbol.finish properly? Or, is there another way to ensure the latest symbol created is included in the Symbols array?