I'm trying to invoke the Continuity Camera (Mac OS) service programmatically using BOOL NSPerformService(NSString *itemName, NSPasteboard *pboard);
API so that the functionality can be hooked behind simple button click. What is the name of the Continuity Camera service that needs to be passed in as itemName
parameter?
I can't find the name of the service from com.apple.nsserivcescache.plist file, though from the context menu, the names of the services are "Take Photo" and "Scan Document". I'm not sure if those names will work as they are always associated with the name of the device ( iPhone | iPad ).
Things that I tried.
NSPerformSerice( @"Take Photo", [NSPasteboard generalPasteboard] );
NSPerformSerice( @"<Name of the iPhone> Take Photo", [NSPasteboard generalPasteboard] );
NSPerformSerice( @"<Name of the iPhone>/Take Photo", [NSPasteboard generalPasteboard] );