|Jun 5, 2013, 08:36 PM||#1|
Simple applescript question
So I'm trying to write an applescript to make it so I can restart my Minecraft server via E-Mail (you can make the mail app run an applescript for different criteria. See the attached picture). I have it stopping the server already but I cant figure out how to make it open the start_server.command file to start it again. Here's what I have so far:
tell application "Terminal" to activate
tell application "System Events" to keystroke "stop"
tell application "System Events" to keystroke return
So after keystroking return I need it to open finder and open a certain file. How would I go about doing that? Sorry if this post was hard to understand!
Last edited by Pecans; Jun 5, 2013 at 08:42 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Help needed for simple Applescript||duckdealer||Mac Programming||2||Apr 7, 2014 11:54 PM|
|Possible AppleScript question||Telp||Mac Basics and Help||2||Mar 28, 2014 11:04 PM|
|Simple AppleScript for mail.app||JosCiv||OS X||0||Jul 26, 2013 12:32 PM|
|Why doesn't this simple applescript work any more in ML mail.app (as a rule)||wesleyh||Mac Programming||0||Jan 26, 2013 10:25 AM|
|looking for a simple code in automator or applescript for copy and paste||duran118||Mac Applications and Mac App Store||0||Jul 25, 2012 02:24 AM|
All times are GMT -5. The time now is 03:39 AM.