Skip to content

Commit

Permalink
Merge pull request #128 from ncaminh/master
Browse files Browse the repository at this point in the history
Add script for Mac 2
  • Loading branch information
ncaminh committed Apr 5, 2018
2 parents 2b8998f + 7b68d87 commit 8311db6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,12 @@ public void startApp(Stage primaryStage) {
private void readWelcomeMessage() {
try {
Runtime.getRuntime().exec("wscript src\\main\\resources\\scripts\\Welcome.vbs");
//Runtime.getRuntime().exec("osascript src\\main\\resources\\scripts\\WelcomeMac.scpt");
} catch (IOException e) {
System.out.println("Unable to load welcome message.");
try {
Runtime.getRuntime().exec("osascript src\\main\\resources\\scripts\\WelcomeMac.scpt");
} catch (IOException e1) {
logger.warning("Unable to load welcome message.");
}
}
}
//@@author
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/seedu/address/ui/BrowserPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ private void readPersonName(Person person) {
try {
Runtime.getRuntime().exec("wscript src\\main\\resources\\scripts\\ClickOnNameCard.vbs"
+ " " + person.getName().fullName);
//Runtime.getRuntime().exec("osascript src\\main\\resources\\scripts\\ClickOnNameCardMac.scpt"
// + " " + person.getName().fullName);
} catch (IOException e) {
System.out.println("Unable to read person name");
try {
Runtime.getRuntime().exec("osascript src\\main\\resources\\scripts\\ClickOnNameCardMac.scpt"
+ " " + person.getName().fullName);
} catch (IOException e1) {
logger.warning("Unable to load welcome message.");
}
}
}
//@@author
Expand Down

0 comments on commit 8311db6

Please sign in to comment.