PersonalBrain 4.3 Experimental Release Archive The bounds function may also be an alternative.TheBrain for iOS 1.0 Beta - Password required If you do not have SwitchResX you can comment out that part and try to use the SPDisplaysDataType shell function instead however, this did not work well for me because it reported the maximal screen resolution instead of the current resolution. The script is not generalized to be able to handle multiple palettes being open simultaneously. Note that it moves the palette to the center of the screen, which is what I prefer, but this is easy to change. It seems to work fine for moving single palettes that are not transient (it does unfortunately not work for palettes “for one action” or conflict palettes because they disappear when activating this script), although I have made only very limited testing. Thank you very much for good advice! I’m an AppleScript/KM novice, but based on your input I managed to put the below script together. Make window active: Use this if something pushes away the window from the foreground for example if you have certain other actions between the “Display text in a window” action and the “Manipulate Most Recent…” action. So you can for example set a fixed Position while leaving the Size field empty to allow the window to restore its previous size, or vice versa.įocus OK button: gives focus to the OK button, so that it responds to a single press of the Return key. Leave the field blank to allow the standard behavior of the window (i.e. “0, 0” is the top left corner of the screen. Position: The X and Y screen coordinates separated by a comma, the space is optional. You can repeat this for every “Display text in a window” action, so you can nicely distribute multiple windows over your screen. To use the action place it anywhere in your macro after a “Display text in a window” action. The action should now be in your action inventory.drop the zip file onto the KM icon in the dock,.The plug-in action does exactly the same as the script above, but it is more convenient to set the parameters for the window. Manipulate a Display Text Window.zip (11.7 KB) I have built a plug-in action from the script: ↓ See the post further below for an improved version (plug-in action) ↓ Manipulate KM’s Display Text Window.kmmacros (5.1 KB) Here is an example macro with the script: another action), then you have to uncomment the first line of the script to make the window frontmost again. If there is something that pushes away the window from the foreground (e.g. Put the script into an Execute AppleScript action after the Display Text action. If you don’t need any of the three features, comment out the corresponding line. Set the desired values for size and position in the script. gives focus to the OK button, so that it responds to a single press of the Return key.moves the window towards the upper left corner of the screen.Tell window "Keyboard Maestro - Display Text" Tell application process "Keyboard Maestro Engine" (This is the window that is created by the Display Text action.) # tell application "Keyboard Maestro Engine" to activate # Only needed when another app is frontmost With a little AppleScript you can do things with KM’s Display Text window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |