In article <c4edb3e3-4299-4741-a45d-ea209f3db...@gmail.com>, Seiya <ohse...@gmail.com> wrote: > 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".
app("Safari").windows[1].make(new=k.tab, at=app.windows[1].beginning, with_properties={k.URL:"http://python.org"}) P.S. For help with translating existing snippets of AppleScript into appscript, use the ASTranslate.app tool: http://appscript.sourceforge.net/tools.html -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig