Open Applications - Help

Discussion in 'AppleScript' started by sirchuck, Dec 14, 2012.

  1. sirchuck

    sirchuck New Member

    Joined:
    Dec 14, 2012
    Messages:
    5
    Likes Received:
    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
     
    sirchuck, Dec 14, 2012
    #1
    1. Advertisements

  2. sirchuck

    Kaveman VIP Member

    Joined:
    Nov 26, 2010
    Messages:
    3,559
    Likes Received:
    47
    Location:
    Westland, NZ
    Kaveman, Dec 14, 2012
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Newsbot
    Replies:
    0
    Views:
    734
    Newsbot
    Jun 6, 2007
  2. Newsbot
    Replies:
    0
    Views:
    499
    Newsbot
    Jul 18, 2007
  3. Newsbot
    Replies:
    0
    Views:
    964
    Newsbot
    Feb 13, 2008
  4. Jedi Chris
    Replies:
    0
    Views:
    209
    Jedi Chris
    Apr 9, 2006
  5. AES
    Replies:
    1
    Views:
    408
    Carl Witthoft
    Mar 20, 2005
  6. jack.caming@yahoo.com
    Replies:
    1
    Views:
    446
    zoara
    Oct 21, 2007
  7. SV2014
    Replies:
    1
    Views:
    277
    Spawn_Dooley
    Jun 21, 2014
  8. dodds
    Replies:
    0
    Views:
    271
    dodds
    Jan 25, 2015
Loading...