0

妻は、タイムカードをADP(grrrr)に入力するためにJavaを有効にする必要がありますが、[設定]ペインを使用してそれを行う方法を思い出せません。これを行うために使用できるスクリプトはありますか?

4

1 に答える 1

0

マージすると、彼女のために2つのAutomatorサービスを作成できる2つのスクリプトが見つかりました。コアのapplescriptと、チェックボックスがすでにオンかオフかを検出する方法です。

on run {input, parameters} -- use for both Automator services except for false/true below
    tell application "System Events"
        tell process "Safari"
            click menu item "Preferences…" of menu "Safari" of menu bar item "Safari" of menu bar 1
            click button "Security" of tool bar 1 of window 1

            set theCheckbox to checkbox "Enable Java" of group 1 of group 1 of window "Security"
            tell theCheckbox
                set checkboxStatus to value of theCheckbox as boolean
                if checkboxStatus is false then click theCheckbox
                -- false for the 'Enable' script, true for the 'Disable' one
            end tell
            click button 1 of window "Security"
        end tell
    end tell
    return input
end run
于 2013-02-23T17:04:08.207 に答える