![]() ![]() 2.Open a terminal and navigate to the “tools” directory. ![]() chmod +x android_launcher.sh), and add the following shebang line at the top: #!/usr/bin/osascriptġ. In order to run the script from the terminal make it executable (e.g. Note: To look up the correct path to the emulator run which -a emulator in a terminal. Set avd to (choose from list avds with prompt "Please select an AVD to start" default items "None" OK button name )ĭo shell script "~/Library/Android/sdk/emulator/emulator -avd " & avd & " -no-boot-anim > /dev/null 2>&1 &" Set avds to paragraphs of (do shell script "~/Library/Android/sdk/emulator/emulator -list-avds") # TODO! Set the correct path to your `emulator` command > File Format: Application > Save to /Applications folder. You can convert the script to a standalone Mac app by selecting from script editor.app File > Export. The script can be run from the terminal or from the ootb script Editor.app window > Run ▶. The applescript below will show a simple GUI which allows you to pick the android image you want to launch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |