Terminal Opening CD drive

Discussion in 'macOS' started by trainguy77, May 8, 2006.

  1. trainguy77 macrumors 68040

    Joined:
    Nov 13, 2003
    #1
    Can you open you CD drive from Terminal. I found ways to eject media but I want to open the drive when nothing is in it.(emac) I really am just wondering if it can be done.

    Also can you have terminal display a text bubble/alert on the screen?
     
  2. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    You can use Applscript from the Terminal to display a dialog. You cannot call display dialog directly, but you can have the Finder do it for you:

    osascript -e 'tell application "Finder" to display dialog "Your message here"'
     

Share This Page