How can I run an AppleScript from within an C commandline utility?
Googling didn’t work, it only gave me Objective-C solutions…
EDIT:
Oops, I should have googled for ‘run shell script C’…
Now i found the system() function…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would use the
execfamily of functions, which is safer thansystem: