If you can get at least 45hr break in between when you finish on Friday and when you start on Sunday there’s no issues. If you reduce from that for any reason then you could count the time off between when you finish from your Tuesday night shift and when you start on Wednesday night as a reduced daily rest plus the compensation. If you’re finishing 3am Wednesday morning and not starting to 9pm Wednesday night then that could compensate for as much as 9hrs reduction of your weekly rest should things go to pot on your Scottish run.
Legally there’s no issue, if it’s a regular thing though, body clock could take a beating. A one off won’t harm but it’s unnecessary stress that you could probably do without long term.