A technical support community for Apple Logic Pro users.
speakerfood wrote:This script also works with the non-floating movie window.
tenorman wrote:What would the AppleScript be if I wanted to change the Fader Type in the Inspector window?
tenorman wrote:My apologies for the typo. I meant the Fade Out Type in the Inspector window. There are 4 values: Out, X, EqP, and X S.
The below AppleScript was posted earlier to change the Region Gain (and works perfectly). Can this be modified to change the Fader Out Type?
Thanks for the help!
tell application "System Events"
tell process "Logic Pro X"
tell row 8 of outline 1 of scroll area 1 of group 1 of list 1 of group 2 of (first window whose name contains "- Tracks")
set x to (get value of slider 1)
set value of slider 1 to (x + 30)
end tell
end tell
end tell
tell row 9 of outline 1 of scroll area 1 of group sub_group_nr of list 1 of group group_nr of window tracks_window
set x to (get value of slider 1)
set value of slider 1 to (x + 1)
tell application "Logic Pro X"
tell application "System Events"
tell process "Logic Pro X"
set tracks_window to title of first window whose title contains "- Tracks"
if (description of group 1 of window tracks_window = "Control Bar") then
set group_nr to 2
else
set group_nr to 1
end if
if (value of static text 1 of group 1 of list 1 of group group_nr of window tracks_window is "Movie") then
set sub_group_nr to 2
else
set sub_group_nr to 1
end if
tell slider 1 of row 9 of outline 1 of scroll area 1 of group sub_group_nr of list 1 of group group_nr of window tracks_window
-- increment
decrement
end tell
end tell
end tell
end tell
Flove wrote:just wanted to share that with my version of Logic Pro 10.4.6 and macOS 10.14.5, the correct row number for region gain is 9 and not 8, nor 6.
so here is the updated script that works for me