Hi folks,
I haven't tinkered with my macros in quite a while. Today I was trying to
write a project method that returns some text. The idea being to run the
method from a macro and plug the result directly into the method being
edited. Here's the what I was working with:
<macro name="resdoc_add"
version="2"
in_menu="true"
type_ahead="true"
type_ahead_text="rd1">
<text><method>resdoc_macro(<selection/>)</method></text>
</macro>

Is this possible?

I found some examples on Miyako's github where he would do something
similar but then put the result into the clipboard. So, I thought, I guess
that's what I have to do. So I changed the method to put the result into
the clipboard and then attempted to get the clipboard within the macro:
<macro name="resdoc_add"
version="2"
in_menu="true"
type_ahead="true"
type_ahead_text="rd1">
<text><method>resdoc_macro(<selection/>)</method></text>

<clipboard/>

</macro>

​My thinking here is, put the text into the clipboard and then get the
clipboard. This doesn't work (v15.5).

What does work is running the macro (puts the text into the clipboard) and
the pasting manually. Adequate in this case but I'm thinking I must be
missing something. Here's hoping one of you macro aficionados can help me
out. ​

Thanks

-- 
Kirk Brooks
San Francisco, CA
=======================

*We go vote - they go home*
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to