Don't use unlink. Try to check this with update() otherwise "linkstatus"
It will work...
The thing is that I do want to embed the linked files.
When I run the embed command in InDesign it will error, therefore I should be able to catch the error description and throw it back to the user.
The script should then exit, allowing the user to put the problem right.
It did report the error once, but has since stopped producing the message for that doc on subsequent runs of the js.
Am I missing something?
catch ( thiserror )
Tried that too...again the alert doesn't show. I'm using CS3 and where I know the line
works if the link is available and using the embed menu item from Links throws an error, I still can't get this error back to the JS.
Just wondering if it's better to try an 'if' instead....?
Hi again Ramkumar
As it happens, your way to do this was the only one really.
Even though unlinking or embedding does throw up errors, they cannot be caught by 'catch'...
So we have to
Pretty maddening really as you'd expect all commands to act the same. Ah well "C'est la vie" as the English say!