home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1998 #11 / PCDIREKT_1198.bin / SHOWDATA / STANDARD.CXT / 00102_SKRIPT_1.txt < prev    next >
Encoding:
Text File  |  1998-09-05  |  764 b   |  30 lines

  1. tell application "Finder"
  2.     if (computer "vm  ") = 0 then 
  3.      set min to 5800 * 1024
  4.   else
  5.     set min to 4100 * 1024
  6.     end if
  7.   close (every window whose name is not "AOL-CD")
  8.     if exists (application process "AOL") then
  9.         open application file id "AOp3"
  10.         return "ok"
  11.     end if
  12.     if largest free block > min then
  13.         try
  14.             open application file id "AOp3" -- AOL Version 3
  15.             return "ok"
  16.         on error
  17.                     activate
  18.                     display dialog "Das Online-Link ben├╢tigt \"AOL\". Wollen Sie \"AOL\" installieren?" with icon note default button "Ja" buttons {"Nein", "Ja"}
  19.                     if button returned of the result = "Ja" then
  20.                         return "noAOL"  --> install it!
  21.                     else
  22.                         return "noInstall"
  23.                     end if
  24.         end try
  25.     else
  26.         return "noMem" --> do Memory stuff
  27.     end if
  28. end tell
  29.  
  30.