Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari 3 beta, tab object and AppleScript



On 6/12/07, Bill Briggs <email@hidden> wrote:

Well, I see that they added tabs to the object model for Safari, but so far I can't seem to get any syntax to work to make a new tab in an existing window. Anyone else try this yet?

I had noticed that there appeared to be improved scripting support for tabs in the Safari 3 beta, but I hadn't tried to create a new tab until I read your message. I find I am unable to do so as well. Here is a simple test case, to be run when a browser window with a single tab is already open:

tell application "Safari"
tell window 1
 make new tab
end tell
end tell

The "make new tab" line generates the following error message: "Safari
got an error: NSInternalScriptError"

Is this a usage error on my behalf, or is this indeed a bug?

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Remove iTune album ? (From: "Rohit Makasana" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.