Re: Refreshing itunes selection
Re: Refreshing itunes selection
- Subject: Re: Refreshing itunes selection
- From: Rob Jorgensen <email@hidden>
- Date: Sun, 25 May 2003 23:32:31 -0400
At 9:12 PM -0600 5/25/03, Lewis Butler wrote:
Since iTunes 4 includes artwork, I want to force itunes to refresh
the selection so that I can easily see if a track has associated
artwork. I through this together and I have to admit, I expected it
to work:
on idle
tell application "System Events"
tell process "iTunes"
keystroke "L" with command down
delay 5
end tell
end tell
end idle
I saved it as an application and told it to stay open. All I get is
a system beep after 5 seconds. Trying to force itunes to the
foreground didn't seem to work either.
Does itunes HAVE to be foregrounded in order to send it a command key?
Try this:
on idle
tell application "iTunes" to activate
tell application "System Events"
keystroke "l" with command down
end tell
return 5
end idle
It seems that System Events doesn't like upper case letters in this context.
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.