There are a couple of different ways to do it, but traits and attributes are largely irrelevant (though you don't want traits like Celibate or Eunuch).
Option the first:
- Marry yourself (or your heir, if you already have legitimate children) to a likely Scottish princess/prince (if your side is female).
- Murder everyone before your/your heir's spouse in the line of succession (will not work if the title is agnatic and the aforementioned spouse is female)
- Murder the King of Scotland.
- Inherit down the line.
Problems with this approach is that if your spouse/your heir's spouse gets a case of the stupid when (s)he has the throne then you will have trouble ahead (they might change the succession law to Elective to dodge the inheritance, might abdicate because they did not remember that you were allied to them, or might do other undesirable things). It could end up being even more problematic if your heir or his children end up in her court as she will then arrange for their education and marriages in whatevr way she feels like. Having your future heir inherit might also be problematic as the AI can get stupid and marry in crappy ways.
Option the second:
- Get the guy with the funny hat (His Holiness, the Pope) to like you and dislike the Scottish king (harder than it looks unless you manage to get one of your candidates elected). Ask for an excommunication on the king of Scotland (if possible; the Pope is rather reluctant to wield that power unless you have vassalized him and thus forced him to do your bidding), then a claim or (if you are smaller than Scotland) an Invasion.
- Press the claim/invade Scotland.
The problem with this approach is to get lucky with the Pope disliking the king of Scotland. In particular, it is harder for you to "remove" rulers he like as a discovered assassination/assassination attempt will make the Pope dislike you. The good news is that you can skip the whole marriage step, which is useful if the Scottish princesses are unavailable, have bad traits, or otherwise aren't somone you'd marry.
Option the third:
- Marry yourself (or your heir, if you already have legitimate children) to a likely Scottish princess/prince (if your side is female).
- Inherit a claim a generation or two later.
- Murder enough people to be able to press that claim (if it is weak by the time that you get it, you need a regency or a female ruler of Scotland (and you can't be in a regency or female)).
- Press the claim of your ruler.
The big problem with this approach is that is is slower and that you could get unlucky and have the child/grandchild die before you can press the claim, but it does not rely on Papal approval or have the potential to lead to trouble due to someone else ruling for a generation or two, which the AI likely wouldn't do to your satisfaction.
Whichever approach you use, keep in mind that some succession laws likely will cause problems down the line when you get a second kingdom. Gavelkind will probably see the kingdoms split apart, and elective/tanistry both run the risk of the electors picking different candidates or otherwise causing trouble. The succession laws of Scotland can also be different, so that might be a future problem (for example, even if both titles have primogniture you could have issues if one is agnatic and the other is something else and you end up with a female heir for the non-agnatic title).