rotated simulator pic which has to be reset to normal. If it is in normal state then it turns left or right after my code gets called. How do i write an applescript to always reset it.
Below is my code for rotating it:
tell application "System Events"
if menu bar item "Hardware" of menu bar 1 of application process "Simulator" exists then
click menu item "Rotate Left" of menu 1 of menu bar item "Hardware" of menu bar 1 of application process "Simulator"
else
click menu item "Rotate Left" of menu 1 of menu bar item "Device" of menu bar 1 of application process "Simulator"
end if
end tell