Page 1 of 1

AppleScript help: setting video kind with Hazel

PostPosted: Fri Apr 01, 2011 2:31 pm
by gcoghill
Been trying to figure out how to set up AppleScript & Hazel to set the video kind of movie files to "TV Show". I found this script which should do the trick, but being a noob in AppleScript I'm not sure how to implement it in Hazel.
Code: Select all
tell application "iTunes"
   set newAddition to (add input)
   tell newAddition to set video kind to TV show
end tell

I'm pretty sure the (add input) needs to be removed as it probably has to do with a dialog window and manually selecting files. Any tips on how to do this with Hazel, as either a standalone or embedded script?

Re: AppleScript help: setting video kind with Hazel

PostPosted: Tue Apr 05, 2011 3:00 pm
by Mr_Noodle
I'm not sure how/what this script does but doing a quick check it seems that "input" is a variable that needs to be define. Not know what "input" is supposed to be in this case, I can say right off the bat what it needs to be set to. Maybe someone else more familiar with AppleScript and iTunes can chime in.

Re: AppleScript help: setting video kind with Hazel

PostPosted: Tue Apr 05, 2011 3:11 pm
by gcoghill
I tried doing a plain "tell iTunes to set video kind to TV show", but that didn't work. I don't know enough AppleScript to troubleshoot these things.

Re: AppleScript help: setting video kind with Hazel

PostPosted: Tue Apr 05, 2011 4:23 pm
by sjk
I see you've found: this. :)

Have you tried contacting Doug Adams?

Re: AppleScript help: setting video kind with Hazel

PostPosted: Wed Apr 06, 2011 9:25 pm
by gcoghill
sjk wrote:I see you've found: this. :)

Have you tried contacting Doug Adams?


Indeed I did, and yeah that's a good idea.

Re: AppleScript help: setting video kind with Hazel

PostPosted: Thu Apr 07, 2011 1:07 pm
by gcoghill
Dropped a line to Doug, will report back once I hear from him.

Re: AppleScript help: setting video kind with Hazel

PostPosted: Sat Feb 28, 2015 10:16 pm
by vinyl_vibe
Did you ever get this working? Sounds exactly like what I need.