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



At 6:49 AM -0400 6/13/07, David Marshall wrote:
>On Tue, 12 Jun 2007 19:14:02 -0300, Bill Briggs wrote:
>
>>But if I get the properties of window 1 there are two interesting items in the returned record:
>>
>>current tab:tab 2 of window id 17411 of application "Safari", index:1
>>
>>So according to the script there is no tab 2 in existence, but the properties record indicates that the current tab is 2, but yet it's index is 1. I don't have an issue with the fact that there may be a hidden 0th tab in the window object, but I can't make the numbers work in any way that rationalize the above results.
>
>No Safari 3 beta here, so this is just speculative ratiocination, but since drag-and-drop rearrangement of tabs is now supported, a tab's number might reflect its (zero-based) order of creation and its index its (one-based) left-to-right position. So if you opened a window (tab 0), created two new tabs (tabs 1 and 2), then closed the first two tabs, you'd be left with tab 2 in index position 1.

 On that last point, if you ask for the "name" of tab 2, the script throws an error, so that's out as an explanation.

 - web
 _______________________________________________
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: 
 >Re: Safari 3 beta, tab object and AppleScript (From: David Marshall <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.