Moved triggers have disappeared

@Andreas_Hegenberg I tried to move three folders with a lot of triggers (app specific) from the Default preset to a newly created preset (using the menu command).

Now they have disappeared. They are not in either preset. The new preset is empty.

What can I do to get them back? Thank you.

Edit: The names of the folders have an icon in the name. The new preset too. Could this be a problem?
image

Emojis are fine.

You could check whether you can find them in Recently Used => Everything. That shows everyhing, unfiltered, ungrouped. Maybe accidentally some other preset was selected?

If that doesn't help, you could restore one of the autobackups - however before trying that, best create a full backup of this folder: ~/Library/Application Support/BetterTouchTool (go there via Finder => Go => Go to Folder, make sure to include the ~)

Unfortunately, the three groups are also not under Recenty Used.

It's strange that it can just disappear. But fortunately it's nothing I can't put back on. But the question is: Why shouldn't it happen again the next time I move something to an new preset?

For my understanding:

  • If I move app-specific groups/triggers to a new and empty preset, will this app be created automatically in the new preset? Or are these groups/triggers added to “all apps”?

  • If I had made a backup of the entire BTT folder in App. Support Before moving the triggers and replaced it now, would the old state be restored?

  • In other words: If I now perform an autobackup and the result is “chaos”, can I restore the current state by replacing the BTT folder in App. Support?

Thanks, Andreas.

Yes if you put back the copied folder you can restore the full current state.

Ah! If you move triggers that belong to a specific app, where the app is in a specific preset - the app will not necessarily be auto-generated. So if they have been moved to a preset where that app did not exist, you might need to create the app to make them appear. However they would appear if another preset that contains that app is still active.

Of course, this app already exists in the preset Default (which is active). But the first thing I did was to set up the app in the new preset as well, unfortunately without success. So that's the way it is. Not the end of the world. :slight_smile:

Close BTT, delete BTT folder, move old BTT folder to App. Support folder. Correct?

Could you maybe quickly export that preset where the triggers don't show up and send it to me? (It might not contain anything useful but could be helpful for checking what's wrong)

I just tried and can partially confirm your findings:

  • moving app-specific triggers to a new preset that doesn't contain the app will hide them if the app does not exist in the new preset
  • however in my case just adding the app back makes them appear

Was it a normal app or a conditional activation group in your case?

You can also rename it instead of deleting, then you have a second backup :wink:

1 Like

A normal app (no conditional activation group)

:green_circle:Space + Letter.bttpreset|attachment (10.2 KB)

1 Like

If you can restore something miraculously, I wouldn't mind, of course. :slight_smile:

No, unfortunately (as I kind of expected) the export doesn't contain the triggers either because it goes through the contained apps and only exports triggers that belong to an app.

I'll add some logic to identify & auto-create such missing apps with the next version.

Ok, thank you. But again for my understanding. BTT deleted the triggers when moving because this app didn't exist in the new preset?

They are not deleted, but not visible and not active because the app doesn't exist.
Maybe if you can wait for ~30min I can upload an alpha that moves such "orphaned" triggers to trash - that shouldn't break anything for other users and allow you to move them back out of the trash.

No hurry. I can wait.

Would be great if you could try "Move Orphaned Database Items To Trash" in v5.539:

If it finds triggers that do not have an app - or that have an app that does not have a preset, it will try to put them into the trash. If it does not find any it will show a message.

This command has caused quite a few triggers to appear in the trash. But unfortunately not the three groups in question.

What do I do with all these triggers in the trash. I have no idea where they belong or whether I need them.

Most likely they have accumulated in the database over the years and are not needed anymore, so you can leave them in trash.

However it's weird that your missing ones did not appear there. Currently my only explanation would be that they are not "orphaned" and should be visible somewhere.
Did you move the items from the folder to a new preset or the folder? (When moving just the items in a folder without moving the folder, but then deleting or disabling the folder, that would also lead to non-visible items - that is because a folder can contain items from multiple presets but a folder also belongs to a specific preset)

One folder at a time with the entire contents.

Activated and deactivated triggers are in the trash. Can triggers in the trash still be used, directly from the trash?

I mean, would an activated shortcut work if the trigger is in the trash?

In general trashed triggers don't work anymore.

However as I don't have other ideas at the moment and can't reproduce this yet, I'd recommend to use the restore from backup approach described earlier for now.

Ok, so I close BTT. Rename the BTT folder. Then I start BTT again and trigger "Einstellungen aus auto Backup wiederherstellen". Right?

right :wink:

1 Like