Applescript to extract subtitles, move and rename

Hi guys. I'm trying to execute a script I've found on the web and adpated it a little bit.
What I want to do is to extract .zip files from a folder, move the .srt files to the series/movies folder, and rename the .srt and .avi files to the same name.
So far I was able to write the extraction and moving but after I changed some variables I got stuck with this script.
Can someone help me?
Below are the original e adapted scripts.
ORIGINAL:
property extensionList : {"mp4", "flv"}
tell application "Finder"
    set the sourceFolder to choose folder with prompt "Select Input Folder"
    set the outputFolder to choose folder with prompt "Select Output Folder"
    set inputFiles to every file of the sourceFolder whose name extension is "rar"
    repeat with i from 1 to the count of inputFiles
        set theArchive to POSIX path of ((item i of inputFiles) as string)
        tell application "RAR Expander"
            expand theArchive to POSIX path of outputFolder
        end tell
    end repeat
    set extractedFiles to every file of the outputFolder
    repeat with i from 1 to the count of extractedFiles
        if (the name extension of the (item i of extractedFiles) is not in the extensionList) then
            do shell script "rm -rf " & quoted form of (POSIX path of ((item i of extractedFiles) as string))
        end if
    end repeat
end tell
ADAPTED:
property extensionList : {"srt"}
tell application "Finder"
          set the sourceFolder to (path to "/Users/*****/Downloads/Subtitles/")
          set the outputFolder to (path to "/Users/*****/Downloads/Series/")
          set inputFiles to every file of the sourceFolder whose name extension is "zip"
          repeat with i from 1 to the count of inputFiles
                    set theArchive to POSIX path of ((item i of inputFiles) as string)
                    tell application "The Unarchiver"
  unarchive theArchive to POSIX path of outputFolder
                              tell application "The Unarchiver" to close
                    end tell
          end repeat
          set extractedFiles to every file of the outputFolder
          repeat with i from 1 to the count of extractedFiles
                    if (the name extension of the (item i of extractedFiles) is not in the extensionList) then
                              do shell script "rm -rf " & quoted form of (POSIX path of ((item i of extractedFiles) as string))
                    end if
          end repeat
end tell
It's compiling but when I try to run it I get the error: It's not possible to transform "Users/*****/Downloads/Subtitles/" into constant.
Thanks and sorry for my bad english.

Ah, I didn't look farther on in the script.
Generally it's bad practice to nest application tell blocks.  It usually works, but it's unpredictable and can produce some confusing errors.  Also, it's generally better to use System Events.app rather than the Finder (except for a couple of things the Finder does better).  SE is more efficient and less picky about file references.  so I've twiddled your script a bit:
set dl to path to downloads folder from user domain
tell application "System Events"
          set the sourceFolder to folder "Subtitles" of dl
          set the outputFolder to POSIX path of folder "Series" of dl
          set inputFiles to POSIX path of every file of the sourceFolder whose name extension is "zip"
end tell
repeat with thisArchive in inputFiles
          tell application "The Unarchiver"
                    unarchive thisArchive to outputFolder
                    close
          end tell
end repeat

Similar Messages

  • How to do this kind of Move and Rename? Please help.

    I save pictures a lot, and usually they clutter up on my Desktop until I organize them later into category folders. My folders are like this:
    VACATION PICTURES (Folder Name), and inside the pictures go: Vacation_1, Vacation_2, Vacation_3, etc.
    I'd like to be able to click on the cluttered pictures on my Desktop, select my Automator action (Move and Rename), and then have the Automator pop-up ASK me where I want to put the pictures (because I have a lot of folders, such as "Vacation Pictures," "Pet Pictures"), then ASK me what to rename them. Or, better yet, I want Automator (or maybe another program) to automatically know what to rename the files based on what folder I select to move them to. For example, if I first direct the pictures to be moved to the "Vacation Pictures" folder, in which all the files are Vacation_1, Vacation_2, Vacation_3, etc., I want the program to automatically rename the newly-moved pictures and continue the existing sequence by going Vacation_54, Vacation_55, etc.
    So I want Automator to automatically continue the already existing sequence in the folder. After the move, I want it to automatically figure out what the name will be and the sequence number to start on to join the others.
    Is this at all possible with Automator or any other program? Thank you so much!

    I think AppleScript would be easier than Automator to do this with, it's more flexible. In fact, I wouldn't be surprised if an AppleScript application could be made with Xcode (aka Applescript Studio) to do something like this. Either way, it could take some time before you could do anything if someone hasn't doesn't something like that already. Have you used the search feature in the AppleScript forums to find out if someone has some sort of image or picture or pic organizer? You might even try Google.
    However, what you've described sounds like it's verging on micromanaging, and it seems very time consuming. Have you consider the possibilities of iPhoto and maybe going along with something it can provide? For instance, is it really necessary to name each pic if they are already grouped? Personally, I'd rather tag them since then I only have to spell the tag once and then can easily find a variety of photos from several albums. For example, all the pics with flowers, or statues, or paintings, and what not. I hardly have any photos named in iPhoto and depend mostly on tags or the names of albums. It may not be worth renaming the old generic names with new generic names.
    Also, iPhoto is more specialized for managing images, while the Finder is generally for any type of file and therefore isn't very specialized for any particular type.
    Similarly, genres for music are useless to me and I'd rather tag songs with moods and subjects. So, I changed all the genre field into something more informative and that could be used for grouping the music into Smart Playlists by search criteria based on keywords in the genre field. Much more useful and worked like a great pre-Genuis option years before they added that.
    Anyways, just some suggestions for creating more flexible approach towards your hundreds of photos. It's helped me find what I want with both photos and music, in particular allowing me to create smart albums or playlists that automatically update themselves with new items whenever I tag another photo or song. No need to organize each and every single photo by dragging and dropping them into several relevant folders. They just show up where they fit in based on their tags, everywhere they belong. Though I have thousands of photos, I've gradually added tags to the older pics I had before tagging, and I definitely tag new ones as soon as I import them in iPhoto.
    Of course, you might have some fantastic plans needing this initial foundation you are suggesting. Personally, I cringe at the thought of ever doing what you are suggesting because I used to do things that way. And I never got done. Ever. With anything. And I figured out I really wanted something else. But that's me, and I just thought I'd throw these other ideas out there for you to reconsider your, uhm, adventure you have planned for yourself. :-D
    Good luck! I'm sure it can be done! And I hope it turns out to be useful for you! Go for it!

  • Is it possible to do this kind of Move and Rename?

    I save pictures a lot, and usually they clutter up on my Desktop until I organize them later into category folders. My folders are like this:
    VACATION PICTURES (Folder Name), and inside the pictures go: Vacation_1, Vacation_2, Vacation_3, etc.
    I'd like to be able to click on the cluttered pictures on my Desktop, then have a pop-up ASK me where I want to put the pictures (because I have a lot of folders, such as "Vacation Pictures," "Pet Pictures"), then ASK me what to rename them. Or, better yet, I want the script to automatically know what to rename the files based on what folder I select to move them to. For example, if I first direct the pictures to be moved to the "Vacation Pictures" folder, in which all the files are Vacation_1, Vacation_2, Vacation_3, etc., I want the program to automatically rename the newly-moved pictures and continue the existing sequence by going Vacation_54, Vacation_55, etc.
    So I want the script to automatically continue the already existing sequence in the folder. After the move, I want it to automatically figure out what the name will be and the sequence number to start on to join the others.
    Is this at all possible to do? If so, could someone explain how? Thank you so much!

    Hello
    You may try something like the code below.
    Save it as application, drag-drop the files onto it. It will ask you the destination folder and then do its tasks, hopefully.
    (It will create a temporary folder in destination for renaming file without name conflict and when done, move the temp folder to trash. It won't automatically delete the temp folder for safety. You may empty trash manually.)
    Script is partially tested under OS9.
    Hope this may help,
    H
    --SCRIPT
    on open aa
    main(aa)
    end open
    on main(xx)
    script o
    property aa : xx
    property tempname : "0.renamingbuffer" & (random number 10000)
    -- (0) accept destination
    set da to choose folder with prompt "Where do you put them?"
    display dialog "You're moving files to :" & return & return & da with icon 1
    -- (1) get last file name in destination (if there's no file, use destination folder name's 1st word)
    Finder of OSX 10.4 or later is required for proper 'numerical' sorting.
    E.g.
    'x_10.jpg' > 'x_9.jpg' by 'numerical' sorting, whereas
    'x_9.jpg' > 'x_10.jpg' by lexical sorting
    tell application "Finder"
    set ff to (sort (get files of item da as list) by name) as list
    if ff = {} then
    set n to (get item da's name)'s word 1
    else
    set n to ff's item -1's name
    end if
    end tell
    -- (2) make temporary folder for safe renaming
    tell application "Finder"
    set temp to (make new folder at da with properties {name:tempname}) as alias
    end tell
    -- (3) move and rename files
    1) move a file into temp (in destination)
    2) rename the file in temp
    3) move the renamed file in temp to the destination
    * this procedure will prevent any name conflicts.
    repeat with a in my aa
    set a to a's contents
    set n to nextName(n) -- get next name (w/o extension)
    tell application "Finder"
    set ext to a's name extension
    if ext is not "" then set ext to "." & ext
    set a1 to (move a to temp) as alias
    set a1's name to n & ext
    move a1 to da
    end tell
    end repeat
    -- (4) clean up & exit
    tell application "Finder" to delete temp
    display dialog "Done" with icon 1 giving up after 2
    end script
    tell o to run
    end main
    on nextName(n)
    string n : file name in form STEM_N.EXT, where N is integer. e.g., xyz_9.jpg
    return string : next file name w/o extension in form STEM_M, where M = N + 1. e.g., xyz_10
    set astid to a reference to AppleScript's text item delimiters
    set astid0 to astid's contents
    try
    set astid's contents to {"."}
    tell n's text items
    if (count) = 1 then
    set {m, x} to {n, ""}
    else
    set m to "" & items 1 thru -2
    set x to "." & item -1
    end if
    end tell
    set astid's contents to {"_"}
    tell m's text items
    if (count) = 1 then
    set k to 0
    else
    set m to "" & items 1 thru -2
    set k to item -1
    end if
    end tell
    set astid's contents to astid0
    --return m & "_" & 1 + k & x -- w/ extension
    return m & "_" & 1 + k -- w/o extension
    on error errs number errn
    set astid's contents to astid0
    error errs number errn
    end try
    end nextName
    --END OF SCRIPT

  • Regarding ssis - move and rename files

    Hi,
    i have two txt files in c drive ,
    and i have to move two files in d drive at a time and should rename that files

    for some exmaples you can check this : http://www.rafael-salas.com/2007/03/ssis-file-system-task-move-and-rename.html
    regards
    joon

  • Move and Rename file

    I am trying to move and rename all the files with extension csv in the folder. 
    c:\folder\a.csv c:\Newfolder\a20141151011.csv  datetime append after moving
    c:\folder\b.csv c:\Newfolder\b20141151011.csv 
    I cannot use ssis it has to be done in TSQL 
    DECLARE @FILELOCATION VARCHAR(250)
    DECLARE @FINALLOCATION VARCHAR(250)
    DECLARE @FILENAME VARCHAR (250) = '*.CSV'
    DECLARE @DESTINATIONFILENAME VARCHAR (250) --= @filename + '.txt'
    SET @FILELOCATION = 'C:\folder\'
    SET @FINALLOCATION = 'C:\Newfolder\' 
    DECLARE @C VARCHAR (2000)
    SET @C = 'MOVE ' + @FILELOCATION + @FILENAME  +' ' + @FINALLOCATION + @DESTINATIONFILENAME 
    exec master.dbo.xp_cmdshell @C

    the below code works fine for moving a file. For moving all files with their respective names you could try going in for a loop and achieving the same file by file.
    DECLARE @FILELOCATION VARCHAR(250)
    DECLARE @FINALLOCATION VARCHAR(250)
    DECLARE @FILENAME VARCHAR (250) = 'multilingual_sample.TXT'
    DECLARE @DESTINATIONFILENAME VARCHAR (250) = @filename --+ '.txt'
    SET @FILELOCATION = 'D:\'
    SET @FINALLOCATION = 'D:\Newfolder\'
    DECLARE @C VARCHAR (2000)
    SET @C = 'MOVE ' + @FILELOCATION + @FILENAME +' ' + @FINALLOCATION + @DESTINATIONFILENAME
    PRINT ISNULL(@C,'---')
    exec xp_cmdshell @c
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • File Move and Rename Workflow and/or Script

    This seems to be a simple workflow to create, but it isn't working for me. I want a workflow and/or script that will move screenshots from my desktop and place them into a folder. Secondly, I want these images to be renamed from "Picture #" to "Screenshot #" when placed in the folder. I also want future images placed in this folder to be named sequentially without any problems. For instance, if Screenshot 1, Screenshot 2, and Screenshot 3 are present in the folder after the workflow is ran once, the next file should be named Screenshot 4 when the workflow is ran again. Can anyone offer any assistance in this matter? I would greatly appreciate it.

    If all you are doing is renaming and moving screenshots, then a regular AppleScript should do. Copy and paste the following script into the Script Editor and save as an application (uncheck the Startup Screen option). When it is first run it will ask for the destination folder, but after that it will use the same folder (until the script is recompiled, anyway).
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- rename and move screenshots from the desktop to the specified folder
    property ScreenshotFolder : (path to desktop) -- the default folder where the screenshots are created
    property ScreenshotExtension : ".png" -- the default screenshot extension
    property DestinationFolder : missing value -- the folder to move to
    on run
    if DestinationFolder is missing value then set DestinationFolder to (choose folder)
    tell application "Finder" to get files of ScreenshotFolder whose name begins with "Picture " -- get screenshots
    repeat with AnItem in the result -- do stuff with each item
    GetUniqueName for ("Screenshot" & ScreenshotExtension) from DestinationFolder
    tell application "Finder"
    set the name of AnItem to the result -- rename
    move (ScreenshotFolder as text) & the result to DestinationFolder -- move
    end tell
    end repeat
    end run
    to GetUniqueName for SomeName from SomeFolder
    check if SomeName exists in SomeFolder, creating a new unique name if needed
    parameters - SomeName [text]: a name.extension to check for
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique name
    set {Counter, Divider} to {"01", " "}
    set Here to -(offset of "." in ((reverse of text items of SomeName) as text)) - 1
    set TheName to text 1 thru Here of SomeName
    if Here is -1 then -- no extension
    set TheExtension to ""
    else
    set TheExtension to text (Here + 1) thru -1 of SomeName
    end if
    set NewName to TheName & Divider & Counter & TheExtension -- always add a suffix
    tell application "System Events" to tell (get name of items of folder (SomeFolder as text))
    repeat while it contains NewName
    set Counter to text 2 thru -1 of ((100 + Counter + 1) as text) -- increment suffix with leading zero
    set NewName to TheName & Divider & Counter & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName
    </pre>
    I added a leading zero to the number suffix so that the items sort properly. Note that if one of the renamed items is removed, a new screenshot will take it's place (the suffix starts at the beginning each time). If this isn't desired, the script can be tweaked to remember the last suffix number.
    HTH

  • Move and rename JSF page

    How can I rename a JSF page? and how can I move a JSF page from one viewController project to another?

    Hi
    I am using JDev 10 and there is no refactor menu for refactoring a *.jsp page. You can create a new page and copy the content out of the old page into the newer. But dont forget to customize the faces-config.xml and your corresponding backing bean before you delete the old page.
    Regards
    Majo

  • Use of Java Swing +Applescript to move and resize Mac OS X windows using

    Here is an interesting use of Java on Mac OS X and Applescript to
    enable moving and resizing of windows using mouse and keyboard:
    [MoveResize tool|http://code.google.com/p/sandipchitalesmacosxstuff/#Move_and_resize_windows_on_Mac_OS_X]
    How it works:
    The implementation uses Applescript to get the front most window and
    it's bounds. It sends the bounds rectangle to a server implemented in
    Java over a socket connection. The Java server takes the screen shot
    of the full Desktop and uses it as the Image label (a JLabel with
    ImageIcon) as the content pane of an undecorated JFrame which has the
    same bounds as the Desktop. A JPanel with semitransparent background
    and a dark rounded rectangular border is given the same bounds that
    were received over the socket. This JPanel is added to the
    PALETTE_LAYER of the JFrame's layered pane - which makes it appear
    floating in front of the front window. A Mouse and a Key listener
    added to the JPanel allow moving and resizing of the JPanel. When the
    user types the ENTER key the JFrame is hidden and the new bounds of
    the JPanel are sent back to the Applescript over the socket connection
    which moves and resizes the front most window.
    Enjoy!
    Sandip
    Edited by: chitale on May 14, 2009 4:12 AM

    Copy the /Home/Documents/ folder to the NAS drive. That drive needs to support AFP or you may run into filename problems and/or other file related problems due to filesystem differences.
    Once the folder has been moved to the NAS select the folder on the NAS and CTRL- or RIGHT-click. Select Make Alias from the drop down menu. You should now have an alias named "Documents alias." On the Mac put the /Home/Documents/ folder in the Trash but don't delete it. Copy the alias file from the NAS to the /Home/ folder. Rename it to simply "Documents." Double-click on it to be sure it opens the folder on the NAS. If so you can empty the Trash. You're done.

  • DVD menu with 1 movie and 4 different audio languanges (no subtitles)

    Ok let's start
    I am greek producer of a tourist dvd that have the history, the culture and the life of my birth place. 
    I am using Encore 2.0 (beginer skills)
    This DVD it's only one movie and have 4 different audio languanges of a speaker. Each audio is the the same time with the movie and the speaker tells the story of the island.
    I want at the first menu the customer choose his birth languange and then automaticaly
    the rest menus - movie and audio be the same as his sellection of birth languange he choose at the begging.
    Can encore do that?
    Can i find a ready template of that?
    Or tell me the way please to built it.
    Sorry for my poor english
    Thanx in advance

    OK, for limiting User Operations, one can Permit All, None, Custom. This explains this process. Note: the Operations vary by whether you apply these to a Timeline, or to a Menu:
    To disable or edit user operations
    Select a timeline or menu, or click the Disc tab.
    Note: Disabling user operations at the Disc level disables that operation in DVD elements too. You can, however, enable a function at the disc level and then turn it off for specific menus, timelines. and other elements.
    Click the Set button at the bottom of the Properties panel.
    Select the desired options and then click OK.
    All Enables viewers to execute any operation.
    None Disables all viewer operations.
    Custom Lets you specify which operations are enabled. Deselect the user operations you want to disable:
    Play Timeline Lets the viewer enter a number of a timeline to play.
    Change Presentation Mode Lets the viewer set the playback mode to 4:3 or 16:9.
    Play Chapter Lets the viewer play a specific chapter.
    Note: Disabling Play Chapter also disables the Search For Chapter operation.
    Search For Chapter Lets the viewer search for a specific chapter.
    Play Timecode Lets the viewer enter a timecode to play or search for.
    Stop Lets the viewer stop the DVD.
    Pause Lets the viewer pause the DVD.
    Previous/Next Chapter Lets the viewer move among chapters.
    Title Remote Lets the viewer use the Title button on the remote control.
    Menu Remote Lets the viewer use the Menu button on the remote control.
    Change Audio Tracks Lets the viewer change audio tracks while content is playing.
    Change Subtitle Tracks Lets the viewer change the subtitle track when content is playing.
    Resume Lets the viewer resume play from where content was stopped.
    Arrow And Enter Keys Lets the viewer use the arrow and enter keys on the remote control.
    Personally, I would not want to lock the user out of too many controls, as they might become highly frustrated and think that the DVD has malfunctioned.
    Hope that this helps,
    Hunt

  • Subtitles, extracting from old, and importing and adding another to a new dvd

    I need to add spanish subtitles, in addition to the already existing English subtitles, to a redited timeline. The English subtitles are made in DVD Studio Pro.  I have read the DVD Studio Por manual. I DO NOT find the answers I need in there. I have done the Apple DVD SP Training Series. That does not even come remotely close to answering these questions.  I tried extracting them with DVDSP Subpick, it says Wrong Code. I tried Subtitle Xtractor and it does not open item in item description, reporting only "Error while loading file: Error in Line 1 Error in NODe". Though it says one can open just the subtitle stream, I dont see any directions to tell one how to open just the subtitle stream either.  I tried Text Up 2-1 and it says  "file error wrong type" .
    I cannot fins assets timecode as it says to do iin the manual. I foloow the directions, right click on the timeline but it does not show me any shortcut menu with assets code on it.  I cannot find any directions as to how to save teh subtitles to STL, or txt for that matter. I cannot tell how I have saved this DVDSP  subtitle stream, and I have already burned the dvd.  I need to add spanish subtitles and I would love to not have to start over from scratch, but so far, it looks like I will have to do  that. I am pressed for time.  Any help from anyone?

    There is no method of exporting a subtitle stream to a STL file from a DVD Studio Pro project file.
    You can export the stream as a DVD Studio Pro asset and import it into another project; however, you would have to manually replace the English with corresponding Spanish.  Furthermore, you are likely to find that the Spanish subtitles do not correspond card for card with the English due to inherent differences in the languages.
    Ideally, you would have acces to the English STL document or, better yet, a translation spreadsheet (if one existed in the first place) that you could reformat for import into DVDSP.
    -Warren

  • Soft subtitles in movies and Front Row problem solved

    Hi,
    Sorry for this long post but I hope this will help other users of Front Row.
    This is how I create a testmovie.mov file from an DVD, TS_FOLDER or other source and the subtitles (soft) will work in Front Row, Quicktime, iTunes, without Perian or other special plugin. In my case the subtitle is NOT burn into the video. It is a track in the testmovie.mov file.
    Also I use Elgato turbo h.264 HD to speed up coding. Not necessary.
    1. Create a .m4v movie file (h.264 codec)
    In my case I start the application that comes with Elgato turbo h.264 HD device, called Turbo.264.HD
    2. Drop the DVD, TS_FOLDER or other video to convert, onto Turbo.264.HD application or other video converting application.
    3. Click on the little "i" info symbol and the select Audio. The source maybe contains different languages. Click OK.
    4. Select Format. In my case "Apple TV" format (I will use this video on my Mac Mini). Click Start. After a while the video is finished. In this example I call it testmovie.m4v
    5. Download subtitles from Internet. Google: subtitles download
    6. Open the testmovie.m4v in RoadMovie application. This application works for me, but there may be others. http://www.bitfield.se/roadmovie
    7. In RoadMovie, click on Subtitles button and then open the downloaded subtitle file. In this example called testmovie.srt Also, click on the "little eye" Preview. In this view you can adjust the time offset for the subtitle to sync with the video.
    8. In RoadMovie select "Export for: Flattened". This will create a testmovie.mov file with a new subtitle track in it, without ecoding the video.
    9. Open testmovie.mov in, in my case, Quicktime Pro and the select Show Movie Properties.
    10. Select the video track and set the Transparency to Composition. Layer 0
    11. Select the subtitle track and set Transparency to Straight Alpha. Layer 0
    12. Save changes and close Quicktime Pro
    13. Move the testmovie.mov to Movies folder
    14. Start Front Row and select Movies->Movies Folder->testmovie.mov
    Voila!
    /rob

    So, as far as I can tell, it's a one-or-the-other situation. Either Front Row doesn't display subtitles (actually, no video at all), or it does (with this workaround). Can't seem to toggle them. If anyone knows of a better way...
    So, good job in finding a (multi-step, multi-application, convoluted) way to get this to work, but I'd hardly call this "solved." Don't get me wrong, I'd have never figured this out in a million years. Just...not quite ideal, is it?
    I gave Plex a spin, and while it does offer the ability, in theory, to toggle subtitles, I haven't been able to get it to work, either with with this trick or without. I can't believe this is so hard to get right...Apple, if you're listening, there are people who use Front Row. Keep working on it! How about using that middle button of the remote for bringing up an options menu for the currently playing track, rather than duplicating the play/pause button?
    Sorry, just frustrated; I finally got a Mac Mini for hooking up to the TV, and now I'm discovering how hard this is.

  • How to extract subtitles fast (not with D-Subtitler)

    I have been trying to extract subtitles from movies using first MacTheRipper to get the files in the correct format for D-Subtitler to use, and then using D-Subtitler to get the srt files so that I can hardsub the movie using Submerge (Submerge only uses srt files). The problem is that it takes about six hours to do the correcting using D-Subtitler -- typing in the character D-Subtitler does not recognize (I am trying to get Korean subtitles) and this is not worth it for me as it takes too long. So is there another way to do this? I'd prefer to do it on my Mac than using my PC if I can. Is .srt the only sort of file I can extract? I use Submerge to do the hardsubbing and this requires srt files ... but if there is another application that can hardsub but uses a different form -- that is, not srt files, that will work too. I think you can extract ssa files but I don't know how to do this. Also I don't know how to add ssa files back onto the movie for hardsubbing.
    (I need to do the hardsubbing in order to watch the movies with subtitles on my Galaxy Player as otherwise the subtitles don't show up.)

    I have been trying to extract subtitles from movies using first MacTheRipper to get the files in the correct format for D-Subtitler to use, and then using D-Subtitler to get the srt files so that I can hardsub the movie using Submerge (Submerge only uses srt files). The problem is that it takes about six hours to do the correcting using D-Subtitler -- typing in the character D-Subtitler does not recognize (I am trying to get Korean subtitles) and this is not worth it for me as it takes too long. So is there another way to do this? I'd prefer to do it on my Mac than using my PC if I can. Is .srt the only sort of file I can extract? I use Submerge to do the hardsubbing and this requires srt files ... but if there is another application that can hardsub but uses a different form -- that is, not srt files, that will work too. I think you can extract ssa files but I don't know how to do this. Also I don't know how to add ssa files back onto the movie for hardsubbing.
    (I need to do the hardsubbing in order to watch the movies with subtitles on my Galaxy Player as otherwise the subtitles don't show up.)

  • Download multiple files and rename

    I have a folder with 20+ .webloc files, all pointing to Google calendar .ics downloads.  (The URLs all look like "https://www.google.com/calendar/.../basic.ics".)  I want to be able to automate downloading each of these, but the problem is that, no matter what the calendar, the file is always named "basic.ics".  What I'd like to do is 1) iterate through each .webloc in a specific folder, 2) download each one to another folder and 3) name the downloaded file according to the associated .webloc (ie, reed.webloc would download to reed.ics in a different folder).
    My AppleScript skills are pretty lousy, and Automator does not seem to be able to manage this sort of renaming of the download.  Anybody got any advice?  Is there an existing script out there somewhere that I can modify for my needs?

    I think this will do it:
    set basePath to "path:to:folder:where:ics folders live"
    set weblocFolderPath to "path:to:folder:with:webloc files"
    tell application "Finder"
      -- extract pertinent info from webloc files
              set {locs, filenames} to {location, name} of every internet location file of folder weblocFolderPath
    end tell
    repeat with i from 1 to count of locs
      --remove .webloc extension from name
              set newName to text 1 thru -8 of item i of filenames
      -- make new folder with webloc file name
              tell application "Finder"
                        if not (exists folder newName of folder basePath) then
                  make new folder at folder basePath with properties {name:newName}
                        end if
                        set theFolderPath to folder newName of folder basePath as text
              end tell
      -- download ics file into the folder (replacing if needed) with webloc file name
              tell application "URL Access Scripting"
                        set newFile to download (item i of locs) to (theFolderPath & newName & ".ics") replacing yes
              end tell
    end repeat
    basePath is the folder where you want to make the folders to store the downloaded ics files
    weblocFolderPath is the folder where your 20 weblocs are stored
    both paths should be listed as text strings, colon delimited, including the disk name (e.g. "hard disk name:folder name:folder name:final folder name")

  • Automate a sorting and renaming process.

    Hi everyone. I am working on automating a Finder sorting/renaming/moving to folders process with applescript (or through filemaker) and was wondering if anyone on here could point me in the right direction.
    Basically I want the script to read a csv/filemaker/excel file (referred to hereafter as "data file") that looks at PDF files that have identifying information in their filename. Based off of that identifying info in the PDF file, I want to find the matching record in the data file, grab it's associated description, input it into the filename after the identifying info, and then sort that file into a folder based off of a third field in the data file. Anyone doing anything like this or know of any resources I could tap? Any help would be greatly appreciated.

    AppleScript can do stuff like this, although you will need to be a bit more specific about your data formats. I read that your desired script will:
    1) Read a specified (or asked for) data file;
    2) Get specified (or asked for) file names;
    3) Find a match between some part of a record in the data file and some part of a file name;
    4) On a match, append a description text specified in the record to the file name;
    5) Move the renamed file to a location specified in the record.
    You will need to define the format of the records in the data file, including the line endings and item delimiters, and the various portions of each record that will be used. Other items that need some clarification are things like error handling, such as what if there is a file with the same name in the destination folder or what if a record does not have all of the items.

  • ITunes can't distinguish between movies and TV shows

    Hi,
    How old is iTunes now? How many updates have we been fed with all kinds of new 'features' that are either not that useful or already duplicate functions? Why can iTunes STILL not catalog files correctly?
    I have movies and TV shows all mixed together, some are duplicated and some are just named 'comedy' or some other useless title. I got so fed up with it I spent a rainy day painstakingly renaming and sorting all these files. This was followed by the inevitable long drawn out and slow process of resynching Apple TV, resynching iPhones and basically playing every file labelled 'untitled' or 'unknown' and then identifying and renaming it.
    So I was well-pleased when the latest version of iTunes decided it didn't like my new filing system and has messed it all up again. I now have duplicate files, files incorrectly filed, broken links and right now over 400 'missing' files according to iTunes.
    They're not 'missing'. They're on the same hard drive in the same folders and in the same place they've always been. They've not been renamed, reordered or in anyway changed, yet the wonderful iTunes has decreed things ain't what they should be and changed it all for me.
    I'm not happy. By all means change my files, but not to create the mess you've now left me to sort out.
    What is it with Apple these days? why can't they just leave something that works to function properly. I can find my own 'album cover art', I don't need iTunes to paste the wrong art on the wrong album and mix up all my genres, shows and movies.
    If you want to help, fix that mother of a problem before making it look pretty.
    Thanks,
    Rich

    It is possible to have mistakenly authorized a computer more than once. To fix that:
    Open iTunes.
    From the Store menu, choose "Deauthorize This Computer…"
    Enter your account name and password.
    Click OK. A message appears reading "This computer has been successfully deauthorized."
    Click OK.
    Repeat steps 2 through 5 above. If you see the same message reading: "This computer has been successfully deauthorized," then your computer was using multiple authorizations.
    Repeat steps 2 through 5 above until you see a message reading "This computer was not authorized. To authorize this computer, play a song or video you have purchased using this account."
    If that does not fix it for you, you can "deauthorize all" your computers. This will solve your problem, but you may only do this once per year.
    Open iTunes on a computer
    From the Store menu, select "View my Account..."
    Sign in with your Apple ID and password.
    Under "Computer Authorizations" select "Deauthorize All".
    Authorize each computer you still have, as you may require.
    After you "deauthorize all" your authorized computers, authorize each one as required.
    iTunes Store: About authorization and deauthorization:
    http://support.apple.com/kb/HT1420
    One computer using multiple iTunes Store authorizations:
    http://support.apple.com/kb/HT1206

Maybe you are looking for

  • Transfer balance from one GL account to another, then restict posting

    Hi Gurus, We have an GL account (650045) showing balances ($ 4656)  and client wants to this balance to another GL account ( 650198) and close then 650045 and see that no postings are allowed in 650045. Can you please let me know how to do this trans

  • [Consolidation-Locked] Lightroom 4.1 Performance

    hello my lightroom 4.1 copy is so slow, in the develop module when switching between raw files the "loading" logo keeps spinning for a long time before I can edit the file, and the same happens when I click on the image to zoom in, takes forever to d

  • Can a JSP return an image?

              Can a JSP page be written so that it returns an image? What are the           available MIME types that can be returned? IOW, what is the possible values           of the "page" directive attribute "content-type"? Better yet, where can I   

  • Adopting LR3 - A Few Questions

    This one is long winded and I'm somewhat of a noob to the Adobe LR/PS world so I appreciate your patience with me... I'm in the process of switching from a PC to a 2010 Mac Mini (2.6Mhz / 4GB / 320GB HD) primarily for working with digital photographs

  • Mail icons not showing in new message

    When I create a new message in Mail there are no icons at the top just text. Is there a way to change it back to displaying both? What is strange is that otherwise (when I reply for instance or in the Toolbar) both icon and text are there.