Convert the given search specifier into a search-id (sid).

def sid(self, spec):
        """Convert the given search specifier into a search-id (sid)."""
        if spec.startswith('@'):
            index = int(spec[1:])
            jobs = self.service.jobs.list()
            if index < len(jobs):
                return jobs[index].sid
        return spec