DEV Community

BeginnerCoder17
BeginnerCoder17

Posted on

Question

Hello everyone, thanks for all the help recently I've been using Script Editor on the Mac and I have a question if these lines of code works on other platforms:
app = Appllication.currentApplication();
app.includeStandardAdditions = true;
color = app.dispalyDialog("What is your favorite color?", { defaultAnswer: "" }).textReturned;
if (color == "black") { app.dispalyDialog("I like black too!");
} else {

app.dispalyDialog("Interesting, I like black myself.");
}

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more