actionstojavascript not working

Discussion of the xtools Toolkit

Moderators: Tom, Kukurykus

rhytha

actionstojavascript not working

Post by rhytha »

I changed a little for the plugin to popup, since the code you pasted did'nt make it pop-up.

But the text and font are grabbled, while the font size did come out correctly.

I have extendedscript toolkit2 , do you want any specific info from that for debugging.

Code: Select all// Photofont Start
  function step3(enabled, withDialog) {
    if (enabled != undefined && !enabled)
      return;
    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
    var desc1 = new ActionDescriptor();
    var id4 = charIDToTypeID( "Txt " );
    desc1.putString( id4, "123123" );
    var id5 = charIDToTypeID( "FntN" );
    desc1.putString( id5, "TEST3" );
    var id6 = charIDToTypeID( "Hght" );
    desc1.putInteger( id6, 150 );
//    desc1.putString(cTID('Txt '), "B");
   //alert(desc1.getString(cTID('Txt ')));
   // desc1.putString(cTID('FntN'), "TEST3");
   //alert(desc1.getString(cTID('FntN')));
    //desc1.putInteger(cTID('Hght'), 48);
   //alert(desc1.getString(cTID('Hght')));
    executeAction(1885881905, desc1, dialogMode);
  };



thanks for helping me out.
xbytor

actionstojavascript not working

Post by xbytor »

You should really change the font name to "ChocolateCream72" and try again.
That is my best guess as to why it's failing.
rhytha

actionstojavascript not working

Post by rhytha »

Hi X Bytor.

I used ChocolateCream72, but no luck

Using xTools i exported a action as XML, how do i execute it, i mean the XML i am thinking of using the XML method to automate this if it works.

So i have the XML, how do i execute, can you please guide me.

thanks
xbytor

actionstojavascript not working

Post by xbytor »

The XML is not executable. You have to convert it to a script or an action to run it.

The plugin seems to have problems being executed via Action Manager/SL code. I can't see any problems in the code so you may just have to call an action (that calls the plugin) from JSX .
rhytha

actionstojavascript not working

Post by rhytha »

actually i had the action all set and running, the only problem is i need to set this text in 12 images and i did'nt want the user to enter the text 12 times and hit submit to automate it.

Is there anyway of capturing the text once and useing it to apply to the plugin subsequently.

thanks
rhytha

actionstojavascript not working

Post by rhytha »

would a droplet calling a action with the text parameter work ??