Home / Companies / Raycast / Blog / Post Details
Content Deep Dive

Inputs for Script Commands

Blog post from Raycast

Post Details
Company
Date Published
Author
Thomas Paul Mann
Word Count
578
Language
English
Hacker News Points
-
Summary

Raycast has introduced a new feature for Script Commands that allows developers to use typed arguments, enhancing the flexibility and usability of scripts without necessitating code changes by users. These typed arguments, defined in comments at the top of a script, currently support text inputs, with plans to expand to other types such as URLs and enums. This feature enables developers to create intuitive commands with placeholders that guide users, making it easier to adopt and understand without external help. Raycast supports up to three arguments in a script, allowing developers to send commands to other apps via URL schemes, as demonstrated with examples like adding a todo in the Things app or conducting a Google search. The integration with Raycast's UI ensures clarity and ease of use, allowing users to navigate and execute commands seamlessly. Furthermore, aliasing and global hotkeys enhance the user experience by enabling rapid command execution, and Raycast encourages community contributions to their public repository of Script Commands.