Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No context in IntelliJ IDEA #3

Closed
muhqu opened this issue Jan 20, 2016 · 1 comment
Closed

No context in IntelliJ IDEA #3

muhqu opened this issue Jan 20, 2016 · 1 comment
Labels

Comments

@muhqu
Copy link
Owner

muhqu commented Jan 20, 2016

IntelliJ doesn't support the Apple Scripting Bridge per default.

However, using the SystemEvents api we should be able to get the filepath and window position:

$ osascript -s so -e ''\
'tell app "System Events" to '\
'tell first process whose frontmost = 1 to '\
'return {'\
'value of attribute "AXDocument", '\
'value of attribute "AXPosition", '\
'value of attribute "AXSize" '\
'} of window 1'
{"file:///Users/leppich/IdeaProjects/path/to/some/Awesome.java", {0, 23}, {2560, 1364}}
@muhqu muhqu added the bug label Jan 20, 2016
@muhqu
Copy link
Owner Author

muhqu commented Jan 25, 2016

Fixed with 1.7.73-4a3bc5c

@muhqu muhqu closed this as completed Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant