I created a workflow in Automator with a single "Run Applescript" step. Basically, the Applescript ended up looking like this.
on run {input, parameters}
tell application "Terminal"Voila, I exported the workflow as an application via "Save As..." in the file menu in Automator, and running the program opened Terminal and launched my script. Problem solved. It's not the cleanest solution, but it works.
activate
tell window 1
do script "rebol ~/REBOL/var/script.r"
end tell
end tell
return input
end run
This is applicable to any script you want to run. Python, Ruby, REBOL, whatever you want. You could specify anything in the "do script..." line. You could even whip together an app that prompts you for what script you want to run, and then passes it in as a variable to the Run Applescript step in the workflow. The possibilities abound.
0 comments:
Post a Comment