Exemplo n.º 1
0
def get_itunes_database_path():
    plisturls = proxy.prefValue_inDomain_('iTunesRecentDatabases',
                                          'com.apple.iApps')
    if not plisturls:
        raise directories.InvalidPathError()
    plistpath = proxy.url2path_(plisturls[0])
    return Path(plistpath)
Exemplo n.º 2
0
def get_iapps_database_path(prefname):
    plisturls = proxy.prefValue_inDomain_(prefname, 'com.apple.iApps')
    if not plisturls:
        raise directories.InvalidPathError()
    plistpath = proxy.url2path_(plisturls[0])
    return Path(plistpath)
Exemplo n.º 3
0
def get_iapps_database_path(prefname):
    plisturls = proxy.prefValue_inDomain_(prefname, "com.apple.iApps")
    if not plisturls:
        raise directories.InvalidPathError()
    plistpath = proxy.url2path_(plisturls[0])
    return Path(plistpath)
Exemplo n.º 4
0
def get_itunes_database_path():
    plisturls = proxy.prefValue_inDomain_('iTunesRecentDatabases', 'com.apple.iApps')
    if not plisturls:
        raise directories.InvalidPathError()
    plistpath = proxy.url2path_(plisturls[0])
    return Path(plistpath)
Exemplo n.º 5
0
 def __init__(self, song_data):
     path = Path(proxy.url2path_(song_data['Location']))
     fs.MusicFile.__init__(self, path)
     self.id = song_data['Track ID']
Exemplo n.º 6
0
 def __init__(self, song_data):
     path = Path(proxy.url2path_(song_data['Location']))
     fs.MusicFile.__init__(self, path)
     self.id = song_data['Track ID']