|
|
#1 |
|
Applescript to make terminal close automatically?
Hi,
I have a relitivly simple question about doing a simple task with applescript. I want to automate changing the "when the shell exits" menu in terminal (Preferences > Settings Tab > Shell). From "Don't close the window" to "Close the window". ![]() How would I go about doing this? Thank's for the help! - Ridog Last edited by Ri-dog; Jan 18, 2013 at 12:23 AM. Reason: Added image |
|
|
|
0
|
|
|
#2 |
|
You can try UI scripting.
Code:
-- Note : added delays so you can see what the script does -- You can remove the delays activate application "Terminal" tell application "System Events" tell process "Terminal" -- insert GUI Scripting statements here click menu item "Preferences…" of menu 1 of menu bar item "Terminal" of menu bar 1 delay 2 click radio button 3 of tab group 1 of group 1 of window "Settings" delay 2 click pop up button 1 of tab group 1 of group 1 of window "Settings" delay 2 click menu item 1 of menu 1 of pop up button 1 of tab group 1 of group 1 of window "Settings" -- If you want to close the "Settings window" -- uncomment the next 2 lines -- delay 2 -- click button 1 of window "Settings" end tell end tell
__________________
Space Corps Directive 34124 |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 06:46 PM.







Linear Mode
