There are several ways to do this, but if you want to schedule the app to quit automatically with iCal here's one thing you can do:Yaja123 said:i dont understand... maybe i should clarify.
eg, I have IMSafe open at 2.40 pm everyday (using ical alarm feature - open file).. it then does its automated backup of various files. THEN what i would like is for it to close/quit automatically at 2.50pm without my intervention, just as it open without me doing anything.
kanaka said:There are several ways to do this, but if you want to schedule the app to quit automatically with iCal here's one thing you can do:
I just tested this with Stickies.
- Open Script Editor (in /Applications/Apple Script/)
- Create a new script with this line:
tell application "IMSafe" to quit- Save the script somewhere and name it something like "Quit IMSafe"
- In iCal, schedule a new event at 2:50pm, and for the alarm select "Run Script". Then click the popup below which says "none", select "other", then select your "Quit IMSafe" script.
Code:
tell application "App Name Goes Here"
activate
delay 300 -- delay before next action in seconds
quit
end tell
How about if I only want the auto close to work when the application is inactive for a certain period of time?