Skip to content

Commit

Permalink
make new applescript compatible (#16)
Browse files Browse the repository at this point in the history
* make compatible with new apple script
  • Loading branch information
SimonTheLeg committed May 15, 2019
1 parent 00b4714 commit 94e13c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -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
Expand Down
12 changes: 4 additions & 8 deletions applescriptHandler.go
Expand Up @@ -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)

Expand Down

0 comments on commit 94e13c6

Please sign in to comment.