I'm trying to write a script that will get the selected file's path and type it into terminal for me. I'm new to scripting so this is all I have so far - the mistakes will be nice and obvious!
set filepath to (currently selected file's path, or drag-and-dropped file...?)
activate application "Terminal"
tell application "System Events" to keystroke "./aerender -project " + "'$filepath'"
tell application "System Events" to keystroke return**
I know that's totally wrong but hopefully it give the idea of what I'm trying to do.
Thanks in advance!