Skip to main content
100%

Trigger a Sheet alert

✓ Published0🌍 Public
KKevinGutowski
Last edited Sep 13, 2019
Created on Sep 13, 2019

This example demonstrates a temporary modal progress bar that appears over the Sketch document window, indicating an ongoing sheet operation. The script uses the `sketch` API to access the selected document and its window controller. It constructs a 200x100 pixel `NSWindow` with a title and modal style, adds an `NSProgressIndicator` that starts animating in blue, and begins a sheet session with `beginSheet_completionHandler`. After a five-second timeout, the sheet is dismissed with `endSheet`, completing the interaction.

AI-generated description

Similar vizzes