Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


pawelgrzybek last won the day on January 17 2019

pawelgrzybek had the most liked content!

About pawelgrzybek

  • Rank

Contact Methods

  • Twitter
  • Website URL

Recent Profile Visitors

661 profile views
  1. Hi. On new macOS it works as expected. The only thing that possibly needs to be done, you need t give Alfred an access to accessibility control inside the "Privacy" tab on "Security & Privacy" Preferences section. Other than that it should work just fine.
  2. Hi. I noticed that since I added a support for multiple screens it takes a little bit longer for this workflow to do its job. It was expected tho. This workflow is built wit AppleScript and requires few calculations whenever you trigger the workflow. It needs to be aware of the screen size, how many screens, position of screens etc. On top of that it injects a NSScreen class from ObjectiveC macOS library — it takes some time to invoke it too. I am not macOS dev / AppleScript expert, but I will do my best to improve the performance of this workflow. if you have any hints how to measure a performance of particular function / method it would be very helpful. Native tools like BetterTouchTool etc. are built using compiles languages like ObjectiveC / Swift. It makes this apps very fast. Pros and cons. Div is just few kbs AppleScript workflow but performance isn't the best, BetterTouchTool is few mbs separated app but its very fast. Thanks
  3. Multiple screen support just landed. https://github.com/pawelgrzybek/div http://www.packal.org/workflow/div
  4. Quick update on multiple monitors support. I finally find a way to make this workflow speak to ObjC NSScreen class. It means that the support for multiple monitors is coming very shortly. I am currently on a business trip, but you can expect it before end of this week. 👌
  5. Ps. I am still working on support for multiple screens. It turns out it is harder than I thought to do it via AppleScript only.
  6. Hi. Just to let you all know, latest version of Google Chrome v69 introduces a big layout and window behaviour changes. I just updated Div to nicely handle these changes and keep your workflow smooth. I described more technical details on this Github issue. Updated version of a workflow: Div on Packal Source code on GitHub Enjoy using Div ?
  7. Hi. I have a hotkeys based workflow. I would like to export the workflow and preserve predefined hotkeys. Is there any way to do it? Thanks in advance
  8. Hi @mlondon 1. Go to GitHub repository page and click "Clone or download" button 2. Download .zip 3. Change file extension from .zip to .alfredworkflow 4. Double click on it 5. Done Be aware that some more complicated workflows come with local variables that are not carried over. The only way to have access to them is having a .alfredworkflow file generated by the author.
  9. O hi! I didn't expect that popularity of this little script! I can promise you guys that the support for multiple screens will come at some point very soon. Is there anything else that you would like to add to a workflow? I may reconsider some additional features as well. Have a great day you all ?
  10. Div — simple windows manager This is simple Alfred workflow to help you manage opened windows. It is simple (50 lines of applescript) but powerful tool. It allows you to create your own layouts, custom sizes and custom proportion. Requirements Some of the mac OS apps are non-scriptable which means they are not working very well with applescript. Fortunately "SystemEvents" can handle them really well. Few simple steps are required to enable Alfred's access to Accessibility tools. 1. Open System Preferences 2. Go to Security & Privacy 3. Go to last Privacy tab 4. On the left panel choose Accessibility 5. Unlock access to preferences by clicking lock in bottom left corner and pass your password 5. Click small `+` icon and add Alfred from the list. 6. Done Other windows managers requires similar procedure. It is not related with Div only. If you use older operating system than El Capitan, have a look at great instruction on [Mizage website](http://mizage.com/help/accessibility.html). Download Download Div from Packal How to use I published a detailed instruction on my personal website. Have a look if you are keen to understand a full potential of Div. Choose predefined layout Simply type `div` in Alfred window and choose layout from predefined list. Custom bounds Choose custom bounds by passing 4 space separated values. For example `div 20 20 80 80` will place top left corner of an app 20% from top and 20% from left edge of a screen, and bottom right corner 80% from top and 80% from left edge of a screen. Custom size Choose custom size by passing 2 space separated values. For example `div 800 600` will resize your window to 800px width and 600px height and place the window on the middle of a screen. Hotkeys Use predefined settings and bind custom hotkeys to them to place window in common locations: - ⌃ ⌥ 1 Full - ⌃ ⌥ 2 Medium - ⌃ ⌥ 3 Small - ⌃ ⌥ ← Left - ⌃ ⌥ → Right - ⌃ ⌥ ↑ Top - ⌃ ⌥ ↓ Bottom
  • Create New...