Re: Disk mounted
Re: Disk mounted
- Subject: Re: Disk mounted
- From: Tom Robinson <email@hidden>
- Date: Tue, 15 Apr 2003 19:11:30 +1200
>
I have a little script that performs different tasks on an USB disk.
>
>
I would like the script to check if this USB disk is mounted and
>
cancel (with an erros message) if it is not.
I wrote a script which checks for a .dmg being mounted, and if it isn't, mounts it. You should be able to adapt it:
tell application "Finder"
set mountedVolumes to name of disks
if mountedVolumes does not contain "nameofdisk" then open pathtodisk
-- Note script doesn't wait here for volume to be mounted
end tell
Cheers
_______________________________________________
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.