This content has been marked as final. Show 7 replies
In CS3, the user interaction level property moved to the script preferences object.
myInDesign.ScriptPreferences.UserInteractionLevel = UserInteractionLevel.idUserInteractionLevels.idNeverInteract
Ole, thanks for the quick reply. You know, I believe that I had that at some point, but the problem was that that statement gives me the following error:
Object required: 'UserInteractionLevels'
This whole thing has been a crazy mix of little errors and changes. Hard to track everything. Good news is that using the decimal value for idNeverInteract seems to get it working just fine. Any idea as to why the enumeration isn't working? Not too important as I'm running fine with the decimal value.
Are you running the script from inside InDesign (i.e., from the Scripts panel)? If so, then you shouldn't need the decimal value. If not, VBScript doesn't know anything about the enumeration, and you'll need to use the decimal form. If you're using a full version of VB or VBA, you'll need to add a reference to the Resources for Visual Basic.tlb file to the project before you can use the enumeration (if you are working with a project that has a reference to an older version of InDesign, you'll need to add a reference to the new version).
I am running from the scripts panel, so I'm not sure why it's not working correctly. I've tried it outside the system as well. I do have some latent CS2 folders and files on my computer, so there could be some sort of problem with that. I also have the full version of VB, so maybe I can work out the references inside of that.
Like I said, though, everything seems to work fine with the decimal value. Thanks again for all the help!
Can anyone tell me how to disable the alert and dialog box for indesign CS3 in vb script?
I have try to add the following code to my vb script:
myIndesing.ScriptPreferences.UserInteractionLevel=1699640946(Indesign still display missing Link alert box)
myIndesing.ScriptPreferences.UserInteractionLevel=idUserInteractionLevels.idNeverInteract( Indesign shows need object idUserInteractionLevels)
myIndesing.ScriptPreferences.UserInteractionLevel=idNeverInteract(Indesign shows values should be idUserInteractionLevels enumerator)
Vb script is running outside Indesign. Script will be automatically stop running when open a missing link document.
Pls. Help. Thank you!
Try spelling indesign the right way. Not like "indesing"