We do it all the time. Set up the Automation with the conditions you want. One of the conditions must be to look for a tag that will STOP the automation (otherwise it will loop) Under the actions, ...
To tag new tickets with a tags when they have attachments. Use Case : You can then use this tag to filter tickets with attachments to one view while other with no attachments to another view.