Toggle Focus Mode

Posted by @edgauthier, Last update over 1 year ago

Toggles Focus mode and displays a brief message indicating which one is active.

Steps

  • script

    // Editor - Toggle Focus Mode
    editor.focusModeEnabled = !editor.focusModeEnabled;
    app.displayInfoMessage(editor.focusModeEnabled 
    	? "Focus Mode Enabled" 
    	: "Focus Mode Disabled");

Options

  • After Success Default
    Notification Error
    Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.