• 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
[Mac OS X] How to tell external disk mounted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mac OS X] How to tell external disk mounted?


  • Subject: [Mac OS X] How to tell external disk mounted?
  • From: Simon Forster <email@hidden>
  • Date: Tue, 13 Apr 2004 20:28:23 +0100

One of my machines has turned up its toes so I've got to move half-a-dozen scripts which usually run unattended at 3:00 am.

Problem: The machine I'm testing these scripts on has a hard drive named "Macintosh HD". Part of the script effectively says:

if not (disk "Macintosh HD" exists) then

...which worked fine on the old machine but, as a test, fails on the current machine due to the identically named HDs.

No probs, I'll check /Volumes/ - but that has a symbolic link to root of the current drive.

So, what's the best way of checking if the server's HD "Macintosh HD" is mounted?

TIA

Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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.


  • Follow-Ups:
    • Re: [Mac OS X] How to tell external disk mounted?
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Choose Folder Problem
  • Next by Date: Change of file creation date
  • Previous by thread: Re: Choose Folder Problem
  • Next by thread: Re: [Mac OS X] How to tell external disk mounted?
  • Index(es):
    • Date
    • Thread