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)