Last active
July 6, 2019 18:15
-
-
Save jarmitage/df8b9c8d3a48082b863cc1c55aaa5cca to your computer and use it in GitHub Desktop.
FuzzMeasure AppleScript import field recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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