Using Applescript to convert avi dropped into a folder to iTunes

Hi everyone,
Im new to Applescript. Im trying to write a script that will take .avi files dropped into a certain folder and automatically start iSquint, add the files to iSquint and then start the conversion.
I use Vuze to download video. Vuze will automatically move completed downloads to a folder named "to be converted".
My goal is to set that folder up so that every time something is moved to the folder, it will start the script and convert the files to an iTunes format. iSquint will automatically add them to my iTunes library once the conversion is complete.
So Vuze and iSquint are doing the start and finish of this task, as well as the heavy work of actually downloading and converting. Its just all the stuff in the middle that I need.
Ive gotten as far as getting the script to get Finder to point to the folder and start iSquint. But thats it. Also, the script will only get Finder to point to the folder if Finder is already open. If everything is closed, nothing happens.
tell application "Finder"
activate
set target of Finder window 1 to folder "To be converted" of folder "My Downloads" of folder "Movies" of folder "mark" of folder "Users" of startup disk
end tell
tell application "iSquint"
activate
end tell
Can someone get me moving in the right direction. Oh yeah did I mention I hardly know a thing about Applescript, so you might need to add the "obvious" details.
thanks!
mark

Since you hardly know a thing about Applescript, you might first have a look at this [Web page|http://www.macosxautomation.com/applescript> about AppleScript and this [Beginner's Tutorial|http://www.macosxautomation.com/applescript/firsttutorial/index.html].
Then you might try to attach a Folder Action script to the folder named “to be converted”.
See [Folder Actions Reference|http://developer.apple.com/mac/library/documentation/AppleScript/Conc eptual/AppleScriptLangGuide/reference/ASLRfolderactions.html] in the [AppleScript Language Guide|http://developer.apple.com/mac/library/documentation/AppleScript/Conceptu al/AppleScriptLangGuide/introduction/ASLRintro.html#//appleref/doc/uid/TP40000983-CH208-SW1].
See also the example scripts in this folder: “/Library/Scripts/Folder Action Scripts/”, particularly the example entitled “add - new item alert.scpt”.
Your Action Folder script should look somewhat like the following:
on adding folder items to this_folder after receiving added_items
try
tell application "iSquint"
activate
--the rest of your code
end tell
end try
end adding folder items to
where this_folder is the folder named "to be converted" and added_items is a list of the .avi files added to the folder.
Good luck!
Message was edited by: Pierre L.

Similar Messages

  • I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens.

    I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens. 
    I checked my secondary harddrive and there is plenty of memory.
    I emptied my burn folder but the photos still will not drop into it.
    I created a new burn folder, no luck with this either.
    230 photos is the maximum size of the events I am trying to move from iPhoto to save elsewhere.
    I have shut down and restarted my computer.   No change. The photos still will not drop out of iPhoto.
    My Mac Computer Storage shows that I have 62.2GB free out of 249.2GB (movies, photos and contacts taking up the most space)
    My Lacie External Harddrive (2TB capacity) shows that I have 1.79TB available.  It shows that 207,729,520,640 bytes (207.73 GB on disk) are used.
    I have never had this problem before.  It is usually very easy to move my photos from iPhoto.
    I am not a computer expert (I work in surgery so don't have a need for lots of computer knowledge) so please explain in simple terms.  
    Thank you so much for any help you can provide.
    I really appreciate it.

    YES Terence!  Thank you. Exporting allowed me to move my photos from iPhoto into the Burn Folder on my desktop.   But that doesn't explain why I'm having to go that route now.   Have I done something (accidentally changed some setting) on my computer that will not allow me to just click and drag anymore?   I really liked the convenience of the click and drag option. 
    I don't have the time tonight to export and burn a lot of CD/DVDs.  I'll try that tomorrow and make sure my photos are moving properly.  I also need to export photos to my external hard drive to make sure that route is working. 
    Wouldn't you know that my Apple Care Plan runs out this Wednesday?!  I need to make sure everything is working properly before that expires. 
    Thank you so much for your help.   I really, really appreciate it.

  • Automatically open files when dropped into a folder

    I have a folder which has a constant stream of images being dropped into it. Is it possible for Photoshop to automatically open recently added images of a certain folder, then save (as .psd) and close to a different location?
    It would be nice for Photoshop to do this overnight as new images are being dropped into the folder.

    As a start you could read this thread.
    http://www.ps-scripts.com/bb/viewtopic.php?t=1735&postdays=0&postorder=asc&start=0

  • Converted .avi file to .mp4 file but iTunes still does not accept video

    I've just got my new Ipod Classic 160gb and I've tried putting my .avi files into my iTunes (V. 7.5) library, but I couldn't. Then I found out iTunes does not support .avi and went and converted a sample file into .mp4 file to try it out. It did not work as well. I have not found anyone with the same problem as of yet. Hope someone can help, because if I can't put any videos in, the 160gb huge space will be wasted and so will the money D:

    Here is the Video Specifications for the iPod Classic:
    Video
    H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
    Find a video converter that will output the files to meet the specifications above, and all should work well. Unfortunately, I don't use .avi files, and have no need to convert any, so I don't have any resources for you however, this search might yield some results:
    http://www.google.com/search?rls=en-us&q=convertavi+tompeg&ie=UTF-8&oe=UTF-8
    Beavis2084

  • Drag and Drop is not opening the highlighted folder so I can't drop into route folder

    New issue since Yosemite upgrade:
    When I grab any file to drag & drop somewhere, and move that file over a folder highlighting it to open a route folder to drop it into, it won't open the folder to reveal its contents. I can only drop the file into that folder. So it's one folder at a time. Man, it can take me almost a minute to get one file where I want it to go when there is multiple subfolders. This is true for any folder anywhere including the sidebar and within any application that opens a finder window for saving etc. It is very limiting and frustrating.
    Also, it is only for my user login, the other users work fine. But I really don't want to have to create a new one.
    Please, help! I would appreciate guidance from anyone, or at the least sympathy to know I'm not the only one.
    My mac specs:
    OSX Version 10.10
    Macbook Pro Retina 15" Late 2013
    2GHz Intel Core i7
    Intel Iris Pro 1536
    (also sorry about the category if it's wrong, there was no 'finder' category)
    Stu.

    Sorry, i forgot to write select RELAUNCH. If the newly created one didn't fix the problem, then something else is amiss. One way to determine that is to log into a good admin account, open up Users & Groups, delete the bad account, saving its data, recreating it with the same credentials, logging into the newly created one, and seeing if the problem's fixed. If so, then open the save data disk image stored in /Users/Deleted Accounts/ and slowly move plists from the Preferences folder into the new account's folder, restarting, and seeing if the problem reoccurs. Eventually, you'll isolate the bad or corrupting items. The procedure's long and time-consuming, but faster than resetting all the preferences for everything you've already set.

  • How can I combine all of my music into one folder for itunes

    I have a PC running windows XP I have just bought a IPad 3 and I am trying to consolidate all my music into one folder on one drive so that the sync does not have a problem finding many tracks every time I connect my IPad please can anyone help.
    Kind Regards
    Derek

    Hi Derek. Do you know where your active iTunes library is? If not download & run the script iTunesInfo which should output something like this:
    I'm interested in the values of the first four lines. If needed you can hide your username with <User> if it's in there. Also worth checking that media folder location given by the script agrees with Edit > Preferences > Advanced. If not, let me know.
    Which of your drives has the most free space? Ideally you should move your current library to that drive as X:\iTunes (when X: is the drive letter) and then consolidate all your existing content that wasn't inside the current iTunes Media folder. I can descibe what to do on a generic basis but with the details I can produce a step-by-step guide that will be easier to follow.
    tt2

  • I want to use adobe to convert aPDF file into a word document that I can edit.How??

    I select a PDF file and then use adobe to open it .It then asks me do I want to "save" the file.I save it and when I open it there is nothing there?There is no option to immediately open it in word!
    How does this thing work?

    Good day,
    After you've saved the converted file to your hard drive, you'll want to navigate to where it's been saved and then open it in Word. 
    Alternatively, you could convert your files using ExportPDF's web interface.  To do this, simply visit http://exportpdf.acrobat.com and click 'Sign in' at the top right corner.  Enter your Adobe ID (email address) credentials to log into the service. After you're logged in, you should see the ExportPDF interface, with a button saying 'Select PDF file..' to get the process started.
    Please let us know if you have any questions.
    Kind regards,
    David

  • Converting .avi files into .mp4 .mov or any other file type for ipod

    Hello!
    I've got .avi file and i want to convert it into any playable file for my ipod is there some program? i've checked quicktime links and i ended up at a page with a 30 euro bill...
    anyways can anyone help me?

    You will find best advice over on the video forum. Most of us here are photographers.
    Click on the link below and copy and paste your question again. Good luck.
    Video questions: Click here for Premiere Elements Forum

  • Using chmod to converting document back into Unix Executable FIle

    Can someone remind me how you change document files back into Unix Executables with chmod? I'm a Unix novice but have done this before and can't remember how to do it. Is this slip from exec to doc a file extension problem?
    Thanks.
    MacBook Pro 2.0/2GB/100GB   Mac OS X (10.4.7)   also own titanium Powerbook G4 1.0/512K/80GB

    Hi Toolshed4,
    > I assume the permissions change when the file
    is copied through the Finder.
       When a new file is created, even by copying, I believe that the new permissions are determined by the system umask, so I would expect a file to have permissions of 644. I think that ownership is determined by the creating process and the group is inherited from the parent directory. On the other hand, if the file is moved (instead of copied) within a volume, permissions shouldn't change.
    > Do I need to become the root user to do this?
       I can't answer any questions about permissions without knowing what they are. The following command has a few options selected that should provide all of the permissions related information of which the ls command is capable of getting.
    ls -leoR /<Path>/<to>/<Script>
    If instead of a script the above path points to a directory, the above listing will descend into subdirectories recursively, thanks to the "-R" option. The man page for "ls" will describe the other options I've selected.
    Gary
    ~~~~
       Said the attractive, cigar-smoking housewife to her
       girl-friend: "I got started one night when George came
       home and found one burning in the ashtray."

  • Can't drag-and-drop into applications folder

    Just got a new iMac last week, my old ibook finally died. I'm trying to install firefox in the imac and i can't. It downloads fine, I can open up the .dmg file, but then I can't drag the icon into the applications folder. I can drag it, but nothing happens when I try to drop it. I've tried using the alias folder, the folder on the dock, just doing it in the finder window, nothing works! tried re-downloading, everything i can think of. Since it is a new machine, do i have something in preferences set wrong? Help!!!

    Do you have "allow user to administer this computer" checked off in your account in System Preferences -> Accounts ?
    Also, right click on your Applications folder, and hit "Get Info" Make sure that the group that owns it is "admin" and "admin" has read and write privileges. If it's admin, but it says "read only" click on the lock, put in your password, and flip up the group privs and change it to read and write.
    If the group is NOT admin on the Get Info screen, you will need to launch /Applications/Terminal.app and issue this command:
    chgrp admin /Applications

  • I know how to convert wma files into aac but the itunes program messed all my album how can i fix that

    When i convert my wma files and put them into my itunes program it converts them automaticly but it mess up all my albums it split albums and it put lonely song here and there and i cannot put them back were they bellong...why it does that ? How can i fix that because i do have a lot of albums and i would like to convert them all and make sure that all song are in the album were it should belong ?
    Thank in Advance.
    Yan.

    Filling in the Album Artist will fix things most of the time, though if you also have an older iPod then you might find the album splits up again on your device. For more information see my article on Grouping tracks into albums.
    tt2

  • How to find and replace using AppleScript for TextWrangler?

    I ran into a problem after exporting my book into EPUB from Indesign CS4. In this book the Latin diphthong æ is used. Unfortuately it didn't translate very well into the EPUB or corresponding XHTML files. Is there a way to do a batch change using AppleScript to change these symbols √¶ into &aelig; which is the code for the diphthong? If so, how?
    I also have an issue with the symbol †, in some of the documents it appears as this ‚Ć. Can I do a batch change for that as well? If so, how?
    I'm new to using AppleScript so I appreciate all of the help. Thank you so much!!

    Hello
    Here's some observations -
    æ = U+00E6
    = <c3 a6> (UTF-8)
    = <c3 a6> (MacRoman) = æ
    † = U+2020
    = <e2 80 a0> (UTF-8)
    = <e2 80 a0> (MacRoman) = †
    which likely mean that your source data is text in UTF-8 but destination (or viewer or intermediate converter) is interpreting the data as text in MacRoman.
    Make sure you properly declare the encoding of XHTML or EPUB document as UTF-8.
    Good luck,
    H

  • Converting avi.

    Im using idvd to convert avi files to dvd, and its taking pretty long. On average three times as long as the movie itself. I was sondering if this was typical, or if idvd just takes an unusually long time to convert the files.

    iDVD and iMovie were really designed for DV. Anything else get transcoded with an 'intermediate CODEC' when being brought into iMovie or iDVD.
    There are MANY flavors of AVI that don't work at all in the iApps. I've had good luck with VisualHub software in converting such files to DV.

  • Using adobe DNG convert help me please!!!!!

    I have Adobe CS5 and have just bought a panasonic FZ200. Rawimages cant be opened from this camera in CS5 so I have downloaded the DNG converter. All is well on my laptop but on the PC which is where I would really like to edit my images I keep getting an error message 'the source folder doesnot contain any supported camera raw files'. They are the same files! I have copied them on to both machines so why does the converter not see them? My laptop   runs windows 7 and the PC runs Vista - is this significant? I am really fed up with this , have been trying to get these images edited all day!!!!

    I think the problem you are having is that, when browsing using the DNG converter, you are opening the folder that contains your raw images. Notice that the prompt asks for the FOLDER that contains your raw images. Choose that folder, but don't open it. Then the DNG converter should convert the images that are in that folder. If you only want to convert one or two images, drag/drop them onto the icon that you use to start the DNG converter.

  • How to pack all used in project samples into one folder?

    i have lots of samples in various folders in my hdds, but when i work on a project i don't remember where i get it from, i just use it and forget about it. but i want to put all copies of used in my logic project samples into one folder for don't delete them in the future or to share all that folder to my friend and he can open it without missing ones. just something like battery kits savings. how to do that?
    any thoughts will be appreciated

    Go to Save as...
    At the bottom of the window is the Include Assets box. Tick it.
    Click on Advanced options. Here you choose to which assets to include within the project folder.
    wth existing projects, open them go to File : Project : Consolidate project
    JG
    Message was edited by: JG99

Maybe you are looking for