Re: TUAW Script Fails
Re: TUAW Script Fails
- Subject: Re: TUAW Script Fails
- From: Peter Baxter <email@hidden>
- Date: Tue, 3 Apr 2007 06:19:41 +1000
I try your script Bruce, and this is the result for both versions.
1st script:
osascript -e 'tell application "iTunes" to if player state is
playing then "Now Playing: " & name of current track & " - " & artist
of current track'
result:
Now Playing: Allegro In C Minor (HWV 408) - Andrew Manze, Richard Egarr
Simpler script:
osascript -e 'tell application "iTunes" to current track'
result:
file track id 4183
I can not generate a problem with either script. your problem must
be elsewhere.
On 03/04/2007, at 6:11 AM, Bruce Robertson wrote:
osascript -e 'tell application "iTunes" to current track'
Peter Baxter
email@hidden
"Never ask a man what computer he uses. If it's a Mac, he'll tell
you. If it's not, why embarrass him?" --Tom Clancy
_______________________________________________
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