One-day international, The Grange: Pakistan 205-5 beat Scotland 203-8 by five wickets
Ryan Watson produced an excellent innings against Pakistan
Mohammad Yousuf and Abdul Razzaq spared Pakistan's blushes after they had been given a scare by Scotland in the prelude for their tour of England.
Ryan Watson and Paul Hoffmann produced strong performances as the home side played their first one-day international since the 1999 World Cup.
Watson made 80 off just 84 balls in Scotland's 203-8 before Hoffmann took 3-22 to rattle Pakistan's top order.
But Yousuf (81 not out) and Razzaq (51 not out) got the tourists home.
Pakistan played their strongest side available and won the toss, putting Scotland in on a good wicket and reducing them to 20-4 in the eighth over.
But Watson and Neil McCallum (68) put on 118 for the fifth wicket.
Watson, playing most of the big shots, took four fours in Abdul Razzaq'a wayward first over and launhched Danish Kaneria for six.
He finally fell in the 33rd over as Shahid Afridi took a catch off his own bowling.
It was a very good batting pitch, a good atmosphere with sunshine and very enjoyable... it was a good experience for us
McCallum struggled to up the scoring rate when partnered by the tail, and was eventually stumped as he gave Shoaib Malik the charge.
Malik picked up two further wickets but a boundary in the last over from Dougie Lockhart (25 not out) took Scotland past the 200-mark.
Pakistan's reply was never under total control in the early stages.
Salman Butt edged to slip early on, Malik (22) drove to mid-off and Younis Khan (24) edged to gully.
Hoffman had all three of those wickets and things got better for the home side when Inzamam-ul-Haq was caught behind edging a pull and Shahid Afridi holed out at long-off.
Pakistan were 93-5 with half their overs remaining and there was plenty of tension in the air.
But Yousuf and Razzaq's gradually changed the complexion of the match in an unbeaten 111-run partnership, which was paced quite beautifully.
Scotland have come a long, long way - the fielding is sharp, the bowling is pretty good and I've noticed they've beaten a few counties - it's a good omen for Scottish cricket
Watson, bowling a combination of medium pace and spin, was launched for 19 runs in a single over, Razzaq hitting two sixes.
And a Razzaq boundary off Dewald Nel in the 44th over ended the contest.
At the start of the day, Mohammad Asif and Umar Gul shared the new ball and were immediately effective.
Gul knocked out Neil MacRae's middle stump with the first ball of his second over, and trapped a crease-bound Colin Smith lbw.
With Ian Stranger edged Asif to slip and Gavin Hamilton was run out after a mix-up with Watson, Scotland were all at sea.
But Watson, who was captain following a late injury to Craig Wright, turned the match on its head, as Scotland were cheered on by a sell-out crowd of 3,200.