Set resizeIt to alias ((scriptPath & n & ". If you don’t succeed with Jacques’ idea you could try to resize the windows with JavaScriptlets - for example like this: set scriptPath to ((path to me) as string) & "Contents:Resources:" Tell application “System Events” to tell process “Firefox”ĭid this work for you? With my Firefox I could only set the position («class pLcn») - ‘bounds’ were only readable So you can open it with: tell Application "Firefox" to activateĪpplescript]tell application “Firefox” to activate The Firefox version I use has a (rudimentary) AppleScript support. TextMate is a versatile plain text editor with a unique and innovative feature set which caused it to win an Apple Design Award for Best Mac OS X Developer Tool in August 2006. Here an example how to open three Terminal windows and reference them via their ids: set winIDs to ĭo script "echo 'I am window " & theID & "'" in window id theID How can I open Firefox (as far as I understand, Firefox doesn’t support Applescript – so this has to be done with System Events?)ĭo you want to open 3 Terminal applications or 3 Terminal windows? To open 3 windows simply repeat the command(s) to open one window three times.Open TextMate by passing a command into a Terminal window (so that I can ensure Textmate loads the correct project).Position and resize each of these windows (I can do this much).Open 3 Terminal windows (opening one window was easy, I’m not sure how to open 3 of the same app with Applescript).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |