Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created March 1, 2010 09:17
Show Gist options
  • Select an option

  • Save mmisono/318227 to your computer and use it in GitHub Desktop.

Select an option

Save mmisono/318227 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in $@
do
echo 'tell application "'${i}'" to activate' > ${i}_active.scpt
osacompile -o ${i}_active.scpt ${i}_active.scpt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment