Timeline for How to create an OSX Application to wrap a call to a shell script?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22, 2015 at 15:55 | history | edited | markhunte | CC BY-SA 3.0 |
added 341 characters in body
|
Aug 22, 2015 at 15:27 | comment | added | markhunte |
@emptyset try do shell script "cd " & quoted form of (POSIX path of current_path) & " ; " & quoted form of "java -jar app.jar"
|
|
Aug 22, 2015 at 15:23 | comment | added | emptyset |
I tested it both ways: from command line: $ open Client.app and by double-clicking. Your version with invoking ls | open -fe works, but when I change it to java -jar app.jar it's giving me that error.
|
|
Aug 22, 2015 at 12:56 | comment | added | markhunte |
@emptyset I call open Client.app Is this the Automator app. From what I understand in the automator you have the applescript code: do shell script "cd " & quoted form of (POSIX path of current_path) & " ;\"java -jar app.jar\"" . So where are you using the open command ? which as far as I understand what you are doing, you do not need to use it. The clients will be using double click on the app and the app will run the java
|
|
Aug 22, 2015 at 12:07 | comment | added | emptyset |
Note that opening Client.app from Finder (double-click) also results in the same PowerPC error pop-up.
|
|
Aug 22, 2015 at 12:06 | comment | added | emptyset |
This is very close to a solution; I confirm the ls | open code definitely opens the directory I want, which is great. But when I call open Client.app , I get: LSOpenURLsWithRole() failed with error -10665 for the file <path-to-Client.app> - a few searches for what this error means suggested a permission issue, I checked and +x flags are set. I also tried this, and that didn't work (with same error).
|
|
Aug 21, 2015 at 7:17 | history | edited | markhunte | CC BY-SA 3.0 |
added 141 characters in body
|
Aug 16, 2015 at 1:38 | history | edited | markhunte | CC BY-SA 3.0 |
added 37 characters in body
|
Aug 16, 2015 at 1:32 | history | answered | markhunte | CC BY-SA 3.0 |