Hi,
in the clipboard of OS X I have following information:
When was Peter born?
1956
The first line is the question, the second the answer.
In KM I use the following Applescript to split up this text to a variable that contains the question and another one that contains the answer:
try
set clipboardText to (clipboard as text)
set QuestionKM to paragraph 1 of clipboardText
set AnswerKM to paragraph 2 of clipboardText
tell application "Keyboard Maestro Engine"
make variable with properties {name:"Question", value:QuestionKM}
make variable with properties {name:"Answer", value:AnswerKM}
end tell
end try
In a further action of KM I can access the variable Question, but not the variable Answer. Neither by selecting it from the “Insert Token” menu, nor by %Variable%Answer%.
What’s wrong here? Thanks for any help!