Skip to content

Instantly share code, notes, and snippets.

@buguibu
Created June 8, 2018 15:54
Show Gist options
  • Save buguibu/c0fa1dc68ecbf14d43e903ef534f2d04 to your computer and use it in GitHub Desktop.
Save buguibu/c0fa1dc68ecbf14d43e903ef534f2d04 to your computer and use it in GitHub Desktop.

Revisions

  1. buguibu created this gist Jun 8, 2018.
    16 changes: 16 additions & 0 deletions Slack script.scpt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    tell application "System Events"
    tell application "Slack" to activate
    key code 40 using {command down}
    delay 1
    -- keystroke "the_style_outlets"
    keystroke "ingenieria"
    delay 0.5
    key code 36
    delay 0.3
    keystroke "Sé que os la trae al pairo, pero a mi me emociona decio esto mediante un ApplScript"
    -- keystroke "/away "
    delay 0.5
    key code 36
    delay 0.3
    -- set visible of process "Slack" to false
    end tell