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.
1
0
347
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.
3
0
323
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.1k
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.0k
Jun ’21
Application initiated file copy command does not work in macOS Catalina &amp; Big Sur
Our application has a backup function that is initiated by a user. The backup function simply makes a copy of the data files to another target folder the user chooses. This function worked fine in Mojave but stopped working in Catalina and Big Sur. I understand that starting in Catalina, Apple introduced security features to ensure 3rd party applications protect their data. I did add the application to Full Disk Access and Files and Folders under System Preferences Security &amp;amp; Privacy. In retesting this backup function, it still does not allow the application to make a copy of the data files to another target folder. Any thoughts on what to try next?
5
0
722
Apr ’21