[Pythonmac-SIG] Create a new tab with index 1?
Seiya
ohseiya at gmail.com
Sat Jan 9 21:31:07 CET 2010
I would like to use appscript to realize the following applescript:
tell application "Safari"
tell window 1
make new tab at beginning
end tell
end tell
that is, I want to make a new tab with index 1. The following code
safari = app("Safari").windows[1].make(new=k.tab)
will create a tab at the end. I know that I should at some "at=" in the parameter. However, I cannot figure out how to use "k.location_reference". I wonder whether someone can help me out. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100109/81ab6063/attachment.htm>
More information about the Pythonmac-SIG
mailing list