Using MacOS Ventura 13.5
Is there a Terminal command for macOS to specify a custom saving directory for QuickTime player videos?
For screenshots I use:
defaults write com.apple.screencapture location "<path></path>"
What would be the equivalent for quick time videos/recordings?
ps aux | grep com.apple.quick
yields these paths for QuickTime:
/System/Applications/QuickTimePlayer.app/Contents/XPCServices/com.apple.quicktimeplayer.SharedPrefsVendor.xpc/Contents/MacOS/com.apple.quicktimeplayer.SharedPrefsVendor
/System/Library/Frameworks/QuickLookThumbnailing.framework/Support/com.apple.quicklook.ThumbnailsAgent
Tried to modify it to my needs:
defaults write com.apple.quicktimeplayer.SharedPrefsVendor location "~/Desktop/video_recording"
to no avail.
Using the UI. Upon each screen recording I have to select the custom target folder regardless of having clicked on "Remember Last Selection". The 2nd time I try to record the screen, it no longer saves the recordings in the specified folder.
Steps to activate "Remember Last Selection"
QuickTime Player > File > New Screen Recording > Options > Remember Last Selection
defaults
you need the app's BundleID, not the path to the executable. You then, of course, need to know whatdefaults
it will accept… You wouldn't expect an app that presents a save dialog to have a defaults save location, only a last location.