scripting fo ctrl + z

Hi Folks,

is it possible to script the following keys

ctrl & z?

background information: while playing with at-commands (for modemscripting) I have to enter ctrl + z to send a sms with applescript…

Thanks for your help and support…

Stefan

Hi Stefan,

yes, it is possible, here for example targeting the Finder


tell application "Finder" to activate
tell application "System Events"
	tell application process "Finder"
		keystroke "z" using control down
	end tell
end tell

Hi,

solved!

set ctrl to ASCII character 26

thanks!

Stefan