09-23-2014, 06:31 PM
Running as user seems to be the trick--partially. (._getactive does not work but ._create does--when running as user).
The following code runs without error--yay, partial success! But, it also does nothing. (It should delete selected text.)
Interestingly it does output the correct count of currently selected items, but does not delete them.
Here's working VB code:
The following code runs without error--yay, partial success! But, it also does nothing. (It should delete selected text.)
IDispatch oidApp._create("InDesign.Application")
IDispatch oidDoc=oidApp.ActiveDocument
out oidApp.Selection.Count
oidApp.Selection[0].Delete
Interestingly it does output the correct count of currently selected items, but does not delete them.
Here's working VB code: