def rule(event):
    if all(
        [
            "osascript" in event.deep_get("CommandLine", default=""),
            " -e " in event.deep_get("CommandLine", default=""),
            "eval" in event.deep_get("CommandLine", default=""),
            "NSData.dataWithContentsOfURL" in event.deep_get("CommandLine", default=""),
            any(
                [
                    all(
                        [
                            " -l " in event.deep_get("CommandLine", default=""),
                            "JavaScript" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    ".js" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
