quitとlaunchは、1つのブロックにまとめてしまうとだめなようです。
RestartSketchUp.scpt
if application "SketchUp" is running then tell application "SketchUp" to quit delay 2end iftell application "SketchUp" to launch```
More than 5 years have passed since last update.
quitとlaunchは、1つのブロックにまとめてしまうとだめなようです。
if application "SketchUp" is running then tell application "SketchUp" to quit delay 2end iftell application "SketchUp" to launch```
Register as a new user and use Qiita more conveniently