Page 1 of 1

Run selection as macro behaviour

Posted: 2007-06-11 03:55:04
by js
In beta 2 The "open filepath" macro executes as expected: it opens the file on that path. But if you run a selection "open filepath" thru the 'Run selection as macro' command, the behaviour in beta 2 is different: The file is opend in the background. In beta 1 it was opened in the foreground. Why has this been changed?

(I used these "open filepath" lines of text to navigate thru documents: Let's say you have an open file and you would like to insert a link to another file you wrote earlier. Now you simply open that other file and use a macro that checks it's path, then closes it so that your original file is on top again, and have that macro enter the words "open" plus the filepath it had looked up, maybe marking that line with a dedicated color. Afterwards all you have to do is selecting it and use the 'Run selection as macro' command which of course should get an shortcut like cd-RR. It's very efficient, but now it does not work any more.)

Re: Run selection as macro behaviour

Posted: 2007-06-11 16:05:56
by martin
js wrote:The file is opend in the background. In beta 1 it was opened in the foreground. Why has this been changed?
It was not explicitly changed, however this is a side effect of us changing the behavior of the menu Run Selection as Macro. Now the document the selection rests in hidden at the start of the macro so the macro can affect whatever other document may be open. When the macro finishes the original document is shown again (which brings it to the foreground).

I will file a bug that any documents opened by a macro should stay on top of the original macro document.