Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: [Stata 8 for Mac] Dragging Do-Files to Stata Icon


From   Fredrik Wallenberg <[email protected]>
To   [email protected]
Subject   Re: st: [Stata 8 for Mac] Dragging Do-Files to Stata Icon
Date   Wed, 27 Jul 2005 09:48:00 -0700

When I throw this plist in there I get "corrupt application, please
reinstall". I made the mistake of not backing up my original plist so
I tried just taking the plist out to see if Stata would recreate
one... it did not but the application launches just fine. Any more
suggestions?

On 7/26/05, Derek Wagner, StataCorp <[email protected]> wrote:
> Fredrik Wallenberg <[email protected]> wrote:
> 
> > I used to be able to run my do files by simply dragging them to the
> > Stata icon in the dock. Since OS 10.4 that no longer works. Does
> > anyone have any suggestions for this? I realize it is an OS question
> > rather than a Stata question but hope someone has some relevant
> > experience or knowledge.
> 
> Tiger requires a key in Stata's property list that we didn't know was needed
> because previous versions of Mac OS X didn't seem to care about.
> 
> To correct the problem, extract the file below between "cut here" and save it
> as Info.plist in the Stata application.  For example, if you're using Stata/SE
> and it is installed in /Applications/Stata, then save the file as
> 
> /Applications/Stata/StataSE.app/Contents/Info.plist
> 
> overwriting the existing file.
> 
> If you're using Intercooled Stata, change all instances of Stata/SE in the
> file to Intercooled Stata and save the file as
> 
> /Applications/Stata/Stata.app/Contents/Info.plist
> 
> You'll have to reboot because OS X won't know the application's property list
> has changed.  Rather than rebooting, you could also try duplicating the
> executable, deleting the original, then renaming the duplicate to the original
> filename to get OS X to notice the change but I can't confirm that works.
> It's easier just to reboot.
> 
> We've already corrected the problem in Stata 9 in the latest executable
> update.
> 
> --- cut here --
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
> <plist version="0.9">
> <dict>
>         <key>CFBundleIdentifier</key>
>         <string>com.stata.stata</string>
>         <key>CFBundleName</key>
>         <string>Stata/SE 8.2</string>
>         <key>CFBundleGetInfoString</key>
>         <string>Stata/SE version 8.2, Copyright (c) 1985-2005 by StataCorp.  All rights reserved.</string>
>         <key>CFBundleShortVersionString</key>
>         <string>Stata/SE version 8.2</string>
>         <key>CFBundlePackageType</key>
>         <string>APPL</string>
>         <key>CFBundleSignature</key>
>         <string>S5x8</string>
>         <key>CFBundleExecutable</key>
>         <string>StataSE</string>
>         <key>CFBundleVersion</key>
>         <string>8.2</string>
>         <key>CFBundleDevelopmentRegion</key>
>         <string>English</string>
>         <key>CFBundleInfoDictionaryVersion</key>
>         <string>6.0</string>
>         <key>LSRequiresCarbon</key>
>         <true/>
>         <key>CFBundleIconFile</key>
>         <string>app.icns</string>
>         <key>CFBundleDocumentTypes</key>
>         <array>
>                 <dict>
>                         <key>CFBundleTypeName</key>
>                         <string>Stata do-file</string>
>                         <key>CFBundleTypeIconFile</key>
>                         <string>do.icns</string>
>                         <key>CFBundleTypeRole</key>
>                         <string>Editor</string>
>                         <key>CFBundleTypeOSTypes</key>
>                         <array>
>                                 <string>TEXT</string>
>                         </array>
>                         <key>CFBundleTypeExtensions</key>
>                         <array>
>                                 <string>do</string>
>                         </array>
>                         <key>LSIsAppleDefaultForType</key>
>                         <true/>
>                 </dict>
>                 <dict>
>                         <key>CFBundleTypeName</key>
>                         <string>Stata data file</string>
>                         <key>CFBundleTypeIconFile</key>
>                         <string>dta.icns</string>
>                         <key>CFBundleTypeRole</key>
>                         <string>Editor</string>
>                         <key>CFBundleTypeOSTypes</key>
>                         <array>
>                                 <string>DTA </string>
>                         </array>
>                         <key>CFBundleTypeExtensions</key>
>                         <array>
>                                 <string>dta</string>
>                         </array>
>                         <key>LSIsAppleDefaultForType</key>
>                         <true/>
>                 </dict>
>                 <dict>
>                         <key>CFBundleTypeName</key>
>                         <string>Stata graph file</string>
>                         <key>CFBundleTypeIconFile</key>
>                         <string>gph.icns</string>
>                         <key>CFBundleTypeRole</key>
>                         <string>Editor</string>
>                         <key>CFBundleTypeOSTypes</key>
>                         <array>
>                                 <string>GPH </string>
>                         </array>
>                         <key>CFBundleTypeExtensions</key>
>                         <array>
>                                 <string>gph</string>
>                         </array>
>                         <key>LSIsAppleDefaultForType</key>
>                         <true/>
>                 </dict>
>                 <dict>
>                         <key>CFBundleTypeName</key>
>                         <string>Stata SMCL file</string>
>                         <key>CFBundleTypeIconFile</key>
>                         <string>smcl.icns</string>
>                         <key>CFBundleTypeRole</key>
>                         <string>Editor</string>
>                         <key>CFBundleTypeOSTypes</key>
>                         <array>
>                                 <string>SMCL</string>
>                         </array>
>                         <key>CFBundleTypeExtensions</key>
>                         <array>
>                                 <string>smcl</string>
>                         </array>
>                         <key>LSIsAppleDefaultForType</key>
>                         <true/>
>                 </dict>
>         </array>
> </dict>
> </plist>
> --- cut here --
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index