Jump to content

Open app in specified screen area?


Recommended Posts

Pardon the ignorance in my post - I am a *very* rusty programmer (think Visual Basic 15 years ago), but I've become fascinated by the possibilities with Alfred. 

 

I would love to be able to get Alfred to open an application in a specified screen half or quadrant.

 

For example, let's say I want to open Photoshop in the left half of the screen. Ideally, I see the flow going like this:

 

1. Press command-space

2. Type an app shortcuts (like "ph" for photoshop) followed by an argument specifying the screen section (like "l" for the left half of the screen).

3. This would open Photoshop in the left half of the screen with the Photoshop window activated.

 

Any ideas of the best way to to do this? I've figured out how to create workflows in Alfred and I'm able to write simple AppleScripts.

 

Thanks!

Link to comment

Pardon the ignorance in my post - I am a *very* rusty programmer (think Visual Basic 15 years ago), but I've become fascinated by the possibilities with Alfred. 

 

I would love to be able to get Alfred to open an application in a specified screen half or quadrant.

 

For example, let's say I want to open Photoshop in the left half of the screen. Ideally, I see the flow going like this:

 

1. Press command-space

2. Type an app shortcuts (like "ph" for photoshop) followed by an argument specifying the screen section (like "l" for the left half of the screen).

3. This would open Photoshop in the left half of the screen with the Photoshop window activated.

 

Any ideas of the best way to to do this? I've figured out how to create workflows in Alfred and I'm able to write simple AppleScripts.

 

Thanks!

 

I'm not certain that we would be able to accomplish it in the manner that you described above. The only downside to wanting to do this with Photoshop though is that it takes so long to open and that time will vary depending on what all else you are doing on the machine at that point in time. So the script would launch the app, then have to wait a bit of time for Photoshop to finish loading, then try to move & resize.

 

One thing you could do would be to create a workflow with some AppleScript inside that would resize the window afterward. This would basically mimic the functionality of apps like Divvy. You could create a module in a workflow that would move and resize the current window in specific regions/quadrants. You could assign hotkeys to these actions and be able to quickly move windows around that way.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...