Script to interact with Applications

Hello all, I used to play with apple script years ago, and im very rusty, I need some help with a script that i need for a custom system setup for my company, any help would be great…OK…here’s the deal…

  • we use a shared storage application for some of our clients, the client logs in, they mount there workspaces(network drives), and begin working. This setup is almost like Apple Xraid/Xserve setup. Once they mount what they need they can start working, importing video, and audio, for editing. Now, my duty is to find a backup solution that will backup at certain times, NOW…the problem, this application does not refresh automaticly, so, my backup does not “back up” until somebody physically presses a button in the Application to refresh the workspaces. What I need is a script that will do as follows…

1.) Launch the Storage application.

2.) Select the Volumes(Workspaces) that need to be refreshed.

3.) Execute(push) the refresh button in the app.

when i run the script recorder, i can get all the way to launching the app, but then i cant do anything within the app like select volumes, or push the refresh button. If anyone can point me in the right direction with this and help me out I would be very greatfull, I will Email you a Beer…lol…:smiley:

Hi Joemasta,

Welcome to MacScripter! What is the name of the application you are trying to use here? The format to start an application is usually along the lines of

tell application "Your App Name" to launch

Now as for recording. Generally speaking it just doesn’t work and I’m willing to bet your app doesn’t support applescript anyways and thus you’re left with the dark arts of GUI Scripting.

I would suggest downloading Apple’s UIElementInspector or downloading a trial of PreFab’s UI Browser. Between those two apps, a little expolring, and browsig around the threads here you should be able to get off to a start. Like I said though let us know the actual app name and maybe we can give you a better hand.