New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Script Help to Silent Mounting Shares


Post Reply New Thread Subscribe

 
Thread Tools
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,682
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is online now
I currently have my music library on a Time Capsule along with several other folders/files. Specs for the rest of the system are right below the badge. This works fine since iTunes 11 even tells me when the drive isn't available. Here's what I would like to do. It should be simple but I can't seem to find a solution that works.

I would like to silently mount the iTunes folder (no Finder window open on the desktop) automatically when logging into my account or ideally as part of a larger Automator workflow that launches iTunes. I think I have everything working except the silent mounting bit. Can't seem to find a good description that my brain cells can comprehend.

Long term I'd like to assure that guests using iTunes can't bork with my library (or other things on the drive for that matter).

Be aware of two limitations:

1. When suggesting Terminal scripts remember my phobia. Simple directions please.
2. Adding an alias to the share dies't silent mount the share when added to login items.

Any help greatly appreciated

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
My kind of problem!

Alright, I don't have a TC so I don't know how the files are seen/shared over the network. This being an Apple device, I presume they are shared over AFP. Here's an article about mounting AFP shares over the network to a folder on your local machine (sorry, but this one is going to require some love for the command line). Try that and see if it works. If it does, you can add it to Automator using the "Run Shell Script" action.

Quote:
Originally Posted by Slydude View Post
2. Adding an alias to the share dies't silent mount the share when added to login items.
This makes sense since aliases are little more than pointers. Think of it this way: aliases are like a traffic cop - they can point you in the right direction but have no say in how you drive down that route. Aliases are similar in pointing you at something but have no say in how (of if) something works.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,682
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is online now
Quote:
Originally Posted by vansmith View Post
My kind of problem!

Alright, I don't have a TC so I don't know how the files are seen/shared over the network. This being an Apple device, I presume they are shared over AFP. Here's an article about mounting AFP shares over the network to a folder on your local machine (sorry, but this one is going to require some love for the command line). Try that and see if it works. If it does, you can add it to Automator using the "Run Shell Script" action.

This makes sense since aliases are little more than pointers. Think of it this way: aliases are like a traffic cop - they can point you in the right direction but have no say in how you drive down that route. Aliases are similar in pointing you at something but have no say in how (of if) something works.
Thanks. I read tons of stuff in the last week or so. Most of it from people suggesting either use of aliases on the desktop or adding the TC to login items. apparently they do not understand what's meant by "silent" mounting.

Looks like that will do the trick. I was all over that site but missed this somehow. I don't remember which command I tried but it was either the wrong one or I got one of the parameters wrong. I'll give this a tryThis is an afp share so it should work. I've been getting a few more drops than usual lately so I probably need to account for that as well.

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
That should do the job "silently" mounting it in the background. You can even add parameters to it to regulate the mounting (make it read only, change location, etc). But, since you have an aversion to the command line (I'll get you there one day Sly!), I'll leave it where it is.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
Slydude

 
Slydude's Avatar
 
Member Since: Nov 16, 2009
Location: North Louisiana, USA
Posts: 6,682
Slydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant futureSlydude has a brilliant future
Mac Specs: 2.8 GHz MacBook Pro 10.8,3 8 GB mem, 2.66 GHz Mac Pro - Dead, iPhone 4

Slydude is online now
Quote:
Originally Posted by vansmith View Post
That should do the job "silently" mounting it in the background. You can even add parameters to it to regulate the mounting (make it read only, change location, etc). But, since you have an aversion to the command line (I'll get you there one day Sly!), I'll leave it where it is.
I guess I will have to force myself to learn a thing or two.I'm still working on the Apple TV problem I posted about so it may be a day or two before I really experiment with it. Right now it's just my wife and I here so I'm not too worried about folks deleting stuff. Especially with the ATV as front end but eventually I may look at some things such as mounting read only erc.

Thanks for the help. If you hear a scream you will know that something has gone horribly wrong.

Sylvester Roque Former Contributing Editor About This Particular Macintosh

"Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Quote:
Originally Posted by Slydude View Post
I guess I will have to force myself to learn a thing or two.I'm still working on the Apple TV problem I posted about so it may be a day or two before I really experiment with it. Right now it's just my wife and I here so I'm not too worried about folks deleting stuff. Especially with the ATV as front end but eventually I may look at some things such as mounting read only erc.

Thanks for the help. If you hear a scream you will know that something has gone horribly wrong.
Good luck! I'll keep an eye on this thread for the screams.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Help with a simple script | how to insert variable's value? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Script fr mounting external disks Thymen OS X - Operating System 1 07-07-2012 10:38 AM
Mounting Network Shares 1baroulette Internet, Networking, and Wireless 1 02-08-2012 08:27 AM
Mapping AFP with Applescript for student macs DrunkMunki OS X - Operating System 3 11-04-2011 03:23 AM
Run a remote script without mounting its drive first opus_az OS X - Operating System 0 11-30-2007 11:43 AM
Mounting Windows Shares protekcs OS X - Operating System 4 05-01-2005 01:44 AM

All times are GMT -4. The time now is 06:28 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?