disable "doIt on save" in the script editor?

2 views
Skip to first unread message

PAUL DEBRUICKER

unread,
Mar 8, 2018, 2:23:13 PM3/8/18
to tod...@googlegroups.com
Hi Dale,


Sometimes when I'm making a script I don't want it to run when I save it. Can I disable that?

I mean

tode 1 > touch st myScript
tode 1 > edit myScript


.... add some code to myScript ....


save it, and the code runs.


I'd like to prevent it from running on save.


Thanks

Paul

Dale Henrichs

unread,
Mar 8, 2018, 2:29:51 PM3/8/18
to tod...@googlegroups.com
Paul,

Yeah .... that seems to be sorta fundamental to the way the .st scripts
were implemented ... I would say that you should use an `sh` script:

  touch sh myScript
  edit myScript

you get the same functionality as a .st script with the added bonus of
being able to pass command-line arguments into the script and having
help text so that you can document the script and remind yourself how to
run it ...

Dale
Reply all
Reply to author
Forward
0 new messages