In article <[email protected]>,
Seiya <[email protected]> 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,
[email protected]
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig