Itunes file to be played

Can someone help?

I’d like to create a macro to use while inside itunes

  1. find the highlighted item in Finder
  2. open the locatred file in VLC media player
  3. then play the file at 1.5 speed (using the command + “+” keys

Hey Gene,

I’ll get you most of the way there with AppleScript.

You’ll run the Execute AppleScript action.

Then you’ll probably need a wait for VLC to be frontmost trigger for KM.

Unfortunately VLC’s AppleScript Dictionary doesn’t allow changing playback properties such as speed, so you’ll need to send the appropriate keystrokes with KM.


Best Regards,
Chris

set _proceed to false
tell application "iTunes"
set _sel to selection
if length of _sel = 1 then
set _sel to item 1 of _sel
set _file to _sel’s location
set _proceed to true
end if
end tell

if _proceed then
tell application "VLC"
activate
open _file
end tell
end if

1 Like

Thanks so much. I tried that and also tried this script:

tell application "iTunes"
set _sel to selection
if length of _sel = 1 then
set _sel to item 1 of _sel
set _selAlias to location of _sel
delete _sel
else
beep
return # BAIL-OUT!
end if
end tell

after the itunes spinning wheel it actually says "AppEvent " timed out
I also get a spinning wheel inside VLC

Hey Gene and everyone else,

When posting actual code use «pre» and «/pre» tags to preserve its formatting. (Standard html tags with less-than and greater-than brackets - Discourse won't let me write them verbatim.)

GENE: If you'll send me a screenshot off-list of what your selection in iTunes looks like before you run the script I try to help you troubleshoot this. listmeister@thestoneforge.com

-ccs

Thanks for your help.
Is the attached file (screenshot) what you meant?