Simple question what Changed in Applescript with SL?

I use to work properly with this script but suddenly now it doesn work any more:


activate application “TextEdit”
tell application “System Events”
tell process “textedit”
keystroke “X” using {command down, shift down}
keystroke “N” using {command down, shift down}
keystroke “V” using {command down}
end tell
end tell

With an already open very long rtfd file
I was able to break it and paste in new docs but now the "cut part works,
which I need to break in several chunks so I use to select manually
then cut
open a new doc
paste

and manually save with the name I needed

All this as Textedit allows rtfd docs and others don’t

How can I make the script wprk with SL 10.6.7 and Applescript Version 2.3 (118)
DO I need to update something or what?

Thanks a lot

AppleScript: Version 2.3 (118)
Browser: Safari 533.20.27
Operating System: Mac OS X (10.6)

V ≠v

Just guessing, but perhaps in the old version, shift down cancelled out your uppercase V?

activate application "TextEdit"
tell application "System Events"
	tell process "textedit"
		keystroke "x" using {command down}
		keystroke "n" using {command down}
		keystroke "v" using {command down}
	end tell
end tell

The script, by the way, can be reduced to:

activate application "TextEdit"
tell application "System Events" to keystroke "xnv" using {command down}

Fantastic!

Thanks for the help —

however although I forgot to copy thr first line in the script

"tell application …

it was there already

and the suggestions don’t help I suppose I have some problems elsewhere in my system or in the files

as this script is really simple and there are no reasons for the error

Thanks