Fwd: Google and iTunes
Fwd: Google and iTunes
- Subject: Fwd: Google and iTunes
- From: Martin Michel <email@hidden>
- Date: Mon, 22 Apr 2002 17:38:23 +0200
Anfang der weitergeleiteten E-Mail:
Von: christian vick <email@hidden>
Datum: Mo, 22. Apr. 2002 11:23:15 Europe/Berlin
An: <email@hidden>
Betreff: Re: Google and iTunes
And: If you want to get the name of the library playlist in iTunes but
do not know which system language your customer is using, please use
the
following code. I got it from a friend:
on run
with timeout of 6000 seconds
-- Do Stuff
set LibraryPlaylist to (my FindMasterLibrary() as string)
-- Do Stuff
end timeout
end run
on FindMasterLibrary()
tell application "iTunes"
activate
set AllPlaylists to name of every playlist
repeat with LibraryPL in AllPlaylists
if the class of playlist LibraryPL is library playlist
then return LibraryPL
end repeat
end tell
end FindMasterLibrary
I like one liners better:
'name of library playlist 1'
;-) Sometimes it is easier than I think...
Thanks,
Martin
Greetings
cris ;-)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.