View Single Post

Member Since: Oct 19, 2006
Posts: 152
Slokunshialgo will become famous soon enough

Slokunshialgo is offline
I recently installed Mira, which lets me run commands/apps/applescripts by a press of a button on the remote. What I want to do here is set up a simple applescript to check if an app is open, and if it is, close it, but if it's closed, open.

So, basically, the sort of syntax in a C-style language:

if (app.opened() == false);
Can anybody shed some light on how to do this? I've been googling it for a bit, cand cannot come across much to see if an app is open or not.

PC: Intel Core 2 Duo 2.66 GHz, 2 GM RAM, Total 750 GB HDD, Windows Vista Business (For gaming), Ubuntu 8.04 Hardy Heron (64-bit), Slackware 12 (For GTK# coding)
Mac: 1.66GHz, 1GB RAM, 60GB HDD, Mini
QUOTE Thanks