Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to open multiple sessions on Mac

    Hi Statalisters,

    I have a question that I can open multiple Stata sessions on Windows but cannot do that on Mac. It is convenient for me to switch among multiple homepages, do-files, and data editors when dealing with multiple tasks. Does anybody have ideas about this?

    Big thanks advanced.

  • #2
    your question is not completely clear to me, but I have two guesses:

    1. have more than one copy of the app; to get more than one, "To duplicate the Stata application (or really any file), select the Stata application from the Finder and select File > Duplicate (or press cmd-d). You can then rename the copy." (quoted material from Chinh Nguyen of StataCorp);

    2. use frames; see
    Code:
    help frame

    Comment


    • #3
      Originally posted by Rich Goldstein View Post
      your question is not completely clear to me, but I have two guesses:

      1. have more than one copy of the app; to get more than one, "To duplicate the Stata application (or really any file), select the Stata application from the Finder and select File > Duplicate (or press cmd-d). You can then rename the copy." (quoted material from Chinh Nguyen of StataCorp);

      2. use frames; see
      Code:
      help frame
      Hi Rich,

      Sorry for the ambiguity. I mean the Mac system cannot support me to open multiple Stata file simultaneously. For example, I want to open two dta files and view these two datasets via data browser simultaneously. It is not gonna happen on my Mac system. Any solution to this problem?

      Thanks

      Comment


      • #4
        See, for example

        Code:
        http://freigeist.devmag.net/economics/679-starting-multiple-stata-instances-on-mac.html

        Comment


        • #5
          Originally posted by Andrea Discacciati View Post
          See, for example

          Code:
          http://freigeist.devmag.net/economics/679-starting-multiple-stata-instances-on-mac.html
          These two rows of codes seem ambiguous for me. I fail to figure out how they work for Stata.

          Comment


          • #6
            1. Open your Mac's Terminal app.

            2. Enter this command
            Code:
            open -n /Applications/Stata/StataSE.app
            making changes as appropriate for your particular flavor of Stata and the directory path that's relevant on your computer

            Comment


            • #7
              Originally posted by John Mullahy View Post
              1. Open your Mac's Terminal app.

              2. Enter this command
              Code:
              open -n /Applications/Stata/StataSE.app
              making changes as appropriate for your particular flavor of Stata and the directory path that's relevant on your computer
              Works for my PC, thanks John.

              Comment


              • #8
                Finally, I found a way to open multiple sessions using the Stata Mac version-install two Stata ( different versions). Then, I had two independent Stata and can use them at the same time.

                Comment


                • #9
                  I'm not sure how many users would be helped by the last solution, since few people have multiple versions of Stata to play with.

                  The Terminal command in #6 works well. For those who would like to set up a more graphical / user-friendly way to launch a new instance of Stata, you can leverage the "Shortcuts" app on recent editions of macOS (similar solutions are possible using the Automator app on earlier versions of macOS). Here are the basic steps:
                  1. open the Shortcuts app.
                  2. "File" menu > New Shortcut (or just press ⌘N)
                  3. In the search bar, enter "Run Shell Script". If permissions are required for this, give it the necessary permission.
                  4. in the text box provided, enter open -n /Applications/Stata/StataSE.app (assuming you're using StataSE installed in the default location, else change it to your flavour and your app location)
                  5. On the top bar, enter a name for the shortcut, maybe "Open Stata"
                  6. Click the "shortcut details" icon on the right sidebar and select "Pin in Menu Bar". Alternatively, close the dialogue box, and right-click the icon for the shortcut from the gallery, and check "Add to Dock" -- depending on whether you'd like to have this available from the menu bar or the dock.
                  7. Close the Shortcuts app. You're set!

                  Comment

                  Working...
                  X