• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why does Classic start?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does Classic start?


  • Subject: Why does Classic start?
  • From: Jeffrey Mattox <email@hidden>
  • Date: Mon, 3 Mar 2003 12:18:39 -0600

This script toggles the mount condition of one of my hard disks. I only use the disk for backups, but some programs (e.g., Netscape) needlessly spin up the disk when they launch. Unmounting the disk at login prevents programs from doing that. The script also remounts the disk if it was not mounted.

It usually works fine as a compiled script on my desktop, but often it needlessly tries to launch Classic (what's that? :-).

If I open the script in Script Editor and run it from there, it does not try to start Classic.

try
tell application "Finder"
eject disk "MacxHD1"
end tell
on error -- it must already be unmounted
try
-- use your device name here, found via "disktool -l"
do shell script "disktool -m disk0s2"
-- display dialog result -- display the result (optional)
on error theError
display dialog theError
end try
end try

How do I prevent it from starting Classic?

Jeff
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa Loco
  • Next by Date: Activation by e-mail?
  • Previous by thread: Re: Logouthook
  • Next by thread: Activation by e-mail?
  • Index(es):
    • Date
    • Thread