Posts

Post marked as solved
3 Replies
415 Views
We have developed our applicaiton using electron,and sandboxed for the benefit of Mac App Store distribution.the app file generated by electron is packaged using tool 'productbuild'So this will convert .app to .pkg and syntac used isproductbuild --component "$APP_PATH" /Applications --sign "$INSTALLER_HASH" "$RESULT_PATH"Issue isLet say if v1.0.0 of app is installed and running,Then if we update v.1.1 of app -> Old version of app is still runningThis causing issue with old app instance.So how to make mac stop/exit old version of app before installaing new version?is there way to include additional scripts while creating pkg file?alteast I want mac to prevent new version of app installation when old version is already runing.
Posted
by srakesh.
Last updated
.
Post marked as solved
12 Replies
3.2k Views
In our application we start and close external applications.Applications are started by opening the document/Uri of corresponding application.these application are later closed by using apple scriptosascript -e 'tell application \"APP_NAME\" to quit'This works in normal mode, but not in sandbox mode.I tried with following entitlements <key>com.apple.security.temporary-exception.apple-events</key> <array> <string>com.microsoft.SkypeForBusiness</string> <string>com.logmein.GoToMeeting</string> </array> <key>com.apple.security.automation.apple-events</key> <true/> <key>com.apple.security.scripting-targets</key> <dict> <key>com.microsoft.SkypeForBusiness</key> <array> <string>com.apple.systemevents</string> </array> <key>com.logmein.GoToMeeting</key> <array> <string>com.apple.systemevents</string> </array> </dict>and in info.plist <key>NSAppleEventsUsageDescription</key> <string>Close apps started by this application</string>But I get error privilege violation occurred.GoToMeeting is downloaded from thier website in dmg format and Skype for buisness is pkg.Is there any issue with entitlements used or any other way to close open apps?Mac OS used: 10.13.6Development platform: electron
Posted
by srakesh.
Last updated
.