Or what I have done is to create a applescript with AppleScript Editor and 
execute the script in cfengine like the following;

 commands:
  darwin::
   "/usr/bin/osascript /tmp/applescript.scpt";

Cheers,
--Nakarin

On Jan 27, 2010, at 10:12 AM, Tim Cutts wrote:

> 
> On 26 Jan 2010, at 8:11 pm, Janet Bass wrote:
> 
>> Has anyone used Applescripts scripts in cfengine?
>> 
>> I am not finding a lot of documentation about Cfengine and Mac OS X
> 
> You can make applescripts trivially executable from the command line,  
> just like any shell script, so you should be able to run them from a  
> shellcommand like anything else.  Silly example:
> 
> #!/usr/bin/osascript
> tell application "Mail" to activate
> 
> The key bit is using osascript on the shebang line.
> 
> Tim
> 
> 
> -- 
> The Wellcome Trust Sanger Institute is operated by Genome Research 
> Limited, a charity registered in England with number 1021457 and a 
> company registered in England with number 2742969, whose registered 
> office is 215 Euston Road, London, NW1 2BE. 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to