Changeset 767


Ignore:
Timestamp:
Dec 4, 2009 5:11:41 PM (11 years ago)
Author:
toby
Message:

# on 2004/01/12 19:42:37, toby did:
work in progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/osx.html

    • Property rcs:date changed from 2003/12/08 22:25:22 to 2004/01/12 19:42:37
    • Property rcs:rev changed from 1.1 to 1.2
    • Property rcs:lines set to +32 -20
    r762 r767  
    2323<TR><TH><A  Href="expgui.html">EXPGUI home</A>
    2424</TH></TR></TABLE><BR CLEAR=ALL>
    25 
    26 <H3>Installing GSAS/EXPGUI under Mac OS X:</H3>
     25<CENTER><H1>
     26<HR noshade width="75%" size="2" align="center">
     27Installing GSAS/EXPGUI under Mac OS X
     28<HR noshade width="75%" size="2" align="center">
     29</H1></CENTER>
     30
    2731
    2832These are approximate directions for installing GSAS & EXPGUI on a
    2933Macintosh OS X machine. The software has been built using OS X 10.2.6
    3034and has been installed successfully on 10.2 and 10.3 machines.
    31 Note that most users will probably already have installed X11 and
     35Note that most users will probably have already installed X11 and
    3236FINK on their computers. Most OS X books can provide more information
    3337on how to do this.
     
    6771     sudo apt-get install tcltk blt libpng3-shlibs
    6872</PRE>
     73(I am probably not the best person to provide help on this either.)
    6974</DL></DL>
    7075
     
    95100may be created automatically.
    96101In this case you can simply move this folder to the desired
    97 location. </I>
     102location.</I>
    98103<P>
    99104<I>
     
    107112     cd
    108113     mkdir -p Programs/gsas
    109      cd Programs/gsas
     114     cd Programs
    110115     tar xvzf ~/Desktop/osx_gsaskit.tar.gz
    111116</PRE>
     
    120125<DL><DL><I>
    121126At this point you are able to run EXPGUI using the full command name
    122 from inside an X11 window by typing a command such as this:
     127from inside an X11 window -- by typing a command such as this:
    123128</I>
    124129<PRE>
     
    156161
    157162</DL></DL>
    158 <P><LI><B>Create an AppleScript to run EXPGUI</B>
     163<a name="AppleScript">
     164</a><P><LI><B>Create an AppleScript to run EXPGUI</B>
    159165<DL><DL>
    160166<IMG SRC="osx1.jpg" ALT="EXPGUI menu" ALIGN="RIGHT">
     
    172178</DL></DL>
    173179
    174 <P><LI><B>Create an Applet to run EXPGUI</B>
     180<a name="CompileAppleScript">
     181<P><LI><B>Create an Applet/Droplet to run EXPGUI</B>
    175182<DL><DL>
    176183If you double-click on the EXPGUI AppleScript, created above, you
    177184will open it in the Script Editor, where you can convert it from
    178185a "Compiled Script" to a "Application". This application can then be
    179 used to start EXPGUI if doubled-clicked in a Finder window, on the desktop
    180 or can even be moved to the dock. To create an application, use the
    181 File/Save As menu option and be sure to select "Application" as the Format,
    182 as is shown below. I suggest that you select the "Never Show Startup Screen"
    183 option, also. You can call the file anything, although EXPGUI makes a
    184 certain amount of sense. You can also put this file anywhere you choose.
     186used to start EXPGUI if doubled-clicked in a Finder window or on the desktop.
     187You can also drag experiment (.EXP) files onto the icon to launch EXPGUI on
     188those files (if you drag more than one .EXP file, an EXPGUI window is opened
     189for each file -- use with care if you are short on memory).
     190<P>
     191To create an application from within the Script Editor, use the
     192"File/Save As" menu option and be sure to select "Application" as the Format,
     193as is shown below. I suggest that you also select the
     194"Never Show Startup Screen" option, as is also shown below.
     195You can call the file anything, although EXPGUI makes a
     196certain amount of sense. You can put this file anywhere you choose,
     197but either placing it on the dock or desktop makes a lot of sense.
    185198<P>
    186199</DL></DL>
     
    192205<IMG SRC="expgui.jpg" ALIGN=RIGHT ALT="Sample 128x128 EXPGUI icon">
    193206<LI>copy into the clipboard whatever image you would like to use,
    194 such as the image to the right. (I am hoping
     207such as the image to the right, which can also be
     208found as file .../gsas/expgui.icns. (I am hoping
    195209that someone with more talent can contribute something better.)
    196210<LI>Control-click on the EXPGUI app file
     
    206220I would like to solve are:
    207221<OL>
    208 <LI>Is there a way to create an application from an AppleScript, so this can
    209 be automated.
     222<LI>Is there a way to create an application, as opposed to a compiled script,
     223directly from an AppleScript, so I can do this for the user?
    210224<LI>Can I associate an icon with an app/script from within an AppleScript
    211225(so I can do it automatically)?
    212 <LI>How does one create a "droplet" so that one can drop a .EXP file onto
    213 the applet and get that file passed into the EXPGUI command line?
    214226<LI>Are there other (better?) ways to integrate AppleScripts into
    215227OS X for easy use.
     
    299311here. Brand names cited herein are used for
    300312identification purposes and do not constitute an endorsement by NIST.
     313</blockquote>
    301314<hr>
    302315<P><font size=-1><a href="mailto:crystal@nist.gov">Questions/Problems: crystal@nist.gov</a>
    303316<br>
    304317$Revision$ $Date$
    305 </blockquote>
    306318</BODY>
    307319</HTML>
Note: See TracChangeset for help on using the changeset viewer.