• 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
Re: auto mount not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto mount not working


  • Subject: Re: auto mount not working
  • From: Axel Luttgens <email@hidden>
  • Date: Mon, 14 Jan 2013 09:03:54 +0100

Le 14 janv. 2013 à 00:33, dealTek a écrit :

> newbie question...
>
> I found this on the net but it does not seem to be working in ML 10.8.2
>
> auto mount not working - I set a simple applescript
> - first I mount the drive = MyDisk (make sure it's working) - then unmount drive
> - then run simple script - but it does not mount
>
> How can I fix this?
>
>
> -----------
>
> property diskname : "MyDisk"
>
> do shell script "disktool -l | egrep -i \"Mountpoint = '', fsType = 'hfs', volName = '" & diskname & "\" | cut -d\\' -f2 | xargs -n1 disktool -m"

Use diskutil, perhaps?
It has been some time now that we have been warned about the deprecation on disktool; it now seems to be official: the current man page for disktool(8) clearly states "do not use disktool", and the output of 'disktool -l' is the same as the one of 'diskutil list', with an additional line:

	diskutil: please use diskutil(8) instead of disktool

BTW, are you really thinking about auto mounting, or just mounting a volume?

Axel





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: auto mount not working
      • From: dealTek <email@hidden>
References: 
 >auto mount not working (From: dealTek <email@hidden>)

  • Prev by Date: Re: Memory leak when adding records in Filemaker
  • Next by Date: Re: Memory leak when adding records in Filemaker
  • Previous by thread: auto mount not working
  • Next by thread: Re: auto mount not working
  • Index(es):
    • Date
    • Thread