tell application "Arc"
    quit
end tell

tell application "System Events"
    set flags_to_enable to {"hide-scrim-border-enabled"}
    set flags_to_disable to {"show-toolbar-in-split-view-enabled"}

    tell property list file "~/Library/Preferences/company.thebrowser.Browser.plist"
        tell property list item "com.launchDarkly.cachedUserEnvironmentFlags"
            repeat with launch_darkly_user_number from 1 to number of items in property list items

                tell property list item launch_darkly_user_number
                    tell property list item "featureFlags" of ¬
                        property list item 1 of ¬
                        property list item "environmentFlags"

                        repeat with flag_to_enable in flags_to_enable
                            try
                                tell property list item flag_to_enable
                                    set value of property list item "value" to true
                                end tell
                            end try
                        end repeat

                        repeat with flag_to_disable in flags_to_disable
                            try
                                tell property list item flag_to_disable
                                    set value of property list item "value" to false
                                end tell
                            end try
                        end repeat

                    end tell
                end tell

            end repeat
        end tell
    end tell
end tell
Edit Report
Pub: 07 Nov 2023 15:31 UTC
Views: 73