DEV Community

loading...

Question

beginnercoder17 profile image BeginnerCoder17 ・1 min read

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.");
}

Discussion (0)

pic
Editor guide