• 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: Problems in controlling iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems in controlling iTunes


  • Subject: Re: Problems in controlling iTunes
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 1 Oct 2002 12:54:47 -0400

On Tuesday, October 1, 2002, at 07:13 AM, Stanley wrote:

Hi everyone,

I am writing apple-scripts about controlling iTunes and here I have 3
problems.
Problem 1:
I want / need to set focus on left browse window to Audio CD (if audioCD
exists and mounts) in iTune,
and then displays its all songs list on right browse window.
Can apple-script do that ?

I don't know, but I'd start with

tell application "iTunes"
if kind of sources contains audio CD then
--Do something like 'set selection to...' to set the source to audio CD playlist
end if
end tell

OMM this happens automatically as well as a CDDB query and track/CD naming. OS 10.2.1/iT 3.0.1


The 2nd problem is how can I get current song / track name string by
apple-script ?
Would someone show me the sample?


It looks broken in 10.2.1,Itunes 3.0.1
current playlist--get failed because of a mac os error.
current track--get failed because of a mac os error.

Last problem is how can I get current CD status is pause or stopped or playing
?
I can detect it if playing or not playing but no idea now it's stopped or
pause.
Any idea ?

RTFD (dictionary :)

player state stopped/playing/paused/fast forwarding/rewinding [r/o] -- is iTunes stopped, paused, or playing?


Please give me some words. Any sample code will be special appreciated !
_______________________________________________
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.


--
Paul Skinner
_______________________________________________
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.

References: 
 >Problems in controlling iTunes (From: "Stanley" <email@hidden>)

  • Prev by Date: AppleScript gossip from Mac OS X Conference
  • Next by Date: RE: Reading Folder Names
  • Previous by thread: Problems in controlling iTunes
  • Next by thread: Re: QT5 applescript in QT6 Pro
  • Index(es):
    • Date
    • Thread