Hi,

I hope one of you has got Adobe InDesign CS2 installed, because I could use some help... It might be a bug in sending VB scripts from RR but maybe someone can confirm this of help me out...

When I send the following script to InDesign, the file is opened as expected:
on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2") & ")" & cr into vScript put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr after vScript
    do vScript as "vbscript"
    put the result
end mouseUp

When I add a line to this script, it gives an execution error:
on mouseUp
put "Set vIND = CreateObject(" & q("InDesign.Application.CS2") & ")" & cr into vScript put "vIND.ScriptPreferences.UserInteractionLevel = InDesign.idUserInteractionLevels.idNeverInteract" & cr after vScript put "Set vDoc = vIND.Open(" & q("C:\test.indd") & ")" & cr after vScript
    do vScript as "vbscript"
    put the result
end mouseUp

When I save the script as a file and try to run it from within InDesign, it works fine. And it doesn't matter what code I add to the script, it just doesn't work...

Anyone any ideas?


Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to