Logout Script in 10.2.8

I have a logout script I have coded for a 10.3.5 lab build that works great, but when I put the file on my 10.2.8 lab machines the code automatically changes and the script will not run (“q” does not understand the <> message) The code in 10.3.5 is as follows:

tell application “Finder” to activate
tell application “System Events”
tell process “Finder”
keystroke “q” using {command down, option down, shift down}
end tell
end tell

When opened on applescript on a 10.2.8 system it becomes this

tell application “Finder” to activate
tell application “System Events”
tell process “Finder”
«event prcskprs» “q” given «class faal»:{command down, option down, shift down}
end tell
end tell

I would appreciate any feedback on this. Thanks.

IIRC the proper syntax for keystroke commands in Jaguar was:

keystroke “n” with {command down, option down}

and it Panther it was changed from “with” to “using”

It has been a while though.

Andy

I tried this and got the error

‘Expected “into”, variable name, class name, other parameter name or property but found {’


Tell appication “Finder” to activate
Tell application “System Events”
Tell Process “Finder”
keystroke “n” with {command down, option down, shift down}
end tell
end tell