# Applescript: activate the Score Editor window

**URL:** <https://forums.steinberg.net/t/applescript-activate-the-score-editor-window/684150>\
**Category:** Cubase\
**Tags:** score-editor, cubase-10-5, tips-and-tricks\
**Created:** [January 6, 2021, 10:13pm UTC](https://forums.steinberg.net/t/applescript-activate-the-score-editor-window/684150 "2021-01-06T22:13:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alin89c](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/alin89c/32/93634_2.png) [@alin89c](https://forums.steinberg.net/u/alin89c)\
**Post date:** [January 6, 2021, 10:13pm UTC](https://forums.steinberg.net/t/applescript-activate-the-score-editor-window/684150/1 "2021-01-06T22:13:50Z")

</div>

Is it possible to set the focus on the Score Editor through Applescript? I don’t need to be told how. I just need to know if it’s possible. Thank you.

---

<div class="post-metadata">

**Author:** ![alin89c](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/alin89c/32/93634_2.png) [@alin89c](https://forums.steinberg.net/u/alin89c)\
**Post date:** [January 6, 2021, 10:47pm UTC](https://forums.steinberg.net/t/applescript-activate-the-score-editor-window/684150/2 "2021-01-06T22:47:18Z")

</div>

Found the solution! Yeeey!

```nohighlight
-- delay variables
set delayOne to 0.2
set PageDelay to 2

-- set focus on the Score Editor
tell application "System Events"
	tell application process "Cubase 10.5"
		perform action "AXRaise" of (first window whose name contains "Scores")
		delay delayOne
		tell application "Cubase 10.5" to activate
		delay delayOne
	end tell
end tell
-- print with command+shift+p (must be created through the Key Commands window)
tell application "System Events"
	keystroke "p" using {command down, shift down}
	delay delayOne
end tell

```

source:

> <https://apple.stackexchange.com/questions/39204/script-to-raise-a-single-window-to-the-front>
