Tuesday, August 2. 2005
My first AppleScript
Comments
Display comments as
(Linear | Threaded)
this is cruel, there is no "make new window" I have to step through the menu
How about:
tell application "Terminal"
activate
do script with command ""
end tell
ALso, if you want a tidier solution to the screen size, you could get Jon's Commands. That way instead of
set window_info to do shell script\
"defaults read com.apple.loginwindow\
| grep -w 'NSWindow Frame About This Mac'"
set screen_width to (word 13 of window_info as number)
set screen_height to (word 14 of window_info as number)
you could just use
set s to screen size of item 1 of (screen list)
However, if you want to use this on multiple computers, you'd need to be sure Jon's Commands were installed on each.
It's true. Graham's right. I feel insulted by seeing apple-script.
Add Comment
Owner login
