This is for all lists in a farm

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
[Microsoft.SharePoint.Administration.SPFarm]::Local.Services |? { 
    $_.TypeName -eq "Windows SharePoint Services Web Application" 
} |% {
    $_.WebApplications |% {
        $webapplication = $_
        Write-Host "web app"
        $webapplication.Sites |% {
            $site = $_
            Write-Host $site.Url
            $site.AllWebs |% {
                $web = $_
                Write-Host $web.Url
                $web.Lists |% {
                    $list = $_
                    Write-Host $list.Title
                    #do some stuff
                }
            }
        }
    }
}


If you just need a particular webapplication use this:

$site = new-object Microsoft.SharePoint.SPSite "https://mydomain/sites/ericrules/")
$webapplication = $site.WebApplication


Filter/Dispose as needed

Then pipe the result into Export-CSV

Output workflows associated to all lists in a web application
I have been using the AppleScript below as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this no longer works.

Can anyone advise how this AppleScript should be changed in order to make it work again?

Here's the script:

    tell application "Safari"
  set indexActive to index of current tab of window 1
    repeat until (get index of last tab of window 1) = indexActive
        close last tab of window 1
    end repeat
end tell

