|Mar 27, 2009, 06:22 AM||#1|
[Apple Script] auto label unplayed movies
I'm trying to write a script (very little experience here) for a folder action that will label in blue all the video files in my Movies folder that have never been played.
I find myself way over my head on this. Can anyone help me out ?
|Mar 27, 2009, 10:26 AM||#2|
Have you looked into the AppleScript iTunes library? I belive there's an element in there that would allow you to do it, but not sure (on a PC in a lab right now).
You might need to also teach yourself AppleScript before you go any further. I recommend you search Google for any tutorials that might help out.
17" White Intel iMac 1.83GHz, 250 GB HD, 2 GB RAM || iPod Touch 16GB w/ 3.0 || 15" Intel MBP 2.4GHz, 250 GB HD, 4 GB RAM
|Mar 27, 2009, 11:24 AM||#3|
I looked in the iTunes dictionary, but I'm not really sure what to look for. In fact, why is iTunes involved at all ?
The way I picture it, the script would check in a folder if the video files (all avi actually) have been played or not, and if not, assign a blue label, if yes then no label.
The question is, is there a way to check whether the file was played (or opened) or not. If not, I'm guessing I'd need to do it in 2 scripts. One that watches for added files and labels them as soon as they are added. The 2nd would remove the label as soon as the file is played.
Am I looking at this wrong ?
|Mar 27, 2009, 12:39 PM||#4|
Ok I've gone for option 2 as it seems more straight forward. I've created succesfully one script that labels any video file added to my Movies folder. It looks like this:
Then I created a 2nd script that would remove the label when a video file is opened. It doesn't work though. This is what I wrote so far:
Any ideas ?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Can you write a script to auto delete text messages?||bobfitz14||iOS 7||6||Mar 23, 2014 04:26 PM|
|Auto-login Multiple users who then launch a script||RobQuads||Mac OS X Server, Xserve, and Networking||6||Oct 9, 2013 07:11 PM|
|Script to Auto Record incoming Skype calls with Piezo||Shawzborne||Mac Programming||1||Aug 13, 2013 04:05 PM|
|Launchd and auto-enroll certificate script not working||blabla296||Mac Programming||1||Jul 29, 2013 01:28 AM|
|Script to auto quit hung app||UFGrayMatter||Mac Basics and Help||6||Nov 3, 2012 12:09 PM|
All times are GMT -5. The time now is 10:11 PM.