Skip to content

Instantly share code, notes, and snippets.

@jarmitage
Last active July 6, 2019 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarmitage/df8b9c8d3a48082b863cc1c55aaa5cca to your computer and use it in GitHub Desktop.
Save jarmitage/df8b9c8d3a48082b863cc1c55aaa5cca to your computer and use it in GitHub Desktop.
FuzzMeasure AppleScript import field recording
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set homePath to (POSIX path of (path to home folder))
set stimulusPath to homePath & "Desktop/stimulus.wav"
set recordingPath to homePath & "Desktop/measurement.wav"
if application "FuzzMeasure" is not running then
tell application "FuzzMeasure" to activate
end if
tell application "FuzzMeasure"
make new document
tell first document
set fieldRecording to import field recording named recordingPath recorded with stimulus signal stimulusPath
set theMeasurement to item 1 of fieldRecording
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment