Ho un applecript eseguito splendidamente in Script Editor e da un comando osascript
al Terminale. Lo script parla con Reminders.app per passare le voci del promemoria iCloud su alcuni script di analisi sul mio mac.
Ma quando provo a lanciarlo, compaiono alcuni errori nel registro di sistema:
Aug 11 16:43:07 machinename osascript[19678]: Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/FITS.osax"
Aug 11 16:43:07 machinename osascript[19678]: Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
Aug 11 16:43:07 machinename tccd[3421]: Unable to prompt for client without display name (osascript)
Aug 11 16:43:07 machinename Reminders[18838]: Error: Event Not Permitted for command Intrinsics.get
Direct Parameter: <NSPropertySpecifier: scriptingReminders of scriptingLists named "Today" of scriptingAccounts named "iCloud">
Receivers: <NSPropertySpecifier: scriptingReminders of scriptingLists named "Today" of scriptingAccounts named "iCloud">
Arguments: {
}
Aug 11 16:43:07 machinename com.apple.xpc.launchd[1] (local.reminders.taskpaper.sync[19678]): Service exited with abnormal code: 1
L'errore di prestazione SIMBL credo di essere innocuo - questo è un problema noto .
Sto assumendo allo stesso modo l'errore FITS.
Ma ho bisogno di aiuto per risolvere gli errori tccd e Reminders .... Mi sembra che abbia semplicemente bisogno di fornire in qualche modo permessi extra se lo script verrà eseguito tramite launchd.
Ecco anche il file Plist, se aiuta:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.reminders.taskpaper.sync</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>/Users/eck/Library/Scripts/reminders_to_taskpaper.scpt</string>
</array>
<key>StartInterval</key>
<integer>600</integer>
</dict>
</plist>