User Tools

Site Tools


Window_Movers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Window_Movers [2014/10/17 07:39]
peternlewis created
Window_Movers [2014/10/17 21:59] (current)
peternlewis [Right 33%]
Line 1: Line 1:
 These macros can be used to control the size and position of the front window, moving and resetting its size to take up half, one third, two thirds, a quarter or all of its current monitor. Window Left and Right can be used to move the window from one monitor to another, avoiding the need to reach for the mouse. These macros can be used to control the size and position of the front window, moving and resetting its size to take up half, one third, two thirds, a quarter or all of its current monitor. Window Left and Right can be used to move the window from one monitor to another, avoiding the need to reach for the mouse.
 +
  
 ==== Setup Frames ==== ==== Setup Frames ====
Line 9: Line 10:
 Actions: Actions:
  
-*Set Variable ‘FB_Monitor0Frame’ to Text ‘%Screen%1%’ +* Set Variable ‘FB\_Monitor0Frame’ to Text ‘%Screen%1%’ 
-*Set Variable ‘FB_Monitor1Frame’ to Text ‘%Screen%2%’ +* Set Variable ‘FB\_Monitor1Frame’ to Text ‘%Screen%2%’ 
-*Execute shell script+* Execute shell script
  
 This collection is used to manipulate the front window of the front application. The macros work with all applications I have tested, with the exception of Adobe Photoshop and InDesign. This collection is used to manipulate the front window of the front application. The macros work with all applications I have tested, with the exception of Adobe Photoshop and InDesign.
Line 18: Line 19:
 There are some decisions made within a shell / AppleScript for each macro to allow for more complicated behaviour, such as multiple monitor support (2 maximum) and movement from one monitor to the next. There are some decisions made within a shell / AppleScript for each macro to allow for more complicated behaviour, such as multiple monitor support (2 maximum) and movement from one monitor to the next.
  
-Download: ​[[Media:WindowMovers.kmlibrary]]+Download: ​{{:macros:​windowmovers.kmlibrary|}}
  
 The included macros are detailed below. The included macros are detailed below.
Line 30: Line 31:
 Actions: Actions:
  
-* Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’+* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’
 * Execute AppleScript * Execute AppleScript
-* Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Use ‘FB\_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Window Right ==== ==== Window Right ====
Line 83: Line 84:
 Actions: Actions:
  
-* Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’+* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’
 * Execute AppleScript * Execute AppleScript
-* Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Use ‘FB\_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Left 33% ==== ==== Left 33% ====
Line 94: Line 95:
  
 Actions: Actions:
-*Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ + 
-*Execute Macro ‘Setup Frames’ +* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ 
-*Execute shell script +* Execute Macro ‘Setup Frames’ 
-*Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Execute shell script 
 +* Use ‘FB\_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Right 33% ==== ==== Right 33% ====
Line 107: Line 109:
 Actions: Actions:
  
-*Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ +* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ 
-*Execute Macro ‘Setup Frames’ +* Execute Macro ‘Setup Frames’ 
-*Execute shell script +* Execute shell script 
-*Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Use ‘FB\_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Left 66% ==== ==== Left 66% ====
Line 119: Line 121:
  
 Actions: Actions:
-*Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ + 
-*Execute Macro ‘Setup Frames’ +* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ 
-*Execute shell script +* Execute Macro ‘Setup Frames’ 
-*Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Execute shell script 
 +* Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Right 66% ==== ==== Right 66% ====
Line 132: Line 135:
 Actions: Actions:
  
-*Set Variable ‘FB_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ +* Set Variable ‘FB\_FrontWindowFrame’ to Text ‘%FrontWindowFrame%’ 
-*Execute Macro ‘Setup Frames’ +* Execute Macro ‘Setup Frames’ 
-*Execute shell script +* Execute shell script 
-*Use ‘FB_FrontWindowFrame’ to Set the Front Window Frame+* Use ‘FB\_FrontWindowFrame’ to Set the Front Window Frame
  
 ==== Front Two Windows 2:1 ==== ==== Front Two Windows 2:1 ====
Line 145: Line 148:
 Actions: Actions:
  
-*Execute Macro ‘Right 66%’ +* Execute Macro ‘Right 66%’ 
-*Type the ⌘Tab Keystroke +* Type the ⌘Tab Keystroke 
-*Execute Macro ‘Left 33%’ +* Execute Macro ‘Left 33%’ 
-*Type the ⌘Tab Keystroke +* Type the ⌘Tab Keystroke
Window_Movers.1413545961.txt.gz · Last modified: 2014/10/17 07:39 by peternlewis