

In a related note, here's a link to my semi-famous Mac text to speech using AppleScript tutorial. In a related note, if you want to make your AppleScript dialog list look better, here's a link to my Customize your AppleScript dialog tutorial.

I know that the intent is to make the language very human-readable, but I'd prefer more consistency here. To display a dialog prompting the user to select an item from a list. To display a dialog prompting a user to enter some text, and significantly different syntax like this: choose from list myVoices Here's what this AppleScript list dialog looks like:Īt the moment I'm new to AppleScript, but I personally don't like using syntax like this: display dialog "What should I say?" default answer ""

say "Hello world" using the voice the user selected display a dialog to prompt the user to select a voice from a list of voices a sample AppleScript program to prompt a user to select an item from a list First I create a list (in this case a short list of voices on Mac OS/X that can be used with the say command), and then I display the list in a dialog the user can use to select one of the items in the list. I couldn't find an example showing how to display a list of strings in an AppleScript dialog, so I created the following simple example. Contact me at (al) at valleyprogramming (dot) com for details.ĪppleScript dialog list FAQ: How can I display a list in an AppleScript dialog? Want to work together? Your business can now hire me (Alvin Alexander) for small Scala and Flutter side projects.
