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.
Post
Replies
Boosts
Views
Activity
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.
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.
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!
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?
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 & 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?