The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Name for HDD in Applescript

    Discussion in 'Apple and Mac OS X' started by SP Forsythe, Sep 14, 2011.

  1. SP Forsythe

    SP Forsythe Notebook Evangelist

    Reputations:
    173
    Messages:
    664
    Likes Received:
    0
    Trophy Points:
    30
    I want to modify an applescript that opens two finder windows.

    Does anyone know the term that applescript uses to define the hard disk folder?

    Examples:

    open home Opens a finder window of the home folder destination
    open folder "Documents" of home Opens a finder window of the documents subfolder of home

    I want to open a finder window showing the HDD.


    EDIT: Nevermind, I got it.
    open folder "Macintosh HD"
     
  2. doh123

    doh123 Without ME its just AWESO

    Reputations:
    996
    Messages:
    3,727
    Likes Received:
    1
    Trophy Points:
    106
    that works, unless someone has renamed their hard drive. I always use POSIX path for Applescript so you can use a standard path like /Users/doh123/Documents ... you just have to label it as a POSIX path, so your root of your main hard drive would always be / no matter what it was named.