Google and iTunes
Google and iTunes
- Subject: Google and iTunes
- From: Martin Michel <email@hidden>
- Date: Mon, 22 Apr 2002 01:00:47 +0200
Hi,
just found this website explaining how to use AppleScript and the new
APIs from Goggle:
http://radio.weblogs.com/0100012/stories/2002/04/11/applescriptForGoogleApi.
html
Looking at this example it was quite easy for me to write an AppleScript
Studio application. You can find it at my website:
http://www.soft-o-mat.tk
Its name is Search-O-Mat.
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
Maybe someone can use this tips.
Greetings,
Martin
_______________________________________________
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.