diff --git a/.circleci/config.yml b/.circleci/config.yml index 9f2ebaa..dadd787 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2 references: app_name: &app_name deepwork - app_version: &app_version v0.6.1 + app_version: &app_version v0.6.2 artifacts_dir: &artifacts_dir /tmp/artifacts testres_dir: &testres_dir /tmp/test-results attach_artifacts: &attach_artifacts diff --git a/applescriptHandler.go b/applescriptHandler.go index c3a0e35..7a5f66d 100644 --- a/applescriptHandler.go +++ b/applescriptHandler.go @@ -31,14 +31,10 @@ end tell func CloseApp(appName string, reschan chan string, errchan chan error) func() { return func() { script := fmt.Sprintf(` -if exists application "%s" then - tell application "%s" - quit - end tell -else - error "could not close app '%s, because it cannot be found" -end if - `, appName, appName, appName) +tell application "%s" + quit +end tell +`, appName) err := executeAppleScript(script)