0

I'm trying to rest Finder from my code (in sandbox). One of the approaches that I tried is calling following apple script:

tell application \"Finder\" to quit

but it doesn't seem to work on the Mavericks. Any ideas?

Wojtek
  • 1,006
  • 11
  • 30

1 Answers1

2

You need to add the com.apple.security.scripting-targets sandboxing entitlement to script other apps from within the sandbox. Please check How to run an AppleScript from a sandboxed application on a Mac (OS X)

Community
  • 1
  • 1
Sheen Vempeny
  • 818
  • 1
  • 5
  • 8