Posts

Post not yet marked as solved
0 Replies
88 Views
Hi, I have a MacBook M1 chipset machine; clean setup with macOS Big Sur 11.6.7. Whenever an app try to access another app, system prompts an alert box with 'Don't Allow' & 'OK' buttons. When I click on 'OK' button or 'Don't Allow' button, nothing happens and the dialog remains there forever. What should be the problem? How do I fix this issue? Why system is not responding for user consent alert box actions (OK or Don't Allow)? Thanks -Maju
Posted
by maju.
Last updated
.
Post not yet marked as solved
15 Replies
3.6k Views
Hi,I'm gettng the below error when i try to staple app .Could not validate ticket for <path of app>The staple and validate action failed! Error 65.But i got confirmation mail from Apple saying that "Your Mac software has been notarized. You can now export this software and distribute it directly to users."When i try to staple it, it throws Error 65. What should be the problem and how do i resolve this issue?
Posted
by maju.
Last updated
.
Post not yet marked as solved
0 Replies
649 Views
Hi, I'm using the below command to get the processor name system_profiler SPHardwareDataType | grep 'Processor Name:' This command works fine on all machines. but in one of the machine, it never returns immediately and hangs for almost 180 seconds and returns. Why it hangs for 180 seconds and timeout? Even if I specify -timeout: 20 into system_profiler command, it timeout without any results after 20 seconds. The same command (with -timeout: 20 and without -timeout) works fine on other machines. The issue happens on a particular machine. Even when I run the command manually from terminal app, I see the same behaviour. What should be the issue? How do I figure out root cause of this issue? Is there any other way to get the processor name from the system?
Posted
by maju.
Last updated
.
Post marked as solved
10 Replies
1.7k Views
Hi, Is there anyway to notify or callback App from XPC service? XPC service is mentoring the state of an object and when its state is changed, i need tp notify the App. Is it possible? Thanks
Posted
by maju.
Last updated
.
Post not yet marked as solved
6 Replies
1k Views
Hi, How do I communicate between two apps on macOS. For example:- I There are 2 apps - App A and App B. App A wants to wait till App B complete an action. How do I check whether App B completed an action or not? Which inter process communication is best for implementing it ? Thanks
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
516 Views
Hi, How do I integrate custom framework into XPC Mach Service and access those functions part of custom framework ? I have created a XPC Mach service (executable) for providing services to other applications and registered it as launch agent (/Library/LaunchAgents). Service works fine with basic functionalities. I'm able to access services / protocol functions exposed by the Mach Service from another client application and able to retrieve data also from Mach service. But for certain actions , i need to integrate this XPC Mach service with a custom framework. Integrated in the following way: Select XPC Mach Service executable in project settings and click on General - Framework & Libraries Click on + symbol and specify the custom framework from the list and click on add button. Once it is added into project, open main.swift and import that framework and access the functions inside the framework. This works fine and compiler is not showing any errors when I build the project. When i try to access XPC Mach service function, it doesn't return any value. when i check the XPC status using 'launchctl list' command from the terminal, it shows status code as -6 and no process ID is associated for the service. If i remove the custom framework, it works fine. What should be the issue? how do i resolve it? can i integrate a custom framework into XPC mach service? This is a common framework used by our other apps. Any limitations???
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
3.7k Views
Hi, I need to download data as a file from blob: URL. My macOS app uses WKWebView control and hosts web page. This web page provides a link to export the contents of the page as a CSV file. webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void)  The above function returns blob: url. But I don't know how to convert/save blob: URL contents into a file. Is it possible to download contents using blob: URL? If so how do I download it?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
522 Views
Hi, Is it possible to hook drag and drop event from Apple Mail.app into wkwebview control? I have a sample app which hosts wkwebview control on a view controller. This webview can navigate and open any URL. Currently this webview is configured to show one of our internal website. Now when user drag and drop an e-mail from Apple Mail.app into wkwebview, web view should be able to hook that drop event and extract the selected message as .eml file and put into our site. is it possible to hook that drop event?
Posted
by maju.
Last updated
.
Post not yet marked as solved
0 Replies
463 Views
Hello All, I'm trying to add hyperlink inside powerpoint presentation. Here is the code snippet tell application "Microsoft PowerPoint" activate set aPres to active presentation set newSlides to slides of aPres set newSlide to item 1 of newSlides make new picture at newSlide with properties {file name:"/Users/majumadhusudanan/Downloads/insert_hyperlink.ico", height:100, width:100, lock aspect ratio:true} set sl to current presenter slide make new hyperlink at end of active presentation with properties {hyperlink address:@"google.com", type:"hyperlink range"} end tell But when i run the above script, script editor throws the below error: "Microsoft PowerPoint got an error: Can’t make class hyperlink." What should be the problem? How do i fix this issue? The goal here is to insert hyperlink at cursor point or selected object and link with text should display inside the slide. Thanks
Posted
by maju.
Last updated
.
Post marked as solved
6 Replies
678 Views
I have created a main app and added finder sync extension as the target for main app. When user click on a folder, requestforBadgeIdentifier() gets invoked, I'm able to show initial badge icon during that time. But I need to update the badge later based on some condition (synching process). Folder contents are synched using another process. Once synching is completed, I want to update the badges from that process. Can I invoke the below API from another process (not from finder sync extension)? FIFinderSyncController.default().setBadgeIdentifier("cloud", for: url)
Posted
by maju.
Last updated
.
Post marked as solved
3 Replies
1.2k Views
Hi, Is there anyway to select e-mails using AppleScript? I want to select e-mails and run some automation scripts from outlook app. We are able to do this for Apple Mail app. Can we do the same from Outlook app? Any help appreciated!!! Thanks
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
594 Views
How do I debug privileged helper? Can someone point me to documentation ?
Posted
by maju.
Last updated
.
Post not yet marked as solved
1 Replies
414 Views
Hi, Is there anyway to launch multiple instances of google chrome using the below API? let openConfig = NSWorkspace.OpenConfiguration() openConfig.promptsUserIfNeeded = true openConfig.activates = true openConfig.createsNewApplicationInstance = true if authURL != nil { ssoURL = "\(String(describing: authURL!.description))" openConfig.arguments = [ssoURL!] } NSWorkspace.shared.openApplication(at: appURL!,configuration: openConfig,completionHandler: appCompletionHandler) when i run the above code snippet, it opens new tab in running instance of google app. Is there anyway tp launch multipe instances of goolge app using swift libarry?
Posted
by maju.
Last updated
.