Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

9947273

Suspended
Original poster
Oct 28, 2012
88
0
I'm wanting to make applications such as Chrome open in full screen automatically, I know it may seem like a small thing but it just makes things a bit easier and quicker.
I have this AppleScript that I am running through an Automator app
Code:
tell application "Google Chrome"
    activate
    make new window
    tell application "System Events"
        keystroke "f" using {control down, command down}
    end tell
end tell
All this is doing at the moment is opening the application and simulating the keyboard shortcut to take the app full screen. My problem with this is that I am having to have both the automator app and Google Chrome in the dock, as I will open the script, which in turn opens Chrome and that icon becomes redundant until it is closed again, as all it will do from this point is take the app in and out of full screen. Does anyone know of a way to only have one app in the dock at a time, avoiding the two dock icons and making things a bit cleaner?
Thanks, 09SRoyal
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.