Aliases of movie files in ~Movies/ for Front Row usage

Hi everyone.
In the first place I apologise for my bad English.
I want one applescript for folder action wich will make an aliases of all movie files (.mov, .avi, .mpeg, .mpeg, .divx ,etc.) in freshly mounted CD/DVD/HD in ~Movies/ folder because I want to play those files in Front Row.
Another Script is needed for deleting unwanted aliases upon unmounting that CD/DVD/HD.
I figured out that all CD/DVD/HD are mounted in /Volumes folder, and I created such two scripts:
On mounting drive:
on adding folder items to this_folder after receiving these_items
try
tell application "Finder"
make new alias file to these_items at "Macintosh HD:Users:USERNAME:Movies:" with properties {name:"Movie"}
end tell
end try
end adding folder items to
On unmounting drive:
on removing folder items from this_folder after losing these_items
try
tell application "Finder"
delete alias file "Macintosh HD:Users:USERNAME:Movies:Movie"
end tell
end try
end removing folder items from
I attached those two scripts as /Volumes folder action and they are working good, but there is a problem.
When I mount CD, and then when I connect my iPod, alias of CD is moving to trash and new alias to iPod is created with same name. Also, when I connect iPod, and then CD and then I disconnect iPod alias to CD is moving to trash. ****, that's not quite what I am looking for.
Apparently I have and idea, but I lack experience with applescript.
Creating alias script should work like that:
on mounting drive in filesystem
1) Scanning about 2 levels for QT supported files
2) Making alias to each movie file in those 2 levels in ~Movies/
3) Adding constant Spotlight comment (for alias removing purposes in other script) to those alias files in ~Movies/
Removing unwanted Aliases:
on unmounting drive from filesystem
1) Scanning ~Movies/ For alias files with constant spotlight comment
2) removing those alias files (moving to trash preferably, for security purposes)
This way script would make only good aliases, and there could be multiple drives mounting into system. Apparently, after unmounting any drive aliases with constant spotlight comment will be moved to trash, but I don't have any idea for that.
Can someone help me?

Hello imrik,
Firstly, I don't use OSX myself, so the rest of this post is based upon my experience under OS9 and some knowledge from OSX documentations, etc.
Folder Actions suite (terms for Folder Action's handler) is defined in StandardAdditions.osax, that is located at (probably):
/Library/ScriptingAdditions/StandardAdditions.osax
In brief, the dictionary states (under OS9):
on adding folder items to fda after receiving aa
-- fda is alias of the folder that receives new item(s)
-- aa is list of aliase(s) the folder fda received
end adding folder items to
on removing folder items from fda after losing nn
-- fda is alias of the folder that loses item(s)
-- nn is list of aliase(s) or list of item name(s) the folder fda loses.
end removing folder items from
* Open the dictionary of the OSAX in Script Editor for more details.
As far as I can tell (under OS9.1, AS1.8.3), 'removing folder items' handler always provides list of names that the folder loses, in spite of the description in OSAX dicitonary.
I don't know the reason why 'removing folder items' handler provides {} in 'after losing' argument in your environment. It should provide list of names of unmounted volumes (unless '/Volumes/' directory is something so special as to deceive Folder Action Server in some way.)
(Possibly your method to check the handler's arguments is not appropriate.)
If you want to check the class of value/object in AppleScript, the proper way is to use a code such as SCRIPT1:
-- SCRIPT1
set x to (path to desktop) -- alias
--set x to {1,2,3} -- list
set c to class of x
display dialog ("" & c) -- this will show class name string of x.
return c -- this will return class of x in result window (when run in Script Editor).
-- END OF SCRIPT1
And to check the contents of value/object, you may try SCRIPT2 (for AppleScript's native value/object):
-- SCRIPT2
-- in target script (run in e.g. Applet or Folder Actions)
set x to {1, 2, 3}
tell application (path to frontmost application as text)
activate
set the clipboard to x
end tell
-- in checker script (run in Script Editor)
set y to the clipboard
return y -- y is given in result window of Script Editor.
-- END OF SCRIPT2
So as a whole, you may try something like SCRIPT3 as your test Folder Action and SCRIPT3A as its corresponding checker:
-- SCRIPT3
on adding folder items to fda after receiving aa
tell application (path to frontmost application as text)
activate
set the clipboard to {fda, aa}
display dialog ("" & (class of aa) & return & (class of (aa's item 1)))
end tell
end adding folder items to
on removing folder items from fda after losing nn
tell application (path to frontmost application as text)
activate
set the clipboard to {fda, nn}
display dialog ("" & (class of nn) & return & (class of (nn's item 1)))
end tell
end removing folder items from
-- END OF SCRIPT3
-- SCRIPT3A (to be run in Script Editor)
set y to the clipboard
return y -- clipboard contents is displayed in result window of Script Editor.
-- END OF SCRIPT3A
That's all for now.
Good luck,
H
  Mac OS 9.1.x  

Similar Messages

  • Can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!

    can't play mov files after update for MAC OS 10.6.8. Can't edit in Final cut anymore!. SHould i by a registration code for QT 7 Pro? I can't play mov files at all.. they were okay in my final cut time line. Now i can't see them!!! I can't import movies from my camera!!!
    Help from Brazil!!!
    Tks

    David,
    tks for your help !!!
    Hi people, first, tks for Birdman308 for his link
    https://www.hightail.com/dl?phi_action=app/orchestrateDownload&rurl=https%3A%2F% 2Fwww.hightail.com%2Ftransfer.php%3Faction%3Dbatch_download%26batch_id%3DOGhkZ28 xeWFiV3dYRHRVag
    and makbookpro as well for his link
    http://blog.lib.umn.edu/mcfa0086/discretecosine/164630.html
    Now i can back to work!!!

  • Burning a QT .mov file to CD for Windows use.

    I have tried burning a QT .mov file to CD for Windows use with Finder and with Toast T 6, Mac & PC option. I burned the QT .mov file and Windows QT Installer on to the CD with both above apps.. However, when I try to read the CD on a Windows PC, it doesn't see the QT .mov file. It did see the Windows QT Installer and you could use it to install QT for Windows on a Windows PC. What is up with the QT .mov file not showing up on the Windows PC?
    Thanks!!!
    G5 Dual 2.0Ghz Power Mac   Mac OS X (10.4.6)   2.5MB RAM

    OS 10.4.6 Disk Utility does give you the option for multisession burning. I used Toast T 6 and it's also suppose to support multisession burns. However, since you mentioned it, the file that you could see (QT Windows Installer) on the Windows PC was the second file I burned. The first file was the QT .mov which you couldn't see on the Windows PC. Maybe Toast T 6 has the same limitations as ver. 5? The only thing I can do is try to reburn the CD all in one session, i.e., with the QT Windows Installer and QT .mov file on the same session and see if that works. What do you think?

  • ITunes Rental Movies Do Not Play in Front Row on Computer

    Surely I cannot be the only person who would like to watch a rented iTunes movie on my computer using Front Row?
    My iTunes library is on an external drive and when I open and browse Front Row, everything BUT the rented movies appear in my movie list. Purchased movies are there, video podcasts are there, home movies are there, just not the rented ones. Why is that?
    I don't have an Apple TV, just a laptop an external drive and a desire to watch rented movies through an application designed to play ALL my media, not just select media.
    And I haven't seen any info on Apple's website to indicate that rentals would not work with Front Row. And I do have all the latest Apple software updates.

    Front Row in Mac OS X 10.5.x (Leopard) has access to your iTunes and iPhoto libraries without launching those applications. You're right, rented moves don't appear in Front Row and there have been a couple of Front Row updates since rented moves became available. The only thing I can think of is that the rental terms can't be enforced when the movie is played in Front Row instead of iTunes. For example, Front Row's access to your iTunes library is really read-only. You can't delete files, apply ratings or change any other settings on the files in your library through Front Row. I think the way iTunes handles rental movies, the file has to be updated with some kind of tag when you start to play it so iTunes knows how much longer you have to finish playing it. So, it's doubtful Front Row will be able to do this. I don't think Apple has ever made a statement one way or the other about this, it's just my opinion.
    -Doug

  • Any way of getting Real Media files to play in Front Row?

    I was just wondering if there is any way to get Real Media files to play in Front Row? I realise this is probably not possible, but I thought I'd ask people who know more about this than me!!
    I do have Real Player installed if that helps......

    Probably not right now. Since Front Row uses iPhoto to play slideshows, the DVD Player to play DVDs, iTunes to play MP3s and the QuickTime Player to play videos, there's no way now to change the default video player application. All of those connections are hard-wired into the software. Apple has not released any kind of SDK (software development kit) for third parties to add on to Front Row, so it would have to be an unauthorized hack to get another video player to run. I might suggest you send Apple some Mac OS X feedback and let them know you'd like to see third party add-ons to Front Row.
    -Doug

  • Media encoder inserts black frame at beginning, when converting my MOV file to H264 for YouTube 720pHD

    I'm using Adobe Media Encoder to convert my MOV file to H264, and selecting "YouTube 720pHD" (for Instagram) as I was instructed by someone at Adobe over the phone. But it inserts a black frame at the beginning or end. When I open the converted file on my desktop, the black frame is the first frame. After I upload to Instagram, the black frame is at the end. How can I get rid of the black frame?! Please help!

    Welcome to the furum, Forrest.
    Hmmm. I don't recall hearing of that problem. There may not be many users who can offer a solution.
    This workaround should work, however: Open the exported movie in QuickTime Player and remove the first frame. (I think it's only the first frame that is black, not the first second. Remove all the black, whatever it is.) Save the movie. That may cause QT Player to save it into a new movie. Use the modified movie for your Web site. QuickTime Pro is required — $30 from Apple.
    Note that you've posted in the iMovie 6 forum, not the iMovie HD forum for iMovie 5. There are fewer current iMovie 5 users here. Most were iM5 users, however, so someone might remember this problem.
    Karl

  • Exporting .Mov files at 24fps for Final Cut Pro 5

    I work at an animation production house and we're trying to export .mov files from QT 7.1.2 at 24fps so they won't have to be rendered in a FCP project which is a 720p project with a frame size of 1280x720, we're experimenting with two codecs. We're using Motion Jpeg A and Photo Jpeg, selecting 24fps but for some reason they import into FCP 5 at 10fps. It's as though QT isn't outputting accurate 24fps .mov files. When I export .mov files from FCP they import back into FCP without having to be rendered. What's the difference between the ones exported from QT vs. the .mov files exported from FCP. We're using the exact same settings and files....? The reason we need to use QT to do this is because it needs to be a somewhat automated process (lots of stills to work with) and our PA's are working on Windows with QT only.

    You should post your inquiry at Final Cut Pro section for better support. Anyway, Final Cut Pro does not always recognize the frame rate correctly, depending on which application (and possibly which codec) you used to compress video. For example, Snapz Pro X and Adobe After Effects don't get along with Final Cut Pro in this respect. Furthermore, compressing video in H.264 will be a bad idea. So simply adjust the size of Canvas so that it won't cover the whole screen. In this way, you can even replay video on Canvas and even send it for final production.

  • Problems viewing exported .mov file from Mac for viewing on PC

    I am working with a reporter who has a PC at home while I am editing a video for her using FCE 4.1 on a MacBook Pro, using HD footage from a Canon Vixia HF20 AVCHD camera. I burned a draft of the video we are working on for her to look at on her home PC, exporting the FCE project as a straight .mov file. But she could not view it on her PC even though she has viewed .mov files on her computer in the past (but this is the first time she has tried to look at .mov file exported from FCE on a Mac). What might the issue here be? Do I need to export the file in a different way? Might she have an older version of Windows Media Player or be unable to view certain versions of .mov files on her computer? Should I hand it off to her instead as an .mp4 file? Any help much appreciated.
    Douglas

    You'll need to copy the Apple HDV Codec to your MacBook. Since it won't be Intel native (unless you get FCP 5.1) you'll have to force QuickTime Player to run in Rosetta; it should be a setting in the Get Info window for QT Player. You should then be able to view the video (though I haven't tested this myself).
    Hope this helps.

  • MOV files not recognized for import

    I must have had an old or defective QuickTime player on my editing system when I loaded Adobe CS4. I do not have a QuickTime option for import. I updated the QuickTime Player and it is now working properly. How do I get Adobe Premiere Pro CS4 to now recognize my MotionLoops MOV files? Hopefully without reloading CS4!

    Bill, that's strange indeed. Can you successfully play the MotionLoops files directly in the QuickTime player?
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • 2 gigs of .mov files too big for dvd?

    I have 3 .mov files that I want to burn to a dvd. Each individual file is approx 700 meg or so. When I try and add the first file, it appears that it takes up 3.9g of 4g. Dragging the 2nd file in gives me the "Project Duration Error"
    "Your project exceeds the maximum allowed content duration. You will not be able to burn your DVD while your Encoder Setting is Best Performance. This can be changed in your iDVD Preferences."
    Changing that pref allows me to get the 2nd file on the dvd, but I can't get the 3rd file on the dvd without idvd complaining. Is there really that much overhead to make a dvd? I would think that with < 2g of media there should be no problem burning a dvd..
    BTW-I have made sure that I checked that project->project info and set the size to a single layer dvd....
    seems really difficult for something SUPPOSED to be easy
    thanks in advance for any help....

    ahhh, that is the problem then. I have 3 movies, each one is approximately an hour, so that must be why...
    On another note, does anyone know if another application will allow me to write the 3hrs of video on 1 dvd? We have DVD studio pro, I figured iDVD would be quicker/simpler to get up and running with, so that is why I tried using that first...
    thanks again

  • Every .mov file crashes QT7 for win

    I can't seem to find anyone else with this error. Every time I click the play button a video will begin to play and then QT crashes after approx. 1 sec. I get the "QuickTime Player has encountered a problem and needs to close" windows message. In the error report, the error sig is a follows:
    AppName: quicktimeplayer.exe      AppVer: 7.0.3.25      ModName: quicktimeh264.qtx
    ModVer: 7.0.3.25      Offset: 00012ec0
    I'm using win xp pro, sp2. have a radeon 9800 pro with the most recent ATI drivers. Anyone have any help they can offer? I've tried reinstalling, etc...
    Thanks!

    Actually, it seems that this only happens when I'm playing local files. If i'm playing streaming content, I do not crash. For example, a quicktime video embedded in a webpage is fine, my brower does not crash. If I try to open a local .mov file, either through the stand-alone player or through a browser, I crash and get the above error, though. Any insight, please?

  • Move file or mark for system move file - How?

    Hello,
    I finally bought Lightroom. Searching these posts I saw someone commenting about why a person would want to use LR to move a file. Seriously? Because I Want it to be a full on DAM solution. And the first mess I must de-tangle involves some years of very bad habits, both in iphoto and in my own head.
    Therefore, there is something that I don't think Lightroom can do yet but I would love to be found wrong. I don't think LR is much help in marking for the system to find later out side of LR, and then moving the files, right, wrong?
    I don't care if it marks the file in a way that the system can later find it and move it, or, if LR moves a selected file set already in LR. Either way what I am trying to do is organize correctly and that must mean moving found sets of files to where they belong.
    It seems like overkill to purchase iView just for this one task. Qpict is a lot cheaper than iView ($35 vs $199) and can move files around. I was just wondering though why LR cant yet do this? OR, am I wrong? Does anyone but me think this is important? Any others requesting this (LR is missing applescript support on the Mac side as well)
    Thanks
    David

    levelbest,
    If I understand your question, you've got many images in iPhoto that you want to reorganize and import into Lr. Is that the issue?
    If so, there are various ways to tackle it. One easy way is to create the new folders as you go.
    On your Desktop, make a new folder (Shift-Cmd-N). Name it "For Lr Import."
    Now open iPhoto. Scroll back to your first image in iPhoto. Let's say it's from the year 2000. Select that first image plus the photos you want to group with it. Maybe they are all shots of Niagara Falls. Export only those photos (full-size) to that Desktop folder you just made: "For Lr Import."
    Now switch to Lightroom. Go to File: Import Photos (or Shift-Cmd-I). In the window that opens, navigate to Desktop>For Lr Import. Select all the photos in that folder (click on the the first and then Cmd-A), and click Choose.
    That window will close and the Lr Import dialog will open. Your choices here will depend on what kind of files you're working with - jpeg or raw, and what you want to do with them. The options are easy to figure out. This method works faster if you choose a "move" option rather than a "copy" option because it will move the images out of the desktop folder and into whatever folder you create for them. "Copy" leaves them sitting in that Desktop folder, and you've gotta clear 'em out manually before the next export/import -- an extra step each time.
    So here's one way to go (in the Lr Import dialog):
    Under File Handling, select "Move Photos to a new location and import."
    Under Move To, navigate to Pictures. Create a new folder. Name it Photos 2000. Inside that folder, create another new folder. Name it Niagara Falls.
    Under Organize, select By Date and pick a date format.
    Don't miss taking advantage of the backup option. Check the "Backup To" box and create a similar hierarchy on a different drive. You could call the top-level folder Photo Originals.
    Now you've created a hierarchy you can continue using with each export from iPhoto. Just keep adding folders to Photos 2000 until you exhaust that year. Then create Photos 2001 the same way. All your photos will eventually be organized by year>topic>date (or however you set up the hierarchy).
    If you are converting raw to dng during import, the process is the same. You can use the backup function to preserve your raw files.
    Good luck,
    Jack

  • Movie file too large for iDVD

    I have a 13GB .mov file created using FCE Exported w/QT Conversion (prior it was a 30GB file) but it's still too large to place on DVD using iDVD. Is there a way to (1) Shrink my file size to be compatible with iDVD or (2) re-set iDVD to accept larger file sizes (I don't use dual layer discs)? If the answer to both of those is no, is there a specific DVD conversion software that is more versatile than iDVD? Thanks

    The length in time is what's important for burning to DVD, not the input file size. With iDVD you can burn a video up to 2 hours in length on a single-layer DVD-r (but that capacity includes your DVD menus, titles, etc.)
    Assuming your source is DV video, your original 30GB file is about 2 hrs 20 mins long. You will either need to shorten your video to less than 2 hours, or cut your video into two segments and burn it to 2 DVD-R's (one segment on each DVD-R).
    Compressing the way you did by exporting to QT Conversion is only going to make your video look worse and doesn't solve the length issue - you still have a 2 hr 20 min video. After you fix the length of the movie, you should export to QT Movie, and UNcheck the option for "Make movie self-contained".

  • Can't add movie file / bad movie atom error

    Hello,
    I'm having a very strange problem.  I just started within the last few days trying to organize an Itunes movie database so that I could see all of my movies streamed over my Apple TV.  Most of the movie files I have been able to add with no issue, aside from the fact that they always initially get added to the "Home Movies" folder and then I have to move them into the other movie category.  So then I come to one of my files which is a rip of one of my BluRay movies.  It is in MP4 format, so that should be no issue.  I was initially able to add the movie, and it did appear in the Itunes Home Movies section.  But I didn't like the way the file was named, and I wanted to add the poster art.  I right clicked and went to change what I wanted, the first being the name of the movie.  Well prior to me changing the name of the movie, I had the tab option where you could add the movie art.  As soon as I changed the file name, that tab went away.  Well, I figured maybe I should delete the movie out of the Itunes database and try to re-add it.
    Well from this point it's been downhill.  Every time I try to add the file back in, it won't appear in Itunes.  I then tried playing the file in VLC player, and the file appears to open, and the ticker is moving along, but there is no video or sound.  Now this file played just fine before I tried to move it to Itunes.  I then tried playing it via Quicktime and I get some weird -2002 bad movie atom error.  What the heck is going on!  I have searched the net on this error, and the fixes seem to be all over the place, and none of them have worked for me.  One thread talked about the tags somehow being changed, but I cannot figure out what tags people are talking about or how to fix this.  If anyone has a solution to this I would greatly appreciate that.  thanks. 

    It is against the rules of the forum to discuss extracting from film blu rays. Blu rays used for data storage fine.
    I am sure there are plenty of sites out there that can advise on the correct steps to take here.

  • Rented movies don't appear in Front Row

    There are archived posts on this from a year ago but nothing recent. I use a projector with a Mac for a home entertainment system and Front Row works well most of the time.
    I just downloaded a rented movie which then appear in the Rented Movies folder of iTunes. When I start Front Row purchased movies appear in the Movies list but there is no sign of the rented movie. Front Row does not seem to be able to play rented movies. If this is the case then there is no point in me renting movies because I need to play them in iTunes, which gives poorer quality ("full screen" mode actually reduces the picture size to about one quarter of the screen).
    iTunes 8.2.1, Front Row 2.1.7

    I can play rented movies from iTunes on my iMac G5 screen but, as I reported, in "full screen" mode it is a quarter size - maybe a G5 quirk
    Again, I would recommend you post in the iTunes forum. My iTunes does NOT display differently. You may be right, it may be a G5 thing, but you should find out for sure.
    My solution is simple - I will not be renting any more movies from the iTunes Store.
    You are not the first to request the ability to view rented iTunes movies in Front Row here in the Apple Discussions. I would suggest you send feedback to Apple. They do keep track of the requests:
    http://www.apple.com/feedback/macosx.html
    -Doug

Maybe you are looking for

  • Apple TV Keeos freesing up with Apple Logo on screen

    I am running Apple TV with version 2.0.2. I have it connected to an Onkyo receiver with an HDMI cable. The receiver runs to my TV (Vizio 47" LCD). I will turn on my system and all I will see on the screen of my TV is the Apple logo. I can hit any but

  • Will notifications and messages pop up if iphone is on lost mode?

    My iphone was stolen and to protect my identity and everyone else I need to know if notifications, messeages, facebook messages etc... show up on the main screen if iphone is in lost mode?

  • Managed server not communicating back to admin server - JMX issue?

    Hi, I have a domain that consisted of: 1) 2 managed servers deploying an EAR for online use on server A 2) 1 managed server being used as a Queue Server for the JMS Module/JMS Server on server A 3) 2 managed servers deploying an EAR for online use on

  • FND_REQUEST_SET.FNDRSSUB

    Hi, I want to submit FND_REQUEST_SET.FNDRSSUB as a anoymous block It has two IN parameters appl_id and set_id How can i get these parameters?? basic reason why am submitting this from backend is...i have a CP which has a executable FNDRSSUB and the C

  • Cisco Prime NCS Install

    Hi, I am trying to play around with NCS. I have ESXi box (4.1 and 5) and have tried using both ver 1.0 and 1.1 of the appliance. The error i get on boot up is Failure during Network Control System startup. Check launchout.log for details How can i ch