• 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: Mount volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Mount volume


  • Subject: RE: Mount volume
  • From: "Script2" <email@hidden>
  • Date: Fri, 20 Feb 2009 09:55:15 -0500
  • Importance: Normal

Thanks for the detailed info.

Ruby

-----Original Message-----
From: applescript-users-bounces+script2=email@hidden
[mailto:applescript-users-bounces+script2=email@hidden]
On Behalf Of J. Stewart
Sent: Friday, February 20, 2009 7:03 AM
To: email@hidden
Subject: RE: Mount volume

On 2/19/09 at 8:24 AM, Script2 <email@hidden> spake thusly:

>This might be a stupid question but
>
>
>
>set theCmd to "mkdir /Volumes/Data" & i
>
>
>
>Where is this created? I did a search could not find it. First time I run
>the script I got an error message on the mount. Second time I got an error
>message file already exist.
>
>
>
>Ruby


/Volumes is a normally hidden folder (by Finder) at the root of
your hard drive which contains aliases to mounted file systems
(hard drives). You can access it via the Finder's "Go" menu, "Go
to Folder" command (shift-cmd-G) and typing in "/Volumes"
without the quotes or by running a script -

In Script Editor:

open location "file:///Volumes" -- opens it

or

choose folder -- it is visible to this command

In Terminal you can access it as you would any other folder:

# make it the current working directory and list its contents
cd /Volumes;ls

I wouldn't recommend using mkdir to add a folder structure in
/Volumes as it's used by the OS as the default mount point for
file systems. They are added and removed under control of the OS
via the mount and unmount commands and while it wouldn't
normally cause problems it may leave artifacts the system
doesn't remove. Let the OS handle the creation and removal.

John
--
A truly wise man never plays leapfrog with a Unicorn.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
tern.com
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


 _______________________________________________
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: Mount volume
      • From: "J. Stewart" <email@hidden>
References: 
 >RE: Mount volume (From: "J. Stewart" <email@hidden>)

  • Prev by Date: Re: Out of the office on Sep 18 2008
  • Next by Date: Re: How do you test if a property is empty
  • Previous by thread: RE: Mount volume
  • Next by thread: RE: Mount volume
  • Index(es):
    • Date
    • Thread