I tend to counsel the object first. Seriously. I am often giving the apps on my phone, or the phone itself, advice to hurry up. I do swear at Google Maps much more often than any others and avoid using that one. It makes up some very creative, impractical, driving suggestions.
I don't think I even swore at the jar of pickles it took two days to open. I used my science thinking instead. I got them at the bargain store and their expiration date was near, so I reasoned they had sat on shelves for a long time, thus making the lid stickier.
Then I realized I was mistaken to put them in the fridge, makes the metal lid tighter, so I took them out.
Then ran lid under hot water and waited for that. Put on rubber gloves, banged the edge of lid with a butter knife, and finally, it opened.
The object was made by people. Therefore, they deserve the swearing.