โปรแกรมบรรทัดคำสั่งสามารถเรียกใช้โดยใช้ do shell script "..." คำสั่งใน AppleScript โดยทั่วไปคุณสามารถเขียนคำสั่งตามที่คุณต้องการ สถานีปลายทาง โปรดจำไว้ว่าเครื่องหมายคำพูดคู่ต้องถูกหลบหนีด้วยแบ็กสแลชก่อนหน้า \. do shell script คำสั่งส่งกลับผลลัพธ์สุดท้ายไปที่ stdout.
ตัวอย่างเช่น:
do shell script "myvar=hello world; echo \"$myvar\""
จะกลับมา hello world เป็นสตริง
คำสั่งเหล่านี้ทำงานโดยไม่มีเทอร์มินัลดังนั้นจึงไม่สามารถโต้ตอบกับผู้ใช้ได้เช่น เพื่อรับอินพุตของผู้ใช้ หากคุณต้องการเทอร์มินัลคุณสามารถ tell application "Terminal" to tell the front window to tell the front tab to do script "...".
แต่, do shell script "..." เหมาะสำหรับสถานการณ์ส่วนใหญ่ที่ต้องใช้คำสั่ง bash
ถ้ามันมีประโยชน์ที่จะรู้ iTunes ยังสามารถเล่นสตรีมเสียงจากอินเทอร์เน็ต คุณสามารถทำได้จากบรรทัดคำสั่งดังนี้:
open -a itunes "http://ssl.gstatic.com/dictionary/static/sounds/20160317/pronunciation--_us_1.mp3"
จากภายใน AppleScript สิ่งนี้อาจมีลักษณะดังนี้:
do shell script "open -a itunes \"http://ssl.gstatic.com/dictionary/static/sounds/20160317/pronunciation--_us_1.mp3\""
หรือใช้ iTunes scriptability:
tell application "iTunes" to open location "http://ssl.gstatic.com/dictionary/static/sounds/20160317/pronunciation--_us_1.mp3"