• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refreshing itunes selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Refreshing itunes selection
      • From: Paul Berkowitz <email@hidden>
References: 
 >Refreshing itunes selection (From: Lewis Butler <email@hidden>)

  • Prev by Date: Refreshing itunes selection
  • Next by Date: Re: Refreshing itunes selection
  • Previous by thread: Refreshing itunes selection
  • Next by thread: Re: Refreshing itunes selection
  • Index(es):
    • Date
    • Thread