• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Safari 3 beta, tab object and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari 3 beta, tab object and AppleScript


  • Subject: Re: Safari 3 beta, tab object and AppleScript
  • From: Bill Briggs <email@hidden>
  • Date: Wed, 13 Jun 2007 08:17:26 -0300

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.
>
>Of course, this wouldn't explain the discrepancy between your first and second tests, unless they were performed on different windows.

 Same window, and one that had never had a second tab. Looks like bugs to me.

 - web
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
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>)

  • Prev by Date: Re: Safari 3 beta, tab object and AppleScript
  • Next by Date: Re: Safari 3 beta, tab object and AppleScript
  • Previous by thread: Re: Safari 3 beta, tab object and AppleScript
  • Next by thread: Re: Safari 3 beta, tab object and AppleScript
  • Index(es):
    • Date
    • Thread