Question: Is there some way to shush up Instruments from warning about changes on disk to the currently loaded script, and have it just use the latest version of the script on disk? I'm always editing it outside of Instruments.
Background: I'm editing my UIAutomation scripts (JavaScript of course) inside Xcode. I select them in the UIAutomation Instrument for profiling with the Instruments tool. I can hit record and all is good.
As I'm building my testing script, I'll edit it in Xcode and toggle the record button in the Instruments app to restart the test.
Instruments prompts me about a change to the script in an external location. I say "Revert" (to disk version) every time. I'm not keen on editing my scripts inside Instruments because then I keep switching between the 'Script' view and the 'Trace Log' view.
I found a solution:
#import
directive in a javascript file to import the file that I'm constantly changing.