Edie served as a member of the Pennsylvania State Senate in 1845 and 1846. He was appointed deputy attorney general in 1847 and served until 1850; afterwards serving as district attorney from 1850 to 1854.
He was elected as an Opposition Party candidate to the Thirty-fourth Congress and reelected as a Republican to the Thirty-fifth Congress. He was not a candidate for renomination in 1858.
Civil War service
Edie was commissioned a major of the 15th Infantry Regiment on May 14, 1861; and commanded its field detachment that served in the western theater. He frequently served as commander of the Regular Brigade in the XIV Corps of the Army of the Cumberland. He was promoted to lieutenant colonel of the 8th Infantry Regiment in September 1864 and brevetted colonel the same month. He served until January 1871, when he was honorably discharged. Colonel Edie then resumed the practice of law in Somerset and died there in 1888, being interred in the local Union Cemetery.