Timeline for Problems executing an osascript command via cron
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 23, 2016 at 8:03 | vote | accept | drmariod | ||
Sep 16, 2016 at 8:05 | comment | added | drmariod | Is there a way to always allow R to access Reminders? Today I got asked again. I am wondering if I will overlook this again? | |
Sep 15, 2016 at 7:23 | history | edited | klanomath | CC BY-SA 3.0 |
edited title
|
Sep 15, 2016 at 7:12 | answer | added | drmariod | timeline score: 1 | |
Sep 15, 2016 at 6:38 | comment | added | drmariod |
@user3439894 maybe one more thing, when I executed my shell script, there was always a popup message asking for allowance to change Reminders . Also when I start using this within my R script. Maybe this is missing in the Launchd way? But it didn't asked me?
|
|
Sep 15, 2016 at 6:34 | comment | added | drmariod |
Actually, I just started using the osascript and copy and pasted the lines from a online source. I got some strange error messages like 567:570: syntax error: Expected end of line, etc. but found command name. (-2741) so I thought the white space is correct :-) @user3439894 could you maybe provide your solution? I also tested it with launchd and the GUI LaunchControl but this also doesn't create the ToDo entries. Thanks in advance.
|
|
Sep 14, 2016 at 15:29 | comment | added | user3439894 |
Since I don't do R , I can't really reproduce your environment to test however I did run the script you posted, changing the list item to an appropriate target, and it ran fine from Terminal and using launchd with the script set as a Launch Agent. (I don't use cron anymore as it's depreciated in OS X.) This is with the system logged in and not locked. BTW, What's will all the totally unnecessary white-space in your script? I'm talking about all the trailing space after 10 of the 13 lines of code as shown in this image.
|
|
Sep 14, 2016 at 13:46 | history | asked | drmariod | CC BY-SA 3.0 |