AppleScript help: setting video kind with Hazel

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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?
gcoghill
 
Posts: 290
Joined: Tue Sep 18, 2007 8:09 am
Location: Kent, OH

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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
gcoghill
 
Posts: 290
Joined: Tue Sep 18, 2007 8:09 am
Location: Kent, OH

I see you've found: this. :)

Have you tried contacting Doug Adams?
sjk
 
Posts: 332
Joined: Thu Aug 02, 2007 5:43 pm
Location: Eugene

sjk wrote:I see you've found: this. :)

Have you tried contacting Doug Adams?


Indeed I did, and yeah that's a good idea.
gcoghill
 
Posts: 290
Joined: Tue Sep 18, 2007 8:09 am
Location: Kent, OH

Dropped a line to Doug, will report back once I hear from him.
gcoghill
 
Posts: 290
Joined: Tue Sep 18, 2007 8:09 am
Location: Kent, OH

Did you ever get this working? Sounds exactly like what I need.
vinyl_vibe
 
Posts: 22
Joined: Sat Mar 12, 2011 8:36 am


Return to Support