I'm in a position where I'm mostly happy with my current job, but still keeping an eye open for possible better opportunities. All companies publish detailed descriptions of the job, the expected skills, the workplace and such, but still too few indicate a salary range straight away.
There are positions that are worth applying to only if the salary range meets my current expectations, and I don't want to waste anybody's time applying only to discover that they cannot pay as much as I expect. At the same time I don't want to miss a good opportunity just because they didn't publish that detail, when it could have been good for me.
How to behave in this situation? Should I simply mail them saying that I'm interested in applying but only if they pay more than X? Is there a more professional way?
Just to clarify the situation: I'm a developer and I would be applying in a country different from my own. On one side I'm looking for a higher than average salary, on the other I do not know the average offered salary for the country.