'Applescript and Flash Builder
I'm trying to get applescript to resize and move the windows of Flash Builder but I keep getting an error does anyone know how to get Eclipse or Flash Builder to play nicely with applescript?
For example:
tell application "Adobe Flash Builder 4.5"
activate
set the bounds of the first window to {-1680, 650, 0, 1050}
end tell
Returns this error:
tell application "Adobe Flash Builder 4.5"
activate
set bounds of window 1 to {-1680, 650, 0, 1050}
--> error number -1708
Result:
error "Adobe Flash Builder 4.5 got an error: Can’t set bounds of window 1 to {-1680, 650, 0, 1050}." number -10006 from bounds of window 1
or maybe there is a way to do this in bash? :)
Solution 1:[1]
As @philipregan mentions, it's because the app isn't scriptable. To find out if an application is scriptable, follow these instructions from apple.
To determine if a particular app is scriptable, see if it has a scripting dictionary. See Opening a Scripting Dictionary.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Patrick |
