Toolbar button that runs grasshopper script with grasshoppe player

Hi there,
I was wondering if it would be possible to run a predefined grasshopper script through a toolbar button with a small python script?
I guess i could use rs.command to run the grasshopperplayer, but i would like to avoid that i have to specify the grasshopper script each time.

Thanks,
Tom

Hi Tom -

You can simply assign a macro to a toolbar button:

-GrasshopperPlayer "[path]"

… where [path] is the full path to the Grasshopper file.
-wim