Meet Shortcuts for macOS

RSS for tag

Discuss the WWDC21 session Meet Shortcuts for macOS.

View Session

Posts under wwdc21-10232 tag

8 results found
Sort by:
Post marked as solved
90 Views

Cannot find type 'CreateTaskIntentHandling' in scope

I’m trying to implement the code like shown in the session but problems start early — there seems to be no such thing like a CreateTaskIntentHandling class even after importing Intents. Cannot find type 'CreateTaskIntentHandling' in scope What am I missing here? masOS Monterey Version 12.0 Beta (21A5506j) Xcode Version 13.0 RC (13A233)
Asked
by mrtn.
Last updated
.
Post not yet marked as solved
134 Views

Sending file parameters to a Shortcut on Monterey programmatically?

I'm trying to run Shortcuts programmatically on Monterey. My understanding is that the official API for this is via AppleScript to the Shortcuts Events process. I created a Shortcut that does Quicklook on the passed in file parameter. It works as a Finder action but I can't figure out how to get it to work when running it via AppleScript or Scripting Bridge. If I send a file, alias or POSIX file, I get a generic Shortcuts error 4. If I send a path as a string, it just does a preview of the string passed in, and not the contents of the file the path references. Anyone have any insight on how to get this working?
Asked
by Mr_Noodle.
Last updated
.
Post not yet marked as solved
216 Views

Custom intent extension not supported on xcode Version 13.0 beta4?

Hi, I'm trying to integrate shortcuts into my app, I knew there are 2 ways to do that, 1. Via main app. 2. Use an intent extension. When I use method 1 after I add an intent definition file and create a custom intent then specify "Supported Intents" in main app target and write the logic code in appdelegate, every thing works smoothly. But When I turned to intent extension, after I create an intent extension, it seems extension target doesn't support to specify the intent. Then I fill the configuration in intent extension manually, then build my app. I think the log should print like it did when I use main app method but it didn't. So I wonder that s this means current beta4 sdk not support custom intent extension on MACOS or I missed something? Thanks.
Asked
by Zack_10.
Last updated
.
Post marked as solved
347 Views

Mac Siri Shortcut not working

Hello, Created one demo for creating task. But it does not work properly. When execute Shortcut from 2021-06-16 16:18:07.947665+0530 TestTask[28602:364855] [logging-persist] cannot open file at line 45068 of [d880193994] 2021-06-16 16:18:07.947700+0530 TestTask[28602:364855] [logging-persist] os_unix.c:45068: (0) open(/var/db/DetachedSignatures) - Undefined error: 0 Not sure, reason behind it
Asked Last updated
.
Post not yet marked as solved
180 Views

Creating shortcut actions with Catalyst

We are trying to create shortcut actions with Catalyst. Our app is already available on Mac, and we integrated the intents framework on iOS. So according to the WWDC21 "Meet Shortcuts on macOS" presentation, "it's likely that [we] have compiled out [our] Intents integration in the process of coming to Mac". The presentations suggests to "make sure to audit your code to re-enable this functionality when running on macOS Monterey." We have not found how to "re-enable this functionality". Any suggestion on how to create shortcut actions for Mac in this situation ?
Asked
by ffsfgghh.
Last updated
.
Post not yet marked as solved
254 Views

MacOS shortcuts don't work in the latest beta

MacOS 12.0 Beta (21A5268h) Xcode Version 13.0 beta (13A5155e) First of all, the video doesn't even mention that I have to add the intents I want to handle to the Info.plist in an "Intents eligible for in-app handling" array (or the corresponding setting in the general section) but I'm pretty sure that is also required. So I created a single create intent (for my existing app) with no inputs and an URL output just to test out that my code is getting called when I expect it. When I create a shortcut including my action and try to run it, I will get the following error: "Could not run Dummy Create" "There was a problem with the app." and I see the following messages in "Console.app": No plugins found to match query {     IntentsSupported =     (         DummyCreateIntent     );     "LS:ExtensionPlatforms" =     (         1,         6     );     NSExtensionContainingApp = "/path/to/xcode/build/dir/MyApp.app";     NSExtensionPointName = "com.apple.intents-ui-service"; } -[WFAction runWithInput:userInterface:runningDelegate:variableSource:workQueue:completionHandler:]_block_invoke Action <WFHandleCustomIntentAction: 0x126acc850, identifier: com.example.myapp.DummyCreateIntent, parameters: 1> finished with error {domain: WFIntentExecutorErrorDomain, code: 100}. Error Domain=WFIntentExecutorErrorDomain Code=100 "There was a problem with the app." UserInfo={NSUnderlyingError=0x126964230 {Error Domain=NSOSStatusErrorDomain Code=-600 "procNotFound: no eligible process with specified descriptor"}, NSLocalizedFailureReason=Could not run Dummy Create, NSLocalizedDescription=There was a problem with the app.} (and some other, less interesting messages) If I remove it from the supported intents then running the shortcut will just silently fail instead of showing the error (I have a show result action connected to my action's output) and the console.app will only show the first message and not the second one. (My app delegate method never gets called in either case) If I add a parameter (files and allowing multiple selection, and set a file in the workflow), I will also only get the first message in console app and the shortcut will get stuck at 25% completion. If it's not included in the supported intents, it will just silently fail again. (The app delegate method also doesn't get called in both cases)
Asked Last updated
.
Post not yet marked as solved
173 Views

Find is continuously prompting error

Hi! I installed CISCO VPN and installation was complete but after installation, finder started prompting an error and it's not even stopping! Its very frustrating to see! I was not expecting Microsoft kind of bug in apple. Please treat this urgently its getting bad!
Asked Last updated
.
Post marked as solved
396 Views

Shortcuts Events process isn't running - AppleScript fails

I'm trying to use the new Shortcuts for Mac scripting interface on the first Monterey beta. I'm having trouble running the example AppleScript shown in WWDC21 Meet Shortcuts For Mac (10232): tell application "Shortcuts Events" run the shortcut named "Dummy" end tell It doesn't seem to recognise a process called 'Shortcuts Events', and I get this error: The command-line utility works as expected in terminal.
Asked
by mralexhay.
Last updated
.