UNC Path names on MAC

QuickWire (4/29/14 2:53PM)
Keisuke Miyako (4/29/14 11:09PM)
QuickWire (4/30/14 8:38AM)
QuickWire (4/30/14 9:12AM)
QuickWire (4/30/14 9:24AM)
Keisuke Miyako (4/30/14 3:56PM)
Koen Van Hooreweghe (4/30/14 4:14PM)


QuickWire (4/29/14 2:53 PM)

For that very reason I use a timeout setting in the applescript. ?"with
timeout of 15 seconds". ?The apple timeout is two minutes as a
default.
Volume List is nice in that you can always check the resulting array of
volumes before having to call the mount routine. ?So in the mount
routine
check Volume List and then call mount if passed volume is not in the
array.

Regards,
--

Paul

On 04/29/2014 15:39 PM, "Peter Mew" <peterm3747@... wrote:

color><param>00000,0000,DDEE/param>HHi Costas
Check out the "volume list" command
If you set all volumes to be mounted at startup you can get a list of
all
available volumes.
The down side is that, if you set a volume to be mounted at startup,
and
it's unavailable the mac will spend several minutes looking for it
before
giving up and moving on.
This was my experience from a few years ago

/color>

Keisuke Miyako (4/29/14 11:09 PM)

there is also mount the BSD command (and its variations) so no need to
call AppleScript

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Man
p
ages/man8/mount.8.html

On 2014/04/30 3:22, "Medland, Paul (QuickWire)"
<pmedland@...
wrote:

color><param>00000,0000,DDEE/param>$$mountCommand_T:="mount volume " +
$Q+$protocol + "://" + $user + ":" +
$pass + "@... + $ipaddress + "/" + $volume2mount+$cr
$script:="tell application" + $Q + "Finder" + $Q + $CR +
$mountCommand_T +
$CR+"Return "+ $Q + "OK" +$Q +$CR+"End tell" + $CR
$err:=ST Do AppleScript ($script;$Reply)
/color>

QuickWire (4/30/14 8:38 AM)

Do you know if there is a way to pass a user and password to the
command?
I looked over the link and did not see. =A0If not, does this mean
that
the
command will prompt for a user and password? =A0Is so, this is a show
stopper for batch workstation / headless processes.

Regards,
--

Paul

On 04/29/2014 17:09 PM, "Keisuke Miyako" <Keisuke.Miyako@...
wrote:

color><param>00000,0000,DDEE/param>tthere is also mount the BSD
command (and its variations) so no need to
call AppleScript

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Man

p
ages/man8/mount.8.html

On 2014/04/30 3:22, "Medland, Paul (QuickWire)"
<pmedland@...
wrote:

/color><color><param>8826F,0000,8219/param>$$mountCommand_T:="mount
volume " + $Q+$protocol + "://" + $user + ":" +
$pass + "@... + $ipaddress + "/" + $volume2mount+$cr
$script:="tell application" + $Q + "Finder" + $Q + $CR +
$mountCommand_T
+
$CR+"Return "+ $Q + "OK" +$Q +$CR+"End tell" + $CR
$err:=ST Do AppleScript ($script;$Reply)
/color><color><param>00000,0000,DDEE/param>

/color>

QuickWire (4/30/14 9:12 AM)

Hi,

Sorry, I think you misunderstood. =A0I was asking about the unix
version
of
the mount command. =A0I know I can do this in Applescript it's easy.
=A0The
original OP wanted to know how to simply mount a volume using SMB
protocol. =A0I think using applescript although not the only way, is
much
easier than delving into unix. =A0Thanks for the links.

Regards,
--

Paul

On 04/30/2014 09:56 AM, "Keisuke Miyako" <Keisuke.Miyako@...
wrote:

color><param>00000,0000,DDEE/param>HHello,

"mount volume?=A2?=82=C2&ugrave; AppleScript command:

mount volume?=A2?=82=E2&Auml;&ouml;v : Mount the specified server
volume
mount volume text : the name or URL path (e.g.
?=A2?=82=CB&uacute;afp://server/volume/?=A2?=82=E2&Ntilde;) of
the volume to mount
on server text : the server on which the volume resides; omit if URL
path
provided
[in AppleTalk zone text] : the AppleTalk zone in which the server
resides;
omit if URL path provided
[as user name text] : the user name with which to log in to the server;
omit for guest access
[with password text] : the password for the user name; omit for guest
access
?=A2?=80?=E2&Auml;&ocirc; file : a specifier for the mounted volume

for mount I think you can do something like

user:pass@...

http://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/

miyako

On 2014/04/30 22:38, "Medland, Paul (QuickWire)"
<pmedland@...
wrote:

/color><color><param>8826F,0000,8219/param>DDo you know if there is a
way to pass a user and password to the command?
I looked over the link and did not see. =A0If not, does this mean
that
the
command will prompt for a user and password? =A0Is so, this is a show
stopper for batch workstation / headless processes.

Regards,
--
Paul

/color><color><param>00000,0000,DDEE/param>

/color>

QuickWire (4/30/14 9:24 AM)

Hi Koen,

The keychain is cool yes. =A0I don't have any issues mounting or
dismounting
volumes. =A0I just use AppleScript on Mac where I can. =A0One must
admit
that
viewing the applescript command versus a dozen versions of mount in the
man pages is the easier way to go for most people.

Regards,
--

Paul

On 04/30/2014 10:14 AM, "Koen Van Hooreweghe" <bvbaCompass@...
wrote:

color><param>00000,0000,DDEE/param>@@Keisuke
IMHO your assumption is correct. Syntax should be like this:

protocol://username:password@...

In Pauls case:

smb://user:pass@...

@Paul
If you do not want to set the password in the mount command on your
headless station, you could log in for once, mount the volume manually
and store the username/password in the keychain. From then on you
should be able to mount without password.

HTH
Koen

Op 30-apr-14, om 15:56 heeft Keisuke Miyako het volgende geschreven:

/color><color><param>8826F,0000,8219/param>ffor mount I think you can
do something like

user:pass@...
/color>

Keisuke Miyako (4/30/14 3:56 PM)

Hello,

"mount volume?=A2?=82=C2&ugrave; AppleScript command:

mount volume?=A2?=82=E2&Auml;&ouml;v : Mount the specified server
volume
mount volume text : the name or URL path (e.g.
?=A2?=82=CB&uacute;afp://server/volume/?=A2?=82=E2&Ntilde;) of
the volume to mount
on server text : the server on which the volume resides; omit if URL
path
provided
[in AppleTalk zone text] : the AppleTalk zone in which the server
resides;
omit if URL path provided
[as user name text] : the user name with which to log in to the server;
omit for guest access
[with password text] : the password for the user name; omit for guest
access
?=A2?=80?=E2&Auml;&ocirc; file : a specifier for the mounted volume

for mount I think you can do something like

user:pass@...

http://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/

miyako

On 2014/04/30 22:38, "Medland, Paul (QuickWire)"
<pmedland@...
wrote:

color><param>00000,0000,DDEE/param>DDo you know if there is a way to
pass a user and password to the command?
I looked over the link and did not see. =A0If not, does this mean
that
the
command will prompt for a user and password? =A0Is so, this is a show
stopper for batch workstation / headless processes.

Regards,
--
Paul

/color>

Koen Van Hooreweghe (4/30/14 4:14 PM)

@Keisuke
IMHO your assumption is correct. Syntax should be like this:

protocol://username:password@...

In Pauls case:

smb://user:pass@...

@Paul
If you do not want to set the password in the mount command on your =A0

headless station, you could log in for once, mount the volume manually
=A0
and store the username/password in the keychain. From then on you =A0

should be able to mount without password.

HTH
Koen

Op 30-apr-14, om 15:56 heeft Keisuke Miyako het volgende geschreven:

color><param>00000,0000,DDEE/param>ffor mount I think you can do
something like

user:pass@...

/color>

Reply to this message

Summary created 4/30/14 at 11:00AM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com