Open Applications - Help

Joined
Dec 14, 2012
Messages
5
Reaction score
0
Hi I am trying to Open several applications I use every day and have them open full screen in a new space. Below I will show you my code in automator but for some reason it never works for all the applications. Maybe they are opening to fast to accept the control command F to go full screen ? If there is a better way to open applications full screen so I don't have to open each ap myself that would be great.

- some of the apps open but do not go full screen, even though they are able to manually.

Here is my code:

on run {input, parameters}


tell application "Komodo Edit"
activate
end tell

delay 2

tell application "Google Chrome"
activate
tell application "System Events"
tell process "Google Chrome"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell


delay 2

tell application "Safari"
activate
tell application "System Events"
tell process "Safari"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell


delay 2


tell application "Mail"
activate
tell application "System Events"
tell process "Mail"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell

delay 2


tell application "Terminal"
activate
tell application "System Events"
tell process "Terminal"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell

delay 2


tell application "TweetDeck"
activate
tell application "System Events"
tell process "TweetDeck"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell


delay 2




tell application "iTunes"
activate
tell application "System Events"
tell process "iTunes"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell



delay 2

tell application "Skype"
activate
tell application "System Events"
tell process "Skype"
delay 1
keystroke "f" using {command down, control down}
end tell
end tell
end tell


delay 2

return input
end run
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top