WHen you went back into the applescript editor from the dialog it should have told you that Movie was highlighted. The editor is not recognizing movie as a class of "quicktime player" and so it is assuming the word movie is actually a variable (identifier) but in syntactically a class is required in that sentence. I am looking at the code now and will get back on how to fix...
Best wishes, Jonathan On Sep 25, 2011, at 1:24 PM, Jean-Claude Provost wrote: >> Hi all, > >> A while ago, I think I remember reading a message on this list that >> explained how to accelerate the speed at which files are being played in >> iTunes, using an Apple script that invoked QuickTime to perform this >> function. > >> Although I did keep the script, when I try to run it under Lion, I get the >> following error message: >> "Syntax error" "Expected class name but found identifier." >> I must say I'm no AppleScript expert, as it's the 1st time I'm using the >> AppleScript editor. > > Here's the script I have: >> >> ===================================== >> (* >> Play this song at 1.33x >> *) >> tell application "iTunes" >> pause >> set my_track to location of current track >> set my_seconds to player position >> end tell >> >> tell application "QuickTime Player" >> open my_track >> set my_movie to first movie >> set ts to time scale of my_movie >> set current time of my_movie to my_seconds * ts >> set rate of my_movie to 1.33 -- starts playing >> end tell >> ===================================== > > Can anybody tell me how this script ought to be modified so it works in the > Lion/iTunes/QuickTime new worlds? > >> Finally, Can anybody tell me how one ascertains where the syntax error is in >> the code^ Normally, an interpreter lets us know where the problem occurred >> in the code. I could not exactly pinpoint it in this caseā¦ > >> Thanks in advance for helping this AppleScript newbi. > > Cheers, from Varennes, Quebec, Canada >> >> >> Jean-Claude Provost >> jc.prov...@dansmacave.com > > > -- > You received this message because you are subscribed to the Google Groups > "MacVisionaries" group. > To post to this group, send email to macvisionaries@googlegroups.com. > To unsubscribe from this group, send email to > macvisionaries+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/macvisionaries?hl=en. -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to macvisionaries@googlegroups.com. To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.