Skip to content

Commit 51b6694

Browse files
committed
Merge branch 'feature' into main
2 parents af48fa1 + eeffa49 commit 51b6694

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
1.6.15: Fixed crash when error handling after sending applescript command
12
1.6.14: Bypass osascript. This eliminates the need for forking a child process
23
1.6.13: Fixed switching spaces when clicking to the right of a fullscreen space
34
1.6.12: Edit space name directly in preferences

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The menu shows a list of space names. Selecting one will cause Spaceman to switc
5555

5656
<img src="Images/Menu.png" width="auto" height="auto">
5757

58-
Spaceman switches spaces by sending a keyboard shortcut to Mission Control using `osascript`.
58+
Spaceman switches spaces by sending a keyboard shortcut to Mission Control using Applescript.
5959
Note that only the first ten spaces will have shortcut keys assigned.
6060
For extra spaces, switching will not be available; the status bar icon will flash if
6161
selected, and the menu option will be disabled.

Spaceman.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
466466
CODE_SIGN_STYLE = Manual;
467467
COMBINE_HIDPI_IMAGES = YES;
468-
CURRENT_PROJECT_VERSION = 1.6.14;
468+
CURRENT_PROJECT_VERSION = 1.6.15;
469469
DEAD_CODE_STRIPPING = YES;
470470
DEVELOPMENT_ASSET_PATHS = "\"Spaceman/Preview Content\"";
471471
DEVELOPMENT_TEAM = "";
@@ -480,7 +480,7 @@
480480
"@executable_path/../Frameworks",
481481
);
482482
MACOSX_DEPLOYMENT_TARGET = 11.0;
483-
MARKETING_VERSION = 1.6.14;
483+
MARKETING_VERSION = 1.6.15;
484484
PRODUCT_BUNDLE_IDENTIFIER = dev.ruittenb.Spaceman;
485485
PRODUCT_NAME = "$(TARGET_NAME)";
486486
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -499,7 +499,7 @@
499499
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
500500
CODE_SIGN_STYLE = Manual;
501501
COMBINE_HIDPI_IMAGES = YES;
502-
CURRENT_PROJECT_VERSION = 1.6.14;
502+
CURRENT_PROJECT_VERSION = 1.6.15;
503503
DEAD_CODE_STRIPPING = YES;
504504
DEVELOPMENT_ASSET_PATHS = "\"Spaceman/Preview Content\"";
505505
DEVELOPMENT_TEAM = "";
@@ -514,7 +514,7 @@
514514
"@executable_path/../Frameworks",
515515
);
516516
MACOSX_DEPLOYMENT_TARGET = 11.0;
517-
MARKETING_VERSION = 1.6.14;
517+
MARKETING_VERSION = 1.6.15;
518518
PRODUCT_BUNDLE_IDENTIFIER = dev.ruittenb.Spaceman;
519519
PRODUCT_NAME = "$(TARGET_NAME)";
520520
PROVISIONING_PROFILE_SPECIFIER = "";

Spaceman/Helpers/SpaceSwitcher.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ class SpaceSwitcher {
2626
DispatchQueue.global(qos: .background).async {
2727
if let scriptObject = NSAppleScript(source: appleScript) {
2828
scriptObject.executeAndReturnError(&error)
29-
}
30-
if let errorBriefMessage = error![NSAppleScript.errorBriefMessage] as? String {
31-
self.alert(msg: "Error launching task: \(errorBriefMessage)\n")
29+
if error != nil {
30+
var errorBriefMessage: String = error?[NSAppleScript.errorBriefMessage] as! String
31+
self.alert(msg: "Error launching task: \(errorBriefMessage)\n")
32+
}
3233
}
3334
}
3435
}

0 commit comments

Comments
 (0)