How to run an AppleScript from a sandboxed application on a Mac (OS X)
问题 We are developing an application for the Mac App Store using Qt 5.2.0.Framework on MacOSX 10.9. Here is a simple AppleScript that creates a Microsoft Excel workbook and saves to any location. tell application "Microsoft Excel" set myworkbook to make new workbook set fname to POSIX file "/Private/var/root/Download/ExcelFile" as text save workbook as myworkbook filename fname end tell The above script is saved as Untitled.scpt in /Library/ApplicationScript/ . Inside the application, we use the