    

 ## On this page

  

 

 # getMacroScript

 Last update: 30.07.2026 

public [getMacroScript](get-macro-script.md)(macroName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)

get the script for a macro if the macro exists

#### Return

the macro script

#### Parameters

macroNamethe name of the macro