RR 2.9.0-dp-2 & VBscript

Ton Kuypers tkuypers at dmp-int.com
Wed Dec 5 19:58:54 EST 2007


Hi Phil,

Thanks, already tried that, but no luck... 2 lines work fine, adding  
a third line (with a valid command) gives an execution error...


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



On 6-dec-07, at 01:12, Phil Davis wrote:

> Hi Ton,
>
> Sometimes I have trouble seeing my own syntax "issues' in inline- 
> built scripts like yours, so I store the script as a whole in a  
> custom property, then get it and use it as needed. If there are run- 
> time variations needed in the script, I use "[[placeholder]]" or  
> some similar tag in the stored script and then
>
>    replace "[[placeholder]]" with <whatever> in tMyScript
>
> Maybe that will work in your case!
>
> Phil Davis
>
>
>
> Ton Kuypers wrote:
>> 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
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list