jonathanpenn/ui-screen-shooter — pull request #52 by ZevEisenberg (2014-09-25 03:32:31+00:00)
Title: Un-hardcode Automation trace template path.

`man instruments` tells us this:

```
-t template
The path to the template to run

-s [devices, templates]
Show list of known devices or templates, and then exit ( default is templates )
```

`instruments -s templates` gives us this:

```
Known Templates:
"Activity Monitor"
"Allocations"
"Automation"
"Blank"
"Cocoa Layout"
"Core Animation"
"Core Data"
"Counters"
"Dispatch"
"Energy Diagnostics"
"File Activity"
"GPU Driver"
"Leaks"
"Multicore"
"Network"
"OpenGL ES Analysis"
"Sudden Termination"
"System Trace"
"System Usage"
"Time Profiler"
"UI Recorder"
"Zombies"
```

I’ve tested it, and you can just pass `-t "Automation"` to the `instruments` command and it will work. No need to hardcode the path! Not sure if this is new, but it works on my machine running Xcode 6.0.1.