FR 2494 then FR 6267 at Barcelona
Palma de Mallorca → Barcelona → Edinburgh
Timetable, Barcelona time
19:10FR 2494 from Palma de Mallorca at the gate
17:25FR 6267 to Edinburgh leaves the gate
22 h 15 apart on the timetable, overnight
FR 6267 leaves 22 h 15 after FR 2494 arrives on the timetable: more than half a day, so not a connection we count.