5 Replies Latest reply on Aug 9, 2018 3:06 AM by Laubender

    How to load any PageItem into a placeGun or a contentPlacer?

    arthurdapaz Level 1

      Hello, I'm creating a ScriptUI dialog which retrieves text from a webserver.

       

      When the user clicks the "OK" button, I'd like to get this text loaded into a placeGun, or something like that.

       

      I mean, the user most choose the page position, by the mouse cursor, to place the retrieved text.

       

      It should behave the same way or similar to "File/Place" tool.

       

      Can someone point me a direction?

       

      There is a similar working proof of concept made by Laubender here. But it's not what I want.

       

      Atualizado

      My main ideia, on my tests were to check if this was possible:

       

      var txtFrame = app.selection[0];

      app.activeDocument.placeGuns.load(txtFrame);

      but it doesn't work.