Post

Replies

Boosts

Views

Activity

Apple Application Menu: "Quit <my application name>" event hanging
When going to the Apple Application menu (i.e. About, Services, Hide, Show All, Quit) and selecting "Quit ", it is causing my Java application to hang. It used to work but now I get the spinning wheel and the only way to close the application is to force quit it. Tried it on another system and it does the same thing. In debugging on the Java application side, this Quit operation does not trigger the main windowClosing() event. So, it is hanging the application somewhere upstream. Any ideas on where to check? My OSX is 11.6.2 Big Sur and Java version 16.0.1 2021-04-20.
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
453
Feb ’22
Apple Application Menu: "Quit <my application name>" event hanging
When going to the Apple Application menu (i.e. About, Services, Hide, Show All, Quit) and selecting "Quit ", it is causing my Java application to hang.    It used to work but now I get the spinning wheel and the only way to close the application is to force quit it.  Tried it on another system and it does the same thing. In debugging on the Java application side, this Quit operation does not trigger the main windowClosing() event.  So, it is hanging the application somewhere upstream.  Any ideas on where to check?   My OSX is 11.6.2 Big Sur and Java version 16.0.1 2021-04-20.
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
515
Feb ’22
Calling an AppleScript application from a Java Program
Code Example I am trying to call an AppleScript application from a Java program. I found this code example: package com.devdaily.mac.applescript; import java.io.IOException; public class MultilineAppleScriptTest { public static void main(String[] args) { new MultilineAppleScriptTest(); } public MultilineAppleScriptTest() { Runtime runtime = Runtime.getRuntime(); // an applescript command that is multiple lines long. // just create a java string, and remember the newline characters. String applescriptCommand = "tell app \"iTunes\"\n" + "activate\n" + "set sound volume to 40\n" + "set EQ enabled to true\n" + "play\n" + "end tell"; String[] args = { "osascript", "-e", applescriptCommand }; try { Process process = runtime.exec(args); } catch (IOException e) { e.printStackTrace(); } } } Problem When searching for the package "com.devdaily.mac.applescript" it references in Eclipse for installing new software, it does not find the package or even just searching for "applescript" in general. So, this must be a one off custom package the author created. Any ideas on locating this package OR do you know of any other examples I can try that performs a similar purpose? Thank you!
2
0
1.4k
Sep ’21
Issue with applying EV Code Signing Certificate on Big Sur (11.4)
Problem I am trying to code sign our application with an EV Code Signing Certificate. When I run this command: % codesign -s "Health Record Corporation" "MedKaz.app" I get the following warning / error message: Warning: unable to build chain to self-signed root for signer "Health Record Corporation" MedKaz.app: errSecInternalComponent % Keychain Access The Health Record Corporation certificate does show up under Certificates area in Keychain Access. I set the certificate to Always Trust in each category under the Trust section. However the certificate DOES NOT show up under My Certificates area. I think this is the issue which is causing the problem above (i.e. certificate should be visible in My Certificates) too. My attempts to resolve I rebooted my system and took out / put back in the secured certificate token USB drive that contains the certificate numerous times. No luck in showing up in My Certificates area. I tried this recommendation to disable System Integrity Protection in Big Sur but to no avail. Any ideas on how to resolve this problem?
15
0
3.8k
Jun ’21
Apple Application Menu: "Quit <my application name>" event hanging
When going to the Apple Application menu (i.e. About, Services, Hide, Show All, Quit) and selecting "Quit ", it is causing my Java application to hang. It used to work but now I get the spinning wheel and the only way to close the application is to force quit it. Tried it on another system and it does the same thing. In debugging on the Java application side, this Quit operation does not trigger the main windowClosing() event. So, it is hanging the application somewhere upstream. Any ideas on where to check? My OSX is 11.6.2 Big Sur and Java version 16.0.1 2021-04-20.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
3
Boosts
0
Views
453
Activity
Feb ’22
Apple Application Menu: "Quit <my application name>" event hanging
When going to the Apple Application menu (i.e. About, Services, Hide, Show All, Quit) and selecting "Quit ", it is causing my Java application to hang.    It used to work but now I get the spinning wheel and the only way to close the application is to force quit it.  Tried it on another system and it does the same thing. In debugging on the Java application side, this Quit operation does not trigger the main windowClosing() event.  So, it is hanging the application somewhere upstream.  Any ideas on where to check?   My OSX is 11.6.2 Big Sur and Java version 16.0.1 2021-04-20.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
1
Boosts
0
Views
515
Activity
Feb ’22
AppleScript Plist array of items creation example?
Looking for a simple AppleScript example of creating an array of string items (i.e. Item 0, Item 1, ... Item n) in a new plist file. Only have found an example of how to read an array item in an existing plist file and not the initial creation of the array of strings itself in a new property list. Appreciate the assistance.
Replies
1
Boosts
0
Views
832
Activity
Oct ’21
Calling an AppleScript application from a Java Program
Code Example I am trying to call an AppleScript application from a Java program. I found this code example: package com.devdaily.mac.applescript; import java.io.IOException; public class MultilineAppleScriptTest { public static void main(String[] args) { new MultilineAppleScriptTest(); } public MultilineAppleScriptTest() { Runtime runtime = Runtime.getRuntime(); // an applescript command that is multiple lines long. // just create a java string, and remember the newline characters. String applescriptCommand = "tell app \"iTunes\"\n" + "activate\n" + "set sound volume to 40\n" + "set EQ enabled to true\n" + "play\n" + "end tell"; String[] args = { "osascript", "-e", applescriptCommand }; try { Process process = runtime.exec(args); } catch (IOException e) { e.printStackTrace(); } } } Problem When searching for the package "com.devdaily.mac.applescript" it references in Eclipse for installing new software, it does not find the package or even just searching for "applescript" in general. So, this must be a one off custom package the author created. Any ideas on locating this package OR do you know of any other examples I can try that performs a similar purpose? Thank you!
Replies
2
Boosts
0
Views
1.4k
Activity
Sep ’21
Issue with applying EV Code Signing Certificate on Big Sur (11.4)
Problem I am trying to code sign our application with an EV Code Signing Certificate. When I run this command: % codesign -s "Health Record Corporation" "MedKaz.app" I get the following warning / error message: Warning: unable to build chain to self-signed root for signer "Health Record Corporation" MedKaz.app: errSecInternalComponent % Keychain Access The Health Record Corporation certificate does show up under Certificates area in Keychain Access. I set the certificate to Always Trust in each category under the Trust section. However the certificate DOES NOT show up under My Certificates area. I think this is the issue which is causing the problem above (i.e. certificate should be visible in My Certificates) too. My attempts to resolve I rebooted my system and took out / put back in the secured certificate token USB drive that contains the certificate numerous times. No luck in showing up in My Certificates area. I tried this recommendation to disable System Integrity Protection in Big Sur but to no avail. Any ideas on how to resolve this problem?
Replies
15
Boosts
0
Views
3.8k
Activity
Jun ’21