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?
Post
Replies
Boosts
Views
Activity
Hi All, I'm modifying a document and saving those changes to one drive folder. now i want to create a copy of that document into local folder. I want to get it done using AppleScript. I use finder app for creating copy from one folder to another folder if document exists in local folder. tell application "Finder" to duplicate sourcefile to destinationfolder with replacing here the document exists in one-drive folder and i want to create a temporary copy into local folder. Is there anyway to do it via finder app or shell scripts?
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
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
Hi, Is there anyway to embed chrome or chromium browser on swift app? I want to perform SSO login using chrome browser and browser should invoke redirect URL when it get response from the server. Currently this is implemented using wkwebvie? but customer wants this to be done using chrome browser. Can we do it?
Hi, The Application launches a Privileged XPC. To running Privileged tasks we use “AuthorizationCreate” AuthorizationCreate(_ rights: UnsafePointer?, _ environment: UnsafePointer?, _ flags: AuthorizationFlags, _ authorization: UnsafeMutablePointer<AuthorizationRef?>?) -> OSStatus which launches a authentication alert where we need to enter user name and password and it returns a AuthorizationRef , After receiving the “AuthorizationRef “ we pass the same AuthorizationRef to XPC while launching XPC via SMJobless SMJobBless(_ domain: CFString!, _ executableLabel: CFString, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged?>!) -> Bool The XPC is used to run Privileged tasks. Now I want to run my application on silent mode without any UI, using terminal. Is there any way to skip the authentication alert and get AuthorizationRef without any UI via terminal. The idea here is to uninstall the product silently using shell-script. So our app provides a silent mode which can be invoked from shell script. How do we handle privileged helper installation part? We are running shell-script using admin / sudo mode. Is there anyway to skip privileged mode instalation. prompt when we run the app from shell script? Thanks Majuj
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?
How do I debug privileged helper? Can someone point me to documentation ?
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)
Hi,
How do I clear recent apps list of Dock bar programmatically? When I uninstall product, i want to clear apps icon from recent apps list.
is there anyway to do it?
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
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?
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?
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
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 &amp; 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???