Saving Applescript Removes Characters
You can avoid the problem at compile by dynamically choosing the apps in system events.

tell application "System Events"
    set App1 to (first process whose name is "App")
    tell App1
        set frontmost to true
        set position of window 1 to {8, 22}
    end tell
end tell


Then do the same for App2.