Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Help Please! I need Applescript help!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jf4m" data-source="post: 1331447" data-attributes="member: 225271"><p>Hi everyone, I'm a new poster to the forum but have always searched through your vast knowledge for other issues <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I have an unusual setup at home, we have a XServe running 10.5.8 that has hard drive specifically for storing movies and TV shows. With the addition of an AppleTV to our living room, we decided that we would like all of the movies and TV shows added to iTunes. After a ton of converting and adding meta data, I finally have all the files we currently have in iTunes. The problem is, tomorrow when I rip yet another princess DVD for our daughter and add it to the movies folder, how do I get it to be added to iTunes automatically so she can access it through the AppleTV?</p><p></p><p>I found on DougScripts page the simple applescript for adding to iTunes, but it isn't working for me. I think because of the way we have our folder structure:</p><p></p><p>Movies</p><p>>Action</p><p>>>Title 1</p><p>>>Title 2</p><p>>Family</p><p>>>Title 1</p><p>>>Title 2</p><p>ect.... </p><p></p><p>The script is:</p><p>on adding folder items to my_folder after receiving the_files</p><p> repeat with i from 1 to number of items in the_files</p><p> tell application "iTunes"</p><p> launch</p><p> try</p><p> set this_file to (item i of the_files)</p><p> </p><p> add this_file</p><p> </p><p> end try</p><p> end tell</p><p> end repeat</p><p>end adding folder items to</p><p></p><p>Please Help! I have worked on it and searched for hours and am at my wits end. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="jf4m, post: 1331447, member: 225271"] Hi everyone, I'm a new poster to the forum but have always searched through your vast knowledge for other issues :) I have an unusual setup at home, we have a XServe running 10.5.8 that has hard drive specifically for storing movies and TV shows. With the addition of an AppleTV to our living room, we decided that we would like all of the movies and TV shows added to iTunes. After a ton of converting and adding meta data, I finally have all the files we currently have in iTunes. The problem is, tomorrow when I rip yet another princess DVD for our daughter and add it to the movies folder, how do I get it to be added to iTunes automatically so she can access it through the AppleTV? I found on DougScripts page the simple applescript for adding to iTunes, but it isn't working for me. I think because of the way we have our folder structure: Movies >Action >>Title 1 >>Title 2 >Family >>Title 1 >>Title 2 ect.... The script is: on adding folder items to my_folder after receiving the_files repeat with i from 1 to number of items in the_files tell application "iTunes" launch try set this_file to (item i of the_files) add this_file end try end tell end repeat end adding folder items to Please Help! I have worked on it and searched for hours and am at my wits end. :( [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Help Please! I need Applescript help!
Top