AppleScript to automatically copy a video in one of the two folders

Hi, on my drive hard, I have 2 partitions, one for my 10.10.2 OS and the other for my files. On my player I have 2 folders which I want to copy the video on: 'Movies' and 'Kids Movies. I put a "folder Action" on mounting my USB key to run this applescript I below. It automatically copies the video in my "Movies" folder, then after completing the copy, ask if I want to "Eject" usb drive via a dialog Yes or no.

My question is, what is the script to add an another dialog box before the copy request is a film 'children '. A "Yes" response, the film would copy into folder 'Film Kids', if you press 'No' it might copy the video in the folder 'movies '. Help with this script would be greatly appreciated.

My applescript so far:

property ignoredVolumes: {'10,10 30 1. 5 't', '1. Add 5 t files"} - if necessary

property videoExtensions: {"avi", "mov", "mpg", "wmv", "mp4" and "mkv"}

the value moviemacVolume to the alias (POSIX file "files/Volumes/1. ("5T / movies")

                           tell application "System events".

the value rootVolumes to disk (POSIX file ' / Volumes ' in the text)

the value allVolumes to name of every element of disc of rootVolumes

the value numofallVolumes to the County of allVolumes

Repeat with the present book in allVolumes

say application 'Finder '.

if (the present book is not in ignoredVolumes and (this book as text) is not '. ') DS_Store') then

Try

if there are alias (POSIX (' / Volumes / "& the present book) as text file ) then game trk to 1

on error

game trk to 0

end try

If trk = 1 then

duplicate (elements whose name is in the videoExtensions extension) in alias (POSIX file (' / Volumes / "and the present book) as text) to moviemacVolume

say application 'Finder '.

display the dialog box "Would you like to eject the USB drive?" button by default buttons {"Yes", "no"} 1 with the title "Eject?" give up after 60

If the button returned of the result is 'yes' then ejection of the this book

end say

end if

end if

end say

end Repeat

               end say


Replace the current command in double with:

display the dialog box "is a child movie?" buttons default button {'Yes', ' no'} 1

If the back button on the result is 'Yes' then

Duplicate (items which extension is in the videoExtensions) in alias (POSIX file (' / Volumes / "& the present book) as text) to alias (POSIX file" / Volumes/files 1.5T/movies/kid's movies / ')

on the other

Duplicate (items which extension is in the videoExtensions) in alias (POSIX file (' / Volumes / "& the present book) as text) to moviemacVolume

end if

(143506)

Tags: Mac OS & System Software

Similar Questions

  • How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    Everything you always wanted to know about the acoustics in first Pro CC - YouTube

  • How do you apply Blur to only one of the two duplicate layers?

    Hello everyone

    I have two layers of dynamic object to a panoramic photo, which is a duplicate of the other and returned vertically.

    I would like to apply Blur to the inverted layer, so this step appears as a reflection of the other layer.

    However, when I apply the blur to the image reversed in its .psb document window, the blur effect ends on the two layers.

    Why the blur apply to two separate smart objects and how could possibly apply Blur to only one of the two double layers?

    Please advise me.

    Thanks as always,

    EAD

    Even if you see two separate layers, Photoshop is not to see them in the same way. When you using duplicated layer (Ctrl/Cmd + J) command, which tells Photoshop to create clones SO double layer sets SO. Update content on one of the 2 cloned layers will take into account changes to another. As you modify the content of a layer of cloned SO that change is automatically reflected in the other. As noted above, the solution is mentioned to apply the blur as a dynamic filter without changing the content (do not double click on layer SO): with SO layer selected in the layers panel, go to filter > blur > Gaussian blur.

    To cite only in case you need this option: you can duplicate the layer SO without cloning to help: command of new dynamic through copy object . In this case you can apply changes to the .psb file you make and modifications will not reflect to another (parent) layer of SO. In this case, disadvantage is that you can't quickly Exchange content on the two SO layers when creating clones SO you can overlay.

  • My e-mail Yahoo stopped appearing in one of the unified folders in which they should appear.

    My e-mail Yahoo stopped appearing in one of the unified folders in which they should appear. The mails are downloaded and available if I search under the Yahoo account but are not part of the unified list. I have repaired all folders and compacted all records to try to fix this without a bit of luck. I use Thunderbird with lightning 2.6.6 24.6.0 calendar and sorting records 1.1 manually add ons. Everything worked fine for several weeks and arrested the week without significant change. Manually, I download and install the updates and only updates (Windows 7 Professional Service Pack 1) system have been Windows Defender (definition files) and as a result of security Norton (also the definition files). Yahoo is configured as an IMAP account. I hope that I have provided all the information you need to help. I really prefer to use folders unified if possible. I also tried the following by a similar thread.

    Menu (Alt + H) help > troubleshooting information
    Click the display folder.
    Close Thunderbird
    Open the mail folder
    Open the folder of boxes smart mailbox
    Delete the inbox and inbox.msf files
    Restart Thunderbird.

    This did not help.

    Thank you for the help and so fast. I checked for the option "Match all messages" and found that it set correctly. I also noticed a line reading 'Some files to search' next to a radio "Select..." button "I clicked on the button"choose... ". "and found that the check box next to the Yahoo Inbox was empty, I checked it. Problem solved. I appreciate the help you provided. I'm not sure I would have found the answer if you don't direct me in the right direction.

  • I can't send mail to one of the two accounts of e-mail with the outgoing server.

    Recently, I was unable to send an email to one of the two accounts which are the two aol. One of them is netscape. They both use the same outgoing server 'smpt.aol.com' I've tried the suggestion to remove the password on behalf of netscape (the one I can't send). Now I get a 5.7.1 sender address rejected. I'm sure this is a settings problem and probably a dealing with passwords, but I just can't solve. Help!

    I checked both accounts and servers as you suggest. The first time he asked me, he said that have been rejected. When I pressed try again, it has been accepted, and now everything seems to work fine. Thanks a lot to you two. I really appreciate it.

  • Conditional formula using one of the two operations

    How to create a conditional formula where the results are a choice between two formulas based on the cell to two cells has a value greater than 0?  More specifically, I have to add value in a cell (in the column headed "added amount") to a cell in a column of the running totals if the value of this cell is greater than 0, or subtract the value of a different cell (in the column headed "amount withdrawn") in the same line, if the value of this cell is greater than 0.  Only one of the two will have a value in a given line.

    Hi George,.

    If you only have a value in a column, then you have even a logical formula. You can do this:

    A2 is an input value, it could be called "balance forward".

    A3 is filled down.

    Quinn

  • How can I printscreen, only one of the two screens I use now?

    I work with two screens and when I try to printscreen the computer takes the two images on the screen and print, making the really small screen images to the point that they are almost impossible to read.
    I want a pint only one of the two screens.

    Hello

    Try the capture tool:

    How to use the Windows Vista Snipping Tool
    http://www.bleepingcomputer.com/tutorials/tutorial135.html

    Use capture tool to capture screenshots
    http://windowshelp.Microsoft.com/Windows/en-us/help/1337cdba-52a2-4704-ad4d-2d7bace605b41033.mspx

    How to take screenshot with the capture - simple tool
    http://Lifehacker.com/228885/Windows-Vista-tip--take-screenshots-with-the-Snipping-Tool

    Cup - best tool screenshot screenshot
    http://desktoppub.about.com/od/screencaptures/IG/Snipping-Tool/Snipping-Tool.--0k.htm
    http://graphicssoft.about.com/b/2009/05/15/using-the-Snipping-Tool-in-Windows-Vista.htm

    How to take a screenshot with the tool captures of Vista
    http://www.WikiHow.com/take-a-screenshot-with-the-Snipping-Tool-in-Vista

    Use the Windows Vista Snipping Tool to take screenshots
    http://www.tips4pc.com/articles/Windows%20Vista/use_the_windows_vista_snipping_t.htm

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to choose the slot one of the two bunk?

    How to choose the slot one of the two bunk?

    Select the two points to cross the selection with the open selection tool, and then clear the high point on the page by holding shift and clicking on it.

    or vice versa. Select the high point of the page first and then select now shift. the high point of the page désélectionnera.

  • How to upgrade one of the two lines in double

    I use 11.2.0.3.0

    Is it possible using a CASE statement to find the rows that are double and one of the two lines was updated so that they are all unique?

    What I get is something like this

    Col1 Col2 COL3 COL4 Col5

    1

    1111
    11111
    22222
    22222
    33333
    33333
    44444
    44444
    55555
    55555

    I would change one of the columns in the two lines that makes the unique lines like this

    Col1 Col2 COL3 COL4 Col5
    11111
    12111
    23222
    24222
    35333
    36333
    47444
    48444
    59555
    50555

    Hello

    I don't see how a CASE expression would contribute to this problem.

    In your original message, you said you wanted to update the table, in other words, to permanently change some of the values stored in the table.

    In response, #2, looks like you want to change what is in the table, you just want to replace by new values for col2 in this query, without permanently changing table.  You can do this by using the ROW_NUMBER right in the query, when you thought using a CASE expression.

  • I try to run CC in a new computer products (the third argument: one of the two former stole) but I can't

    I try to run CC in a new computer product (the third argument: flew one of the two former) but I can not: when it asks me to try again or close the session on the other, I click on "continue", but nothing happens. What can I do? Thanks for any help on this matter.

    When you are prompted to sign out of your other two computers, do.

  • Trouble with the pdf form trying to "choose" one of the two paragraphs of text

    I am creating a PDF form and trying to find a way to choose one of the two groups of text that are approximately long paragraph. and having only the one I choose are visible on my pdf.  I tried to use a drop-down list, but it wouldn't accmodate the amount of text that I needed

    How to refer to a checkbox.

    I've added a new field of text (multiline) and put the java script in the section actions, just as you typed.  When I run the shape there is no box to choose and is not my default text (the text box is empty).  When I click outside the text box and then comes my 2 paragraph.

    All of the suggestions.

    BD

  • Play videos local one after the other

    Hi - I'm going to put in place 10 videos locally in Dreamweaver to play one after the other.  By local authorities, I say everything is on one computer and you just open the page HTML in Chrome and it works.  When the HTML opens in Chrome, I got the first video auto play and loops too.  But after the end of the #1 video, I have need for 2nd video to start, then third, and so on until the 10th is complete, then it goes back to #1 again.

    Is the code that I have on the local HTML page and it works for a video is:

    < video width = "720" height = "406" AutoPlay controls loop >

    < src = "source 1E.mp4" type = "video/mp4" > "

    < object data = "1E.mp4" width = "720" height = "406" > "

    < / object >

    < / video >

    .. .but I just can't figure out how to get the other 9 videos in there, so they play behind #1 loop and then back to #1 again.

    Does anyone have an idea how to do this?  Thank you.

    Video HTML5 can only play a single video.  It does not fit your goals.  That's why I suggested using your laptop Media Player by default since this will be the software that plays files.  If you do not have Windows Media Player to work, try something else like Media Player Classic (it's free, I use it all the time).

    Media Player Classic - Home Cinema Tutorial #3 - How to manage your playlists

    Nancy O.

  • Binds a guest operating system to one of the two network adapters on the host computer?

    Sorry if the topic is confusing.  I have a host operating system to Server 2008 running on a server that has two network jacks.  Allows to call an (192.168.10.24) and B (192.168.10.25).

    My guest operating system is set to bridged with the IP 192.168.10.26 mode

    I want to say VMWare to always use A NIC when it comes with this guest operating system.  Is this possible?

    In my (Control Panel Windows) network connections, I see my two NICs A and B as well as VMWare Network Adapter WMnet1 and VMnet8.

    Thank you!

    Run the utility for configuring the network (vmnetcfg.exe) as an administrator on the host computer, disable the automatic bypass, set vmnet0 to one of your physical network cards and a virtual NETWORK adapter not used, such as VMnet2, and then assign the other physical NIC. Then to your comments, change its settings and select vmnet0 or vmnet2.

    Guy Leech

    VMware vExpert 2009

    ---

    If you have found this device or any other answer useful please consider the use of buttons useful or Correct to award points.

  • How to change the Apple ID on one of the two devices?

    I have two iPhones with the same Apple ID used by two members of the family.

    When done or receives a phone call, the call history displays the same on each phone, probably due to having a single Apple ID.

    My plan is to create a new Apple ID, disconnect one of the iPhones and then sign in again using the new Apple ID.  (I realize that I'll lose a few apps and photos, but this is a minor problem that he has little of each.)

    This sounds like a plan?  Am I missing something?

    Thanks for any suggestion or disagreement.

    The following can help: what to do when you have changed your Apple ID email address or password - Apple support

  • Remove one of the two iTunes I not use in my computer

    Windows Vista EDITION Home Premium: in my computer, I have two iTunes programs that the administrator user and the other in a normal users. We do not use the one in the title of the administrator. We only use one of the user. I already checked that all songs in iTunes of the user are located within this user. Can I delete the iTunes of the administrator user program without affecting the program iTunes to another user?

    N °

    On all versions of Windows, the programs are installed by the administrator and are then available for the rest of the users.  If the administrator uninstalls, the program went for everyone.

Maybe you are looking for

  • The fixed Point data

    It is possible to specify the length of Word and whole for the fixed point data format, and if so where this work? The module I use is a NI 9205 in a cRIO-9074 and seems to have a fixed point default data format of , which I interpret as meaning that

  • Ventrillo error

    Hello, I recently bought a new laptop, I play world of warcraft and it takes ventrilo to connect with other players. I have the latest ventrilo 3.0.5 and my sound and all other drivers are up-to-date (I checked today). I have a lock-up whenever I try

  • Computer does not start when PCI-6509 is installed.

    We have a "shoe box" Advantech (System specs are listed below) and try to install a digital I/o card of National Instruments PCI-6509. Once we install the digital IO card, the computer will not start. The computer does not even a MESSAGE. We know tha

  • Implementation of WPA2 Enterprise

    Hi all Sorry if this sounds stupid for someone of you.  Try to not me the flame.  I have been using wpa2 with key pré-partagées in my "little", network environment but I'm tired of manually retype the key to everyone when someone leaves the company,

  • G62-233NR wireless network card problems

    Okay, so I tried to do a little research, but I'm not sure I found my problem or a solution.  I have laptop HP G62-233NR and it worked fine up until tonight.  He won't have a wired or wireless connection to the internet.  The troubleshooting tool Win