This handy subtitles AE script for Mac works on PC?

Hello

Here is also after effects script, I used on the Mac for a while now (credits in header information), it generates subtitles to layer markers using a text file. It's great to burn in your subs and you do not have to enter timecode, just hit * where you want the line to appear/disappear. I hope you find it useful. My hidden agenda for the display is however if javascript there assistants can identify how to run on a pc (I searched for the original script for some time). Thanks in advance

{

Subtitle generator by! Rocky

/ / change by Colin Harman ( http://colinharman.com/ ) to work on a Mac

//

Save this code as

'subtitles.jsx '.

//

Create a text file with your subtitles.

Each line of text is the on-screen line.

To have several lines on the screen at the same time

just separated by the vertical bar (|) character.

for example ' character talks 1 | 2 breaks in character.

//

Create a new layer of text in your publication, adjust its position.

Make sure the centered text, so it's very nice

Add markers (Numpad *) where each subtitle line should be shown/hidden.

Run the script with the selected text layer, and select the subtitle file.

Enjoy!

function makeSubs() {}

var layer = app.project.activeItem.selectedLayers [0];

If (layer.property ("sourceText")! = null) {}

file text var = File.openDialog ("Select a text file to be opened.", "");

If (text! = null) {}

var textLines = new Array();

textFile.open ("r", "TEXT", "?");

While (! textFile.eof)

textLines [textLines.length] = textFile.readln ();

textFile.close ();

sourceText var = layer.property ("sourceText");

var markers = layer.property ("marker");

for (var i = sourceText.numKeys; i > = 1; i--)

sourceText.removeKey (i);

var line = 0;

Subtext subTime, var;

for (var i = 1; i < = markers.numKeys; i ++) {}

subTime = markers.keyTime (i);

sourceText.setValueAtTime (0, "");

If ((i % 2) == 0) {}

Subtext = "";

}

else {}

Subtext textLines [line] = replace ("|", "\x0d\x0a");

line ++;

}

sourceText.setValueAtTime (TextDocument (subText)) subTime, new;

}

}

}

}

makeSubs();

}

I think that Mac have a sequence of different transport control. Try replacing this line:

Subtext textLines [line] = replace ("|", "\x0d\x0a");

with the more generic:

Subtext textLines [line] = replace ("|", "\r");

Dan

Tags: After Effects

Similar Questions

  • Such Photos for Mac works on El Capitan?

    I measured exceeds internet satellite. Yes, I know you think it's deplorable, but it's that or dial-up, where we live.

    I had a program of transfer of massive amounts of data at speeds that I didn't even know was possible thanks to our service, over 1 GB in 3 minutes. After some detective work, it seems that the pictures for Mac app was auto-charger on my Icloud account. I was able to stop the program with Little Snitch. Since then, I found the setting in the preferences to stop.

    So tell me if my interpretation of the pictures is correct: the default setting is it auto-upload of photos on your Mac to your Icloud account and it will also automatically download photos from any iPad or iPhone recorded via your Mac with the same account.

    My understanding is correct?

    Thanks in advance.

    Marc

    So tell me if my interpretation of the pictures is correct: the default setting is it auto-upload of photos on your Mac to your Icloud account and it will also automatically download photos from any iPad or iPhone recorded via your Mac with the same account.

    This is not the default. You must activate iCloud in the pictures library > Preferences > iCloud for this to happen, also in system preferences > iCloud > Photos.

    And being before you allow it to make sure that, if you are registered with a storage with enough storage iCloud iCloud plan hold a large and growing photo library.  Without a subscription you have 5 GB of free cloud storage, and it won't work, if your photo library is large.

    If enabled, iCloud photo library will keep your library synchronized and identical Photos on all devices that have iCloud library enabled and use the same AppleID to iCloud.     iCloud Photo library FAQ - Apple Support https://support.Apple.com/en-us/HT204264

  • Hi guys, could someone tell me why my selection cursor became like this in Acrobat pro XI for mac?

    1.pic.jpg

    ! Acrobat Pro XI for Mac

    How can I put it to the arrow without God-dam box?

    In addition, the resolution of the arrow and the box is not the same as the hand tool. any idea?

    I don't see anything unusual.  This is normal behavior for the selection tool in the area of Document. If you place the cursor over the text, you have an i-beam cursor.

    The box + arrow appears outside the text so that you can marquee select an area by pressing the button on your keypad enfoncΘe.

    If you do not see that pass it, you most likely have a text image and not text fonts.

    The only way you have just an arrow is when you go to a toolbar or menu.

    Acrobat XI Pro/OSX 10.11.2 on my installation.

  • Need to install Photoshop Elements 8.0 for Mac. Lost my disk but have my serial number. Online is only a PC version available. How can I get a download link for Mac work.

    Well, the software is registered. So I really need a working link download.

    You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 8: http://prodesigntools.com/direct-download-links-for-lightroom-3-and-photoshop-elements-8.h tml

  • Internet explore for mac port to work on OSX?

    Community of appple Hello.

    I would like to know if there is a direct way for internet explore for mac works. Safari isn't really what if all I need to work and want to switch to IE now that I bought a new macbook air. I found this resource online, but not sure if it works to make ie work for mac.

    Please advise me. what you guys done for internet explore works on your mac osx computers?

    The only way to use IE on a Mac is either:

    1. use a virtual machine environment (VMware Fusion, Parallels Desktop, etc.) and install Windows

    in the virtual machine.

    2 install Windows on Mac via Bootcamp in a dual-boot configuration.

    3 use something like Crossover Mac by Codeweavers.  Although only limited versions of the work of EI

    and not necessarily all that great.

    4 an alternative to IE which is no longer supported, even by Microsoft because they are moving to

    their new edge browser.

  • Missed feature in Outlook for Mac - assign a task to a co-worker

    Hi all in the community.

    Definition AND ALLOCATION of tasks (given) to a co-worker, since it is a standard in Outlook functionality when used in a Windows environment, is obviously unavailable in Office for Mac. Which is a huge shame as this feature is very useful for loads of work to do in teams...

    M$ support says that this isn't in Office for Mac because Apple has refused to grant the necessary rights to their end to establish this use case.

    Is it perhaps someone in the community who has already come up with a clever work around to get this function in place?

    Product: Office (Outlook) for Mac, rel 15.18, running on Mac computers

    Thank you 1 million for all the tips and best regards,

    Thomas

    Ask on the forums Microsoft Mac because these forums are for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows and non-Microsoft Office or your question somehow

    http://answers.Microsoft.com/en-us/Mac

  • Sierra of MacOS / Office for Mac 2011 / Kinecta

    Hello

    I own a 27 inch iMac 2011 mid

    with Mac OS X Lion 10.7.5

    you use Safari 6.1.6

    KInecta.org Credit Union just informed me

    they no longer support this old Safari browser

    and I should upgrade to version 10

    This will make my "Office for Mac 2011" useless?

    (I think I remember refusing to update my OS for a long time)

    There is, because I have to get a new version of Office)

    Is this upgrade of the OS a simple upgrade

    Should I save 'again' (like when I wipe the drive)

    My internet Favorites, address book,

    data and files the mailbox store apple before you do the upgrade?

    Thank you very much!

    .. complimentary breakfast

    MS Office 2011 is still supported by Microsoft.

    I works fine on my MacBook Pro mid-2012 13 "run macOS Sierra.

    I upgraded to El Capitan, and it did not affect MS Office 2011.

    All you have to do is to install the updates for MS Office 2011.

    If MS Office breaks all what you need to do is reinstall Office 2011 but it will work with macOS Sierra.

  • CS4 for Mac gives me this message: "license for this product has stopped working. 150:30 error code. Subsequently no longer works. How to operate?

    CS4 for Mac gives me this message: "license for this product has stopped working. 150:30 error code. Subsequently no longer works. How to operate?

    Please see this link for solutions to this message:

    Error "Licensing has stopped working". Mac OS

    Kind regards

    Guinot

  • Resize the artboard for content - works on Mac (CS6), not win (CC)

    Hello!

    This code works perfectly in Illustrator CS6 for Mac:

    function resizeArtboard() {}

    App.Redraw ();

    app.activeDocument.artboards [0] .artboardRect = app.activeDocument.visibleBounds;

    App.Redraw ();

    }

    It works like the "work Plan retractable insert content menu option."

    However, the execution of this script in Illustrator CC, for Windows, the result is different: the content is expanded to fit the artboard instead.

    How can I solve this?

    Thanks in advance!

    / Le Mans

    It turns out that I was wrong: this function worked. However, when I then saved the file as a SVG, Illustrator ignored the proportions of the document. To fix this, I had to put the export option preserveEditability = true (of all things). Apparently it's a feature of Illustrator CC to not understand the proportions of the document in the default SVG files.

  • PowerPoint for Mac bar vertical scrolling does not work in the Sierra

    I have downloaded Sierra, open a PowerPoint for Mac 2011 version 14.5.4 and immediately noticed that the vertical scroll with my mouse does not work. They're only going to 'up' (for example, slide 14, 13, 12, 11, 10) or will be stuck between 2 blades.

    I unplugged and replugged my mouse, turned PPT market twice and rebooted my MacBook. No change.

    I know it's early days and these are the pains of growth with the new OS, but I use PPTX constantly.

    Any tips are appreciated.

    Have the same problem. I don't know that this isn't a mouse problem because it happens when I use the touchpad as well.

  • iPhoto has stopped working. When I try to download the latest version, I massage "this update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled."... why?

    iPhoto has stopped working. When I try to download the latest version, I massage "this update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled."... why?

    Mac OS X 10.10.3 and newer include Photos, which is designed as a replacement for iPhoto. If you want to go on the use of iPhoto in addition to or instead of switch to Photos, click here and try following the instructions; you will only be able to do if you got before where associated with iPhoto on the Mac App store.


    (138042)

  • E:, HP ENVY, HP ENVY 4500 4500 don't scan pdf for MAC, only jpeg; used to work properly.

    HP ENVY 4500 worked fine a month previously, now don't scan pdf for MAC, jpeg only.  Also do not accept the file name.  Is there a doctor of printing & scanning HP for MAC?

    Hi Maryjon , thanks for getting back to me!

    I appreciate the info.

    I suggest to remove the printer from your printing system, using this document: uninstalling the software of the printer.

    Once you have deleted, I suggest to check and repair disk permissions: function to fix the permissions of all utility disk drive.

    I also run your Apple updates: OS x: Mac App Store apps and OS X update

    After the updates, I recommend you to reinstall the series HP ENVY 4500 full feature software and drivers.

    Good luck and please let me know how it goes!

  • Windows Live Mesh for Mac does not work with Mac OS 10.7 Lion

    Maybe someone could help me with this.

    • I migrated to a disk hard again and update of Snow Leopard Lion this week
    • Live Mesh has stopped working so I downloaded the most recent distribution of MS: 15.4.5726.23, 20/07/2011 release date, which says it's for Mac, including the last OS 10.7 Lion as well.
    • It loads, wait, does nothing (the choice of unique to Quit or help menu, and then it ends after about 30 seconds, the LiveAgent not appearing.)
    • I made sure the application has access through the firewall Mac and use the stealth mode.  With stealth enabled, there are messages from the console: Live Agent is listening to 0.0.0.0:59142 proto = 6 AND Live Agent is listening to: ffff:0.0.0.0:59142 proto = 6 AND the first msg repeats.    I also disabled the firewall to test without effect if LiveAgent fails to load. Firewall of variants: with the firewall on, LiveAgent just sits with console messages above until the user clicks on the icon status agent and it then goes to the waiting interminable spinner; with the firewall off, it goes to spinner in less than 15 seconds spontaneously with the GSM, but two sets of their pop up.
    • I repeated a deinstall [app and files] / refresh-download/install process three times and got the same results.
    • In the Finder, and LaunchPad, the icon is displayed normally.
    • I reinstalled the previous version [15.4.5722.2] and the LiveAgent charges, but never decided and just hangs.
    • After doing this and made a fourth installation 15.4.5726.23, 20/07/2011, it now loads the agent but is still suspended as the previous version.
    • If after that, I have now the LiveAgent treat during initialization, but never finished.  It remains active for approximately 8 MB of RAM, but no cycles CPU are used
    • My sync folders are orphans of their source computer, although they always synchronize with my Win7 laptop.
    • I dug a little deeper trying to solve this problem.  I get the following error message if I dig in the 15.4.5726.23 app and run the executable manually:

    aarc01: ~ $ Applications/richard/Windows\ Live\ Mesh.app/Contents/MacOS/Windows\ Live\ mesh; "exit";

    Exception thrown:

    System.IO.FileLoadException: Error 0x1A88.  Debugging resource strings are not available. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.50908.0&File=mscorrc.dll&Key=0x1A88

    [IO. FileName_Name]

    Arguments: Microsoft.LiveFX.ResourceModel, Version = 15.4.0.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e

    Debugging resource strings are not available. Often the key and arguments provide enough information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.50908.0&File=mscorlib.dll&Key=IO.FileName_Name

    at Microsoft.MeshOperatingEnvironment.Runtime.Client.MoeRuntime.Start)

    at Microsoft.MeshOperatingEnvironment.Runtime.Client.ILFilter.ExceptionFilter.TryFilterCatchFinally (FilterDelegate filterDelegate, CatchDelegate catchDelegate, TryDelegate tryDelegate, FinallyDelegate finallyDelegate)

    I've seen this behaviour before with v.15.4.5722.2, about 4-5 months ago, but I do not remember what was the solution that solved.

    Can anyone out there advise me?

    THX in advance,

    RC

    Hello RichardCampbellVancouver,

    There is a dedicated forum dealing with problems Windows LIve Mesh. They will be better able to answer your question in the forum.

    Please transfer your question in the Windows Live Mesh Forums on the link below.
    Click on the yellow - ask a Question.

    http://windowslivehelp.com/product.aspx?ProductID=24&version=15.3.2804.0607

    Sincerely,

    Marilyn

  • Microsoft messenger for mac does not work.

    My msn for mac said these things for centuries, I tried to fix it for ages. It is said: 'sign in to Microsoft Messenger failed because the service is not responding. The service is not available or you may not be connected to the internet. "I certainly know my internet works because I can access everything. There is a way supposed to solve this problem, which is where you click on the sign with a different account link, then click on clear history, but I would not have to do something like that, because I want to keep my story, is it possible for me to keep my story and always solve this problem?

    Please visit the following link.
    http://www.officeformac.com/ProductForums/MacMessenger/890

    This can guide you in the right direction...

  • Adobe Creative Suite Design &amp; Web Premium CS6 for Mac - not working after Mac reformat

    I tried to contact Adobe by chat Support, but distinguished and vague answers. Try again here in the forums:

    Running Mac OS X 10.11.4 El Capitan

    Took the plunge, almost a year ago and subscribed to Adobe Creative Cloud, being understood that CS6 would still work well, alongside of.

    After all due my logic board failure reinstall. I had the possibility to disable CS6, so there. Try to reinstall CS6, InDesign, and Photoshop have error: 1

    Configuration error

    Please uninstall and reinstall the product.
    If this problem persists, please contact Adobe technical support help and mention the error code displayed at the bottom of this screen.
    Error: 1

    http://www.Adobe.com/support/

    To contact support via chat, they said they could not help because they had fallen in favor CS6. Seems a bit terrible because it's installation. In addition, said my serial number no longer works when you attempt a re instal. Still, we do not support CS6.

    In addition, they informed that my license of Adobe Acrobat 9.0 for Mac was now unnecessary. Suggested that I use Acrobat in creative cloud.

    I'll leave it for now, I see the Forum someone has ideas. Would prefer to hear, by a representative of Adobe. In other words, of course, if they deem CS6 to be o0ut of support now. I think that it is an installation and a license number. I need not support for the software. I need Adobe for back me, after assuring me that I would have no problem using CS6 alongside CC.

    We are sorry for the inconvenience caused.

    Acrobat 9 is not compatible with the Mac version on your system.

    You can find the details here: Adobe Acrobat system requirements

    Interesting. Just managed to re - install Acrobat 9 Pro on El Capitan. Works very well.

    You can visit this link and follow the troubleshooting steps in order to solve the problem you face when installing CS6: in Adobe Creative Suite or Adobe Creative Cloud Configuration error

    Error "Unable to install" received when installing Adobe Creative Cloud desktop application

    I also tried my setup again. This time, the serial number was accepted and re-installation of InDesign and Photoshop CS6 all fine now. Didn't need to use your suggested corrections, just went ahead and installed. Maybe something Adobe server-side has been fixed since I finally tried? Anyway, thanks for listening

Maybe you are looking for

  • is there a way when opening bookmarks stay you on the original tab up to open fact and only when you click on the tab

    When opening bookmarks, she immediately jumps to this tab and opens. is there was a framework so that when you open favorite stay you on the tab you on before you go to Favorites and these windows usually open until you click this tab >

  • Authorization error of file opening express data signal

    Hi all I'm reading the tdms file created by express signal on a windows 7, using PDM read LabVIEW on the same computer and I get "error 8: the file permission error.» You do not have permission for the file. "Has anyone faced the same problem? Any su

  • May just help some...

    I recently bought a plug XPS 18 AIO who arrived from Dell with a load of Windows 8 generic factory.  The SSD of 32 GB has been also shaped as a regular reader of NTFS and appears in Explorer as just another drive (D to be exact).  I knew from working

  • Interface API - menu of the bottom and the entry dialog box?

    Hello! It would be preferable if a widget is very similar to a native application on BlackBerry so I am just wondering if there is something like an entry dialog box? Like 'Please enter a location"'_' (OK) Another thing I would really like to: in som

  • Log in help

    When you try to access the account information of 1 site I click on connect after you have typed in the name and the password, this computer will not respond.  I have consulted this site from other computers with the same information and it works fin