Describe the bug
Exported preset with settings, using this applescript:
tell application "BetterTouchTool"
set YYYYMMDD to (do shell script "date +%Y%m%d_%H%M") as text
export_preset "myPreset" outputPath "folder" & YYYYMMDD & "_me.bttpreset" with includeSettings
end tell
Getting this error when trying to import preset:
A few months ago, BTT was exporting presets in plain text, now they seem to be compressed/encrypted somehow. Opening one with VS Code looks like this:
I tried changing the extension to '.bttpresetcompressed' as mentioned in another thread, but the result is identical.
Device information:
- Type of Mac: 2021 M1 Pro
- macOS version: Sonoma 14.5
- BetterTouchTool version: 4.643
Please help !
try .bttpresetzip instead!
1 Like
Oh my god !
SOLVED !
Thanks for the quick reply !
Can this duplicate one be completely removed please ?
https://community.folivora.ai/t/cant-import-previously-exported-preset/38396
EDIT: i can see it has been removed, many thanks !
Just in case anybody else stumbles upon this.
There are essentially 4 different preset formats:
- .bttpreset => this is just a basic json file and is used if no accompanying files need to be exported
- bttpresetcompressed => this is the basic json file but zipped
- bttpresetbundle => this is a folder that contains the json file but also any additional files that might belong to the preset (e.g. images)
- bttpresetzip or bttcompressedpresetbundle => these are the zipped folder that includes the json file and any additional files
1 Like
I am using this line in applescript to export presets as .bttpresetcompressed:
export_preset myName outputPath myPath comment myComment link myLink with includeSettings and compress
How do I should change this line to export presets as bttpresetzip?
the problem is that the output depends on your setup (e.g. whether you have images that need to be exported as files).
I'll add some code for BTT to automatically add the correct extension in one of the next releases