• 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: Getting iPod Serial Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting iPod Serial Number


  • Subject: Re: Getting iPod Serial Number
  • From: Joe <email@hidden>
  • Date: Fri, 30 May 2008 10:10:58 -0700

After playing with this a bit more, I discovered I was getting inconsistent results (I think because iTunes needed a bit more time to switch) so I added a delay to the script. So fat it works every time.

tell application "iTunes"
set mySourceName to the name of source 2
set the view of window 1 to playlist mySourceName of source 2
activate
end tell
delay 2
tell application "System Events" to tell application process "iTunes" to keystroke "c" using {command down}
set myResult to the clipboard
tell application "Finder" to activate
myResult


Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Getting iPod Serial Number
  • Next by Date: Excel Cell Format Question
  • Previous by thread: Re: Getting iPod Serial Number
  • Next by thread: Excel Cell Format Question
  • Index(es):
    • Date
    • Thread