The string passed to resolve contains "//scripted-plugin [@id=2988]", and as far as I know, InDesign "Scripted Plug-ins" is a Rorohico's concept used in APID ToolAssistant (http://www.rorohiko.com/indesignscriptedplugins.html).
So maybe Kris Coppieters from Rorohico could help you. Its Twitter account is: http://twitter.com/zwettemaan
Anyway the code:
var thItem = resolve("/document[@name=¥"Shenhui_01_Intro_a.indd¥"]//scripted-plugin [@id=2988]");
is really a strange thing to me!
I think it would be better to have:
var thItem = resolve('/document[@name="Shenhui_01_Intro_a.indd"]//scripted-plugin[@id=2988]');
Kris from Rorohiko here. By the looks of it, that's an error that pops out of APID ToolAssistant - but it is not originating from APID ToolAssistant. Let me explain:
APID ToolAssistant is a utility plug-in used by script- and plug-in developers, and the error you see is what you'd see if someone created a script or plug-in that relies on APID ToolAssistant, and that script or plug-in has an error in it.
So, my guess is that
a) You have APID ToolAssistant installed (and as far as I can tell, an older version. From 1.0.48 onwards, that particular bit of code does not exist in APID ToolAssistant).
b) You additionally have an .spln file installed, or a script that uses APID ToolAssistant.
If that's the case, that .spln file or script most probably has an error, and you need to find the author of it to fix it (it might be one of our .spln files, or it might be someone else's).
A crude way to fix this would be to simply remove APID ToolAssistant from your plug-ins folder. That'll silence the wayward script code.
If it is one of our .spln files, please contact email@example.com with more details, so we can investigate.
The code is from an older version of APID ToolAssistant. However, it is not so strange - remember, the yen-signs are actually backslashes.
a = "This \" is in the middle of a string";
The double quote in the middle of the string is escaped with a backslash, and this kind of code works fine.
Of course you're right, Kris ;-)
I was confused by the fact that ¥ may actually represent a backslash.
Dear Marc and Kris,
Thank you *very* much for your speedy and helpful replies. I've eliminated the old APID ToolAssistant and plugins, and the offending message has disappeared! Wheee!
Naturally, I really like some of the Rorohico plugins, so I downloaded a number of the current versions and will experiment with putting them back.
Once again, thanks!
P.S. You should also give thanks to Harbs - he's keeping an eye on things and alerted me to this post. When I am very busy with custom development, I don't normally come and check out the forums, so without him, I'd never have known