i have no idea what the laws are here, [Scotland]
it'll be slightly different from England, usually the Scottish 'parlament' will copy whatever England is doing. As far as i'm aware, you only got a caution for possession unless it looked like you were intending on dealing.
the greatest enemy of drug prohibition is drug prohibition itself.