How to: Auto mounting and recheck on a Mac

Hello all, i've been using the below for a couple of months on my WD, its worked great in all that time and havent had an issue.  The reason I started using this was so that my PLEX software would always be able to access my WD and stream, as they are located on difference machines. I have no idea if anyone has found a better way, but for me this is the best I could initally find and then adapt to make it more centric to my needs. We're going to make an automator application, so on your desktop goto 'GO -> Applications -> Automator'When Autormator loads up, click new doccument and then select 'Application'. We want application because we can make this process automatic on log in, and as an application we wont need the automator software to load up. With the new application, search of 'AppleScript' in the search bar and then drag across Applescript into your work flow. Copy and paste the below into the box, changing what your need.  If you only want to mount one share, then its just { "ONESHARENAME" } without the need for a comma. property myDisks : {"YOUR", "SHARE", "NAMES", "HERE"}
set mountedDisks to paragraphs of (do shell script "/bin/ls /Volumes")
repeat with aDisk in myDisks
if aDisk is not in mountedDisks then
mount volume "afp://YOUR.WDMYCLOUD.IP.HERE/" & aDisk as user name "USERNAME" with password "PASSWORD"
end if
end repeat If you were to save this now, whenever you double click the application it would mount the said shares for you without needing you to log in or select which shares you want to mount. The reason I use AFP (this scipt works with SMB too for windows users BUT....) is that it is unbelieveably faster than SMB, however, I did notice that the connection would randomly unmount itsself if it hasnt been used for a couple of hours - which makes sense I suppose, but for my system - it needs to be ALWAYS mounted.  So with just two more steps we can make it so the script will automatically check every 10 minutes for the shares, and if they arent mounted then it will remount them again wihtout any human intervention or popups. STEP 2).  Drag another blank applescript underneath the one we just created.  Paste in it; on run {input, parameters}
delay 300
return input
end run  Delay 300 is how many seconds it will wait before redoing the check. STEP 3).We now need to make this loop infinitely for an always on system, or atleast always doing it whilst you are using the computer. Where you initally searched for the term 'Applescript', delete that off and search for 'Loop'.  Drag the loop option below the two applescripts and select the options;"Loop automatically" and for everytime write -1 -1 is importnant as this makes the loop cycle infinite, then finally the last setting is "use the original input".  Save it as an Application somewhere, then goto your System settings, USER, Login items, click the + to add one, and search for where you just saved this application and.. Success!   Everytime you log in or start the mac, it will initiate this always on script .  Hopefully someone else finds this useful.  The inital part of the script was found on the internet somewhere, I cant find the link now to give credit, it was adpated for multiple shares and the log in section.  

cpt_paranoia wrote:
Interesting workaround, but, like Raphael, this puzzles me: > I did notice that the connection would randomly unmount itsself if it hasnt been used for a couple of hours - which makes sense I suppose Unmounting autonomously doesn't make any sense to me. But who knows what's in the mind of the Ghost of Steve Jobs...My Mac Mini does not have the random unmounting nor have I ever encountered the Ghost of Steve Jobs, although Quality Assurance has gone down a notch as I notice the askewness of some fonts in the calendar since the passing of Jobs and this random unmounting could be the QA of a thousand people working on Yosemite rather than a hundred. RyLeTo wrote:
 Im personally very very happy with the WD, I think its hugely versatile and its been on 24/7 for over a year and I have never had a problem since I stopped installing 3rd party software via terminal.My sentiments exactly. For me I never had a problem since I stopped installing the latest firmware and impatiently rebooting when the white light stayed white.  Everyone remember to give RyLeTo a Kudos to ensure his trapping allegiance as a future FREE Volunteer WD tech supporter. 

Similar Messages

  • If you've changed your startup options on mac to start in windows, how do you fix and go back to mac on startup?

    if you've changed your startup options on mac to start in windows, how do you fix and go back to mac. I can't get my mac to switch back to mac, it is like stuck in widows mode, I have tried holding down the options key upon start up and that did not fix it either.
    Please help! Thank you so much!

    The Apple drivers you install in Windows also puts a Startup Drive icon in the Task Bar. Choose that to change the startup disk back OS X.

  • How do I copy and paste to my mac and undo the change attributes like I do withmy iPad. I cannot shake my mac?

    How do I copy and paste to my mac and undo the change attributes. On my ipad I can shake it and undo the change attributes but not sure how to do this on the imac? Example Excel to email and undo changes?

    Thanks for the information....It did not work,....
    I am copying information from Excel and posting it into Lotus
    It works fine in word and other application, just not in Lotus notes...
    Any other ideas?

  • E17 on a fresh Arch Linux + gtk apps... auto mounting and other issues

    hi all...
    I have gone through the forums and found a similar but-not-quite-the-same thread about this, which is why I am posting a new thread - so, please excuse any redundancy/laziness.
    As the topic says, I am making a new Arch Install, on my laptop that has/had arch+kdemod on it for quite some time now. I have now tarred that old install and put it on my desktop that has more RAM than this lappy. So I went with a minimalist approach - after googling for long, I managed to put together something that takes up about 350 MB RAM, when running the desktop, firefox, mplayer, openoffice, two or three terminals, and conky - which is all pretty good. But I am having some teething troubles in many issues, so any help in the following is most appreciated.
    My set-up and the problems....
    WM - e17, from the repos (I tried, but could not get the easy_e17 script to work properly)
    FM - emelfm2
            - I am not able to get my USBs, CDs, DVDs etc to mount automagically. I have HAL from the repos. This is my fstab.
    /dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
    /dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
    #/dev/fd0               /media/fl   auto    user,noauto             0      0
              This setup gave me no trouble at all when using Arch-Kdemod. Now I have to be root to mount from the command line, and can not auto mount cd/dvd/USBs.
              E17 file manager enabled is also no help. 
    browser - firefox, dillo
    terminal - mrxvt
    editor - leafpad
    audio - mpd + sonata
    video - gmplayer
    sys monitor - conky
    cd/dvd burner - recorder, from the repos
    Openoffice, PSPP for statistics
    Pidgin
    Wengophone2
                at the moment I am behind a proxy and haven't yet tried it, but can anyone confirm it is still working...?
    epdfview
    chmsee
    rtorrent
    feh, exhibit
    dreamchess
    That is the whole setup, in case it helps someone.
    Thanks for reading, and waiting for suggestions about the auto mount issue.
    Last edited by jaydoc (2009-03-06 00:01:34)

    hi all...
    Thanks for the replies.
    @fingel... That udev rules addition on the wiki gave me the jitters initially as it looked like I was hacking away at my systems innards, BUT, after trying everything else, including things mentioned here, nothing worked. So I finally did the udev thing, and now the USB is mounting fine.
    However I still cannot get DVDs or CDs to mount. I am added to the optical group, and yet I have to click the mount icon in emelfm2 to be able to mount the CD or DVD - the only consolation is that I am able to mount it as normal user.
    Any help there....? I haven't modified anything from the usual install, except for this udev thingy.
    And, How can I make the mrxvt terminal show me more lines on scrolling up. Now it is allowing me to scroll up only by 10 lines or so, and I am having to pipe through less to be able to view anything meaningful in commands like yaourt -Ss
    Last edited by jaydoc (2009-03-06 23:55:37)

  • Auto start and shutdown 9iR2 on Mac OS X?

    Does anybody know how to set up Mac OS X to auto start and auto shutdown 9iR2 on Mac OS X?

    You may want to create an item in /Library/StartupItems.
    See the following links for information:
    http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/Customization_Techniques.html
    http://developer.apple.com/techpubs/macosx/Darwin/howto/system_starter_howto/system_starter_howto.html
    http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/The_Boot_Sequence.html
    I have not tried this as yet.

  • HOW CAN I FIND AND DELETE CLEAN MY MAC

    I have been haunted with this now for 2 years. I have tried everything I can think of to get this terrible software off my Mac, but hav failed. Every few minutes this software pops up and asks me if I want to delete my trash with it. Can someone show me how to find it?
    This is my Mac specs:

    "CleanMyMac" is a scam and a common cause of instability and poor performance. The developer's instructions don't completely remove it. Follow those instructions, then do as below.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchDaemons/com.macpaw.CleanMyMac2.Agent.plist
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. You may be prompted for your administrator login password. Repeat with this line:
    /Library/PrivilegedHelperTools/com.macpaw.CleanMyMac2.Agent
    Restart the computer and empty the Trash. Never again install "CleanMyMac" or anything like it.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How instal developer (forms and reports ) on Apple Mac

    I want to install oracle 6i forms and report on Apple Mac note book. how i and where i can download developer installer for MAC OS.
    Thanks

    Apple Mac is not a suitable platform to install oracle products. You can take a look at the Oracle Certify Matrix and you can build up your own conclusions.
    In this case, use your Apple Mac for documentation, get a Microsoft Windows Based platform, and choose a certified platform.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How to auto save and pre-fill some textfields

    first time i open a pdf, there are some textfields. they are all empty.
    i click on a button to call a web service. this returns some text and fill in those textfields.
    if one of these textfields, "message", has got an auto-filled text "success", then the pdf needs to remember the text in some of the rest of the fields. next time when the user open it, those fields should be with the text generated last time.
    notice that the "Do you want to save the file" auto-popup window won't meet my requirement. even if the user clicks on "no" for this popup window, now that i get a "success" transaction from the web service, the fields should be saved.
    i read through this, but may not be able to use it. i only have LiveCycle Designer ES3. I don't know how those adminui or process work.
    http://livecycleapps.wordpress.com/2009/10/21/livecycle-es2-using-action-profiles-to-pre-f ill-a-form-for-display-in-workspace/

    Hi,
    in Designer ES3 there is an Auto Save option in the form properties you can activate.
    Remember, the form needs Usage Rights to be savable through Reader, so you need Acrobat to apply those rights to your form first.

  • How to auto login and pass data (parameter) to ApEx at the same time

    Does anybody know how to automatically login to apex (e.g. from JSP page) and pass a parameter value at the same time? I can use wwv_flow_custom_auth_std to login, I can even choose a page but I cannot pass any data (at least I do not know how). If I use f?p URL syntax I can pass data but there is no way to pass login/password information.
    Any idea? Thanks Jaros

    Jaros -
    You could copy your login page and make the new page "public". On the new page, add a process before the login process that sets the value of application item FSP_AFTER_LOGIN_URL to the report page URL (with the arguments), e.g.,   :FSP_AFTER_LOGIN_URL := 'f?p=&APP_ID.:100:&SESSION.::NO::P100_X,P100_Y:&RPT_VALUE1.,&RPT_VALUE2.';Create application-level items RPT_VALUE1 and RPT_VALUE2 in the application.
    From your external page, POST to this new "login" page, passing values for the username, password, rpt_value1, and rpt_value2 items.
    Let us know if it works.
    Scott

  • How To auto mount ACFS at reboot

    Hi,
    Has anyone tried to automount the ACFS mount point at boot...?
    Thanks in advance.

    Hi,
    user10912686 wrote:
    and the solution is ?
    I use grid infrastructure standalone.
    If it's impossible or not support, why it's possible to use acfs filesysteme on grid infrastructure standalone, but impossible and unsupport to mount the FS ?It's not supported but it's possible...look this:
    Oracle ACFS Filesystem managed by OHAS on Oracle Restart
    http://levipereira.wordpress.com/2011/07/28/oracle-acfs-filesystem-managed-by-ohas-on-oracle-restart/
    P.S: I am replying to those who have the it doubt.
    Regards,
    Levi Pereira

  • How can I repair and speed up my Mac?

    Computer really started to slow down about 6 months ago, kept buffering on everything. I added 4gb memory but this didn't really help much. I have been trying to repair via 'disk utilities, first aid' but getting message: ERROR: The underlying task reported fail:- 1HFS volume checked:- volume needs repair
    What can i do?
    Thanks

    First, backup your HDD immediately, you might indeed have a bad harddisk.
    Next, please confirm which iMac model and OS X version you are using. Your signature here says 10.4.11 - is that true?

  • How do you copy and paste on a mac

    new mac user switched from the dreaded PC stumbling along trying to figure stuff out and re orient my brain i Know Apple C is Copy and Apple V is paste yet somehow it doesnt go into from one window to the next

    The Mac has the best User Interface for casual Users anywhere. To get started, Choose Copy from the Edit Menu in every Application, and use Paste from the Edit menu in every Application. Make sure that is working the way you expect.
    Once you get used to the way it is supposed to work, look at those items on the menu for their keyboard Shortcuts, and substitute the Shortcut to speed up your work.

  • External hard drive and SD card won't auto mount

    I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013).
    On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and others don't, e.g. my backup drive that I use with Super Duper! and my camera SD card. I have to go to disk utility and mount them manually. I did not see any option for auto mount in disk utility.
    Could you please guide me on how to get auto mount back?
    Thanks in advance

    I have been dealing with this same issue for the past several months. Running a Macbook Pro (Mid 2010) with OS X Yosemite 10.10.1. This problem occurs when I plug in Firewire, USB, or SD card. The external hardware appear to be working fine, it has to be either a setting, or a quirk that needs corrected with Yosemite. I have run all OS systems since Snow Leopard. Never had this problem. Anyone have any ideas?

  • GNOME: How to get usbstick to auto-mount

    Hi there,
    This quite puzzles me. A few months ago, a friend of mine gave me his usbstick, and the thing just auto-mounted when plugged into a free USB port. Now I got my own stick, but no auto-mount, and mount /dev/sda1 doesn't work either ("no block device"). hotplug, dbus, hal, and udev are running. Do I need a special udev rule or something?
    Is there an easy, step-by-step guide somewhere how to set up Arch linux to (auto-) mount usbsticks? The Wiki entry isn't very helpful.
    Thanks,
    -Sascha.rb

    OK, forget it. The usbstick was broken, got a new one, works out-of-the box as it's supposed to ...
    First time I heard of a broken usbstick, though. Just my luck.

  • How automatic Mount and Open specified database

    hello admins,
    we have oracle 8.0.6 .
    we need know, how is automatic Mount and Open specified database ?
    thanks in advance & regards
    rodolfo.

    Rodolfo, where you come from ?
    Pensavo fossi italiano, o mi prendi per il c... ?
    In your operating system, and for your (very old)
    version, you should have two services for each DB.
    You have to set automatic startup for DBs you want to start automatically, otherwise manual. Obviously, for the last ones you have to start them yourself.
    Paolo

Maybe you are looking for

  • Showing tranformation controls, Adobe Photoshop CS2, Mac Tiger

    The 'show transformation controls' are checked but the controls do not display. Going to Edit - transform - ...... they will display, but then disappear again and do not show on re selecting with the move tool. This has only just started to happen on

  • Possible to rate limit console input?

    I built a tool that allows us to input device information such as IP, VLAN, etc, etc and this tool builds the entire config file that can be pasted into a switch/router.  The problem is that when I start getting down near the banner and motd sections

  • Oracle OCI CLIENT 11g is not connecting with PHP & Apache on Fedora

    Dear all... we are facing following issue... similar to other but not able to resolve ... Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes

  • Depoying web service in oracle weblogic from jdeveloper 10.

    hi , i implement a web service and i deploy it in oracle weblogic from Jdeveloper 10. but when testing this web service, it evaluates them as null. and the wsdl in jdevelpor has 8888 not 7001. please someone help me. thank you aymen

  • Empathy still signs in even though process has been killed...

    So I have empathy installed on an arch install at home... Empathy has the bad habit of re-signing in an account when it gets disconnected, which works fine if it's a legitimate disconnection, but if you've signed in on another program (i.e. pidgin),