Come 7th August once the Glasgow Queen Street works have finished, there will once again be the following weekday services:
0713 Kirkcaldy to Glasgow Queen St via Dalmeny, Winchburgh Jnc & Linlithgow
1733 Glasgow Queen St to Markinch via the same route (in reverse)
I think that these are the ones you are looking for.