Get the last macro that was executed

Get the last macro that was executed

TK.421
Advisor Advisor
700 Views
4 Replies
Message 1 of 5

Get the last macro that was executed

TK.421
Advisor
Advisor

How can I find out the name or path of the last macro I ran?

 

thanks!

david

<><


the numbers never lie
0 Likes
Accepted solutions (1)
701 Views
4 Replies
Replies (4)
Message 2 of 5

TK.421
Advisor
Advisor
Accepted solution

so i came up with a round-about way of doing this. i call a function at the beginning of a macro to write that macro path to a temp file. then another macro can read it and execute it. yay me


the numbers never lie
Message 3 of 5

TK.421
Advisor
Advisor

thanks for your help, @TK.421 . you're really super!

 

xoxoxo


the numbers never lie
Message 4 of 5

Anonymous
Not applicable

When executing a macro file, we can use the project variable to record the path of the macro.

like this:

if not member($project._keys,'fullname') {
EDIT PAR CREATE STRING 'fullname'
}

$project.fullname = macro_path(TRUE)

 

These need to be written inside the file.

I hope I can help you.

Message 5 of 5

TK.421
Advisor
Advisor

thanks for the input, @Anonymous . However, I'm looking to be able to access that macro across multiple sessions.


the numbers never lie
0 Likes