Question
· Aug 18, 2016

How to run mac routines from terminal?

I wrote a macro in studio. Its how to run with Terminal.

do macro name ^filename is correct are not

Discussion (1)0
Log in or sign up to continue

Why do you name it macro ?
Maybe you mean MAC routine ?

I highly recommend to read this tutorial about CacheObjectScript

usually you can call routine by simple command

do ^routine

but sometime you need to call directly to concrete label in that routine

do label^routine()

but in this case if you use curly brace style, you should public such method in routine

label() public {
 write "Hello World!"
​}

or in old style

label()
 write "Hello world!"
 quit