global app_ident
set app_ident to bundle identifier of (info for ((POSIX path of (path to applications folder) as string) & "Safari.app")) as text
set app_ident to "|" & app_ident & "|"
tell application "System Events"
--if the name of window 1 of process "Safari" is "NameOfCollegeClass" then
tell spaces preferences of expose preferences
set app_layout to application bindings
set app_layout to app_layout & {app_ident:2} -- move Safari to space 2
set application bindings to app_layout
end tell
end tell
tell application "System Events"
tell spaces preferences of expose preferences
set tt to application bindings
tt
end tell
end tell
The vertical lines tell the script to transfer the variable app_ident as a literal.
Regards
Santa