Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automating (scripting) in Mountain Lion - advice ?

Hi,


A number of years ago I had some programming routine work on Mac, but it has been a while now (for the elderly amongst us ... I extensively programmed in Pascal and in HyperCard ...)


Now I would like to do some scripting to automate some tasks in Mountain Lion. Example of the task is to have my MacMini check on a regular basis for the presence of shared drives (USB drives) connected to my TimeCapsule, and if these are not mounted to go and look for them and mount them (reason for this task is that my MacMini serves as media server to a.o. my AppleTV, and every now and then the drives are unmounted (reason is not clear to me).


Does anyone have some good reference material on how to program AppleScript ? (I assume this would be the tool to use ?)


Thanks in advance

Mac mini, Mac OS X (10.7.4), Mid 2010

Posted on Jul 30, 2012 8:55 AM

Reply
Question marked as Best reply

Posted on Jul 30, 2012 8:58 AM

If you look in your Application folder there is an App called Automator (it's a funky little Robot). Launch the App and have a look and see if you can program Automator to do what you need

6 replies

Jul 30, 2012 9:18 AM in response to necronym

Necronym, thanks again. Not sure though Automator is the right tool for this type of thing, since it would suggest that the app I would create would require someone to actually do something to trigger the action.


AppleScript requires actual programming, but I suspect it would allow me to build in if-then-else steps ("what if the drive I am trying to open is not mounted ?"). On first glance I have not found such possibility in Automator.


Also, the routine I would like to program would need to run on a scheduled basis, not sure how to do that ...


The link provides some useful intro material, but is missing a link to a reference "manual" which is what I am looking for.

Automating (scripting) in Mountain Lion - advice ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.