Applescript - Create RTF File in Last Selected Finder Folder

QUERY: As a fit-for-purpose Applescript user, I try to customize posted scripts (thanks to sharers who do the heavy lifting) to suit my needs. Someone posted a great Applescript for creating an RTF file, but I want one modification:  rather than having to declare/designate a folder in which to place the new RTF, I want it to create the new file in the active Finder file.  Interestingly enough, I also have an Appscript which, in fact, will create a TXT file (not RTF) in the active Finder file. How to take the desirable bit from the latter and working it into the former, I cannot figure. (More times than not, I can successfully blend scripts, but not so this time. I have hit something that requires expert help.)
REFERENCE MATERIAL: First, the current Applescript for creating an RTF. Then, for reference, the Applescript for creating the TXT.
Kind regards,
Obenreizer
=========start RTF creation applescript==========>
tell (current date) to get ((its year) * 10000 + (its month) * 100 + (its day)) as text -- yyyyMMdd
tell the result to set TheDate to text 3 thru 4 & "." & text 5 thru 6 & "." & text 7 thru 8 -- yy.mm.dd
-- QUERY: CAN THIS BE CHANGED TO THE ACTIVE FINDER FOLDER?
set TheFolder to choose folder
-- or can assign a specific "path" (including quotation marks)
set TheName to text returned of (display dialog "Enter the name for the new document:" with title "New text document" default answer TheDate & " - " buttons {"Cancel", "OK"} default button "OK")
set TheFile to (TheFolder & TheName & ".rtf") as text
set TheText to "{\\rtf1\\mac\\ansicpg10000\\cocoartf824\\cocoasubrtf440
{\\fonttbl}
{\\colortbl;\\red255\\green255\\blue255;}
\\margl1440\\margr1440\\vieww9600\\viewh8400\\viewkind0
try -- create a new text document
    tell application "System Events" to get exists of file TheFile
    if not (the result) then
        set TheOpenFile to open for access TheFile with write permission
        write TheText to TheOpenFile as «class utf8» starting at eof
        close access TheOpenFile
    else
        display alert "The file \"" & TheFile & "\" already exists" as critical
        error
    end if
on error
    try
        close access TheOpenFile
    end try
    return
end try
tell application "Finder" to set extension hidden of (TheFile as alias) to true
tell application "TextEdit" -- open the file and print date
    activate
    open file TheFile
    set the text of document 1 to ((current date) as text) & return
end tell
<=========end RTF creation applescript==========
=========start TXT creation applescript==========>
tell application "Finder"
    try
        set fileName to "untitled"
        set fileExt to ".txt"
        set thisFolder to the target of the front window as alias
        tell application "System Events"
            set fileList to get the name of every disk item of thisFolder
        end tell
        set newFile to fileName & fileExt
        set x to 1
        repeat
            if newFile is in fileList then
                set newFile to fileName & x & fileExt
                set x to x + 1
            else
                exit repeat
            end if
        end repeat
        make new file at thisFolder with properties {name:newFile, file type:"TEXT", creator type:"ttxt"}
        --{TO HIGHLIGHT CREATED FILE:  select one one of the next three choices}
        --select (every file of target of front window whose name contains "untitled")
        --select (first file of target of front window whose name contains "untitled")
        select (last file of target of front window whose name contains "untitled")
    on error errMsg
        display dialog (errMsg)
    end try
end tell
<=========end TXT creation applescript==========

Well, copy the above file into this file where the files is created.  See my comments.
=========start TXT creation applescript==========>
tell application "Finder"
    try
        set fileName to "untitled"
        set fileExt to ".txt"
        set thisFolder to the target of the front window as alias
        tell application "System Events"
            set fileList to get the name of every disk item of thisFolder
        end tell
        set newFile to fileName & fileExt
        set x to 1
        repeat
            if newFile is in fileList then
                set newFile to fileName & x & fileExt
                set x to x + 1
            else
                exit repeat
            end if
        end repeat
-- Here is the line where the text file is create.  it is in folder thisFolder  seems the name is in newFile.
        make new file at thisFolder with properties {name:newFile, file type:"TEXT", creator type:"ttxt"}
        --{TO HIGHLIGHT CREATED FILE:  select one one of the next three choices}
        --select (every file of target of front window whose name contains "untitled")
        --select (first file of target of front window whose name contains "untitled")
-- don't know what this line is doing, but I suppose it is highlight the new file since it is named untitled.txt
        select (last file of target of front window whose name contains "untitled")
    on error errMsg
        display dialog (errMsg)
    end try
end tell
<=========end TXT creation applescript==========

Similar Messages

  • Got problems with creating RTF-files after OSX update

    Hi
    I don't know if this is really a MAC OS problem, but it occurred after I updated to 10.5.2 - so it's a likely suspect.
    Since the update I can't create RTF-files any more with Final Draft, my script writing program. A file is created, but when I try to open it I get an error message that it cannot be found. But the file is there: I can see it and click on it. It just won't open.
    Only today now I got the same error message with a doc-file I downloaded some months ago.
    The only big change I lately made to my Mac was the update to 10.5.2 and I got the new Office 2008 (both are the German versions). Could the problem come from either of them? I contacted Final Draft's support - they didn't know of the problem.
    Maybe someone else in this forum has encountered similar problems?

    Have you tried to Repair Permissions using Disk Utility?
    1. Open Disk Utility in your Applications/Utility folder.
    2. Click on the icon for your boot volume.
    3. Click on the First Aid tab and select Repair Permissions
    4. Click the repair permissions button.
    This is the first thing to try whenever any program goes wonky. It's free, but takes awhile for all the files that have to be checked and changed.

  • Xml publisher enterprise!!! create rtf file dynamically with load xml data

    i am new to xml publisher enterprise , i want a solution for this question ...
    i want create rtf file dynamically with loading xml data....means i wrote a program in jsp where the the output in xml file simultaneously create rtf file..but i enable load the xml data in rtf file but when i goto rtf file from where data in that load xml then it genrate the columns..but i want in dynamiclly to load the data will you please guide me ......

    Hi Atiq
    Im not quite clear on the requirement here:
    1. Do you just want to be able to extract the data and apply a template to the XML data from your jdp and render output?
    If so then you can use the XMLP APIs ... the are in the user guide. Particularly:
    RTFProcessor - converts RTF template to XSLFO stylesheet
    FOProcessor - takes, XML data, XSLFO stylesheet and output format and generates the required output.
    2. Do you want a template that will accept any data and just format it into rows and columns ? This can be written but your XML structure is going to have to be static, the data of course can be dynamic.
    Regards, Tim

  • Create rtf file, open in textedit

    i am very new to applescript, if anyone would have mercy, please respond.
    i am trying to create a script that will create a rich text file named by the date (in format of YY.MM.DD for purposes of sorting alphabetically) and open this file for edit in textedit. Preferably, I would like to be able to create a file named by date followed by a short description (for example, activate script - it asks for a summary and then creates a file named by date followed by a summary (for example "07.12.28 - this is an example") and opens that file in textedit.app for editing).
    i worked a lot with iptscrae but it's been a long time...and was nothing like this.
    edit: please note, i've had trouble with spaces in scripts when it deals with file names (date - summary)
    Message was edited by: eightyfiveonions
    Message was edited by: eightyfiveonions

    This is your script after I altered it a bit (and as you'll see it's for the purposes of journaling)
    I'm not sure exactly why I moved the current date and return instructions back to the bottom here but that's what I had to do to get it to work. I'm a trial and error learner more than anything else, I'm going to read up on this a bit but it's working like a charm.
    I guess it was because I set TheText variable back up for the RTF formatting and couldn't figure out how to incorporate the date there.
    edit: the formatting on this post is a bit messed up.. your rtf formatting stuff is moved from location in first script to accommodate the second script but nothing else is different about it. shrugs
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">-- get the current date text
    tell (current date) to get ((its year) * 10000 + (its month) * 100 + (its day)) as text -- yyyyMMdd
    tell the result to set TheDate to text 3 thru 4 & "." & text 5 thru 6 & "." & text 7 thru 8 -- yy.mm.dd
    set TheFolder to "OSX:Users:joseph:Documents:Journal:" -- or set TheFolder to (choose folder)
    set TheName to text returned of (display dialog "Enter the name for the new document:" with title "New text document" default answer TheDate & " - " buttons {"Cancel", "OK"} default button "OK")
    set TheFile to (TheFolder & TheName & ".rtf") as text
    set TheText to "{\\rtf1\\mac\\ansicpg10000\\cocoartf824\\cocoasubrtf440
    {\\fonttbl}
    {\\colortbl;\\red255\\green255\\blue255;}
    \\margl1440\\margr1440\\vieww9600\\viewh8400\\viewkind0
    try -- create a new text document
    tell application "System Events" to get exists of file TheFile
    if not (the result) then
    set TheOpenFile to open for access TheFile with write permission
    write TheText to TheOpenFile as «class utf8» starting at eof
    close access TheOpenFile
    else
    display alert "The file \"" & TheFile & "\" already exists" as critical
    error
    end if
    on error
    try
    close access TheOpenFile
    end try
    return
    end try
    tell application "Finder" to set extension hidden of (TheFile as alias) to true
    tell application "TextEdit" -- open the file and print date
    activate
    open file TheFile
    set the text of document 1 to ((current date) as text) & return
    end tell</pre>
    Unless u see any errors with what I've done, I'm going to run with it.
    Message was edited by: eightyfiveonions

  • Proxy Icon in TextEdit titlebar created HUGE file when dragged into Finder

    Hi everyone, Hope you can solve this mystery...
    I just noticed that the Titlebar of my TextEdit window has a small icon next to the filename (aka "Proxy icon").  I realized that it's draggable, so I decided to do little test to test it's functionality. 
    - I created a small file with one word in it "test" and saved it as "test file.rtf" in a subfolder under Documents; and
    - With the file still open, I dragged the Proxy Icon into a Finder window to the Desktop folder.
    When I looked for the file in Finder, I was shocked to see that:
    - It created a HUGE file...the original file is only 306 bytes in size, but the one I created by dragging shows 2.3 MB !
    - The dragged file also has the appearance of an "Alias" file b/c the Finder window show3s a document icon with a curved arrow next to the filename.
    Questions:
    1) Why would Maverick use an Alias symbol on a file that is clearly not an Alias based on it's size?
    2) Why is the file so much larger than the original?
    I searched online for answers but found none, so I thought I'd give this forum a try.
    btw - in case you're wondering, I did not open the dragged file b/c I didn't want to take any chances.
    Thanks in advance.
    C
    OSX Maverick
    Mac Mini (purchased new approx 6 months ago)

    You can avoid the hassle of the Terminal with this contextual menu add on: SymbolicLInker. It's just a right click away:

  • I cannot search a specific word or information on the webpage when using Firefox browser on Mac OS X 10.6.8. When I go to File menue and select "Find" or "Find again", there is no response. What is going on and how can I fix it? Thanks. Sonia

    I am using the latest Firefox version.

    Does the Find bar show when you select Find (Cmd + F)?
    You can try:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Creating RTF file

    Hi all,
    We are trying to send a RTF file (with images) in the response. For this, first a RTF file has to be generated at server and then written to the response. How can we write a file in RTF format (with images)?
    Can anybody throw some light please?
    Regards,
    Mohan

    Hello,
    Maybe these will help:
    http://www.jfor.org/
    http://xml.apache.org/fop/
    http://jakarta.apache.org/ecs/
    Cheers,
    Kare

  • Dmg file mounted when opening finder folder

    Every time I open a finder folder, a certain dmg file is mounted (jAlbum.dmg) How do I get rid of that annoying behavior? I don't want to delete the .dmg file as it's needed sometimes

    Move the following to your desktop:
    ~/Library/Preferences/com.apple.Finder.plist
    ~/Library/Caches/com.apple.finder
    To open you user library, hold down (option) and click 'Go' from the Finder Menu Bar > Library
    Navigate to each path, move to your desktop, reboot. Same issue?

  • How do I remove the hidden file icons from the Finder folder?

    I recently had problems with Final Cut Pro and had to remove QuicktimeX and use Pacifist to re-install QuicktimeX back into the Applications folder.
    I now have "hidden icons" that are lightly grayed out in the Finder folder. I was told by the Apple Genious leave them alone until you know the correct way of removing them from the folders because they play an important role in the system folder.
    Can someone advise me on how to make them go away again?

    LOL! Sorry Niel, I 'm just a beginner when it comes to more the double clicking on the Mac. I just had to laugh at myself after reading your response. I should have been in a Three Stooges movie....
    Thank you, it worked and I saved it just in case one of my friends have the same problem. I will fix it for them then claim to be a Mac Genius.

  • AppleScript "Add to File Names.scpt" (in Finder Scripts) adds "Prefix" to end of files rather than adding actual prefix?

    This may be a quirk with my setup, but when the file "Add to File Names.scpt" runs in Mavericks "Prefix" is appended to the end of filenames rather than the term I would like to be added as a prefix...unsure if this can be reproduced on other comptuers? Similarly, as a test, if a term is intended to be added as a suffix to a file name then "Suffix" is appended to the end of a file name - rather than the term.
    If this is a bug is there a fix?
    Thanks

    apparently this is a bug with a workaround as described here:
    https://discussions.apple.com/message/24085265#24085265

  • How to create a file in application data local folder which is not hidden in windows store app?

    I want to create a log file in ApplicationData local folder.
         m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(m_Name.Replace(" ", "_") + ".log",
                              CreationCollisionOption.OpenIfExists);
    First time when my app is launched, the file gets created and logs are written.
    When I close my app, and re run the app once again, the log file that was created is now hidden and when i try to call
    the code :    m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(m_Name.Replace(" ", "_") + ".log",
                              CreationCollisionOption.OpenIfExists);
    m_StorageFile is NULL.
    How can i prevent the file from becoming Hidden or ReadOnly.
    Thanks

    Here is a very simple sample that works fine.  Start with this and see what you are doing different.
    XAML:
    <Page
    x:Class="LocalStorage.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:LocalStorage"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Loaded="Page_Loaded">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <TextBox x:Name="outputTxt" HorizontalAlignment="Left" Margin="76,82,0,0" TextWrapping="Wrap" VerticalAlignment="Top" AllowDrop="True" PlaceholderText="No Data read from local file" Width="791"/>
    <Button Content="Store Data" HorizontalAlignment="Left" Margin="73,145,0,0" VerticalAlignment="Top" Click="Button_Click" />
    </Grid>
    </Page>
    C#
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Runtime.InteropServices.WindowsRuntime;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.Storage;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    namespace LocalStorage
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    public MainPage()
    this.InitializeComponent();
    private async void Button_Click(object sender, RoutedEventArgs e)
    if (m_StorageFile != null)
    try
    string userContent = outputTxt.Text;
    if (!String.IsNullOrEmpty(userContent))
    await FileIO.WriteTextAsync(m_StorageFile, userContent);
    else
    // should be some info to write
    catch (FileNotFoundException)
    // do something
    private StorageFile m_StorageFile;
    private async void createFileOrGetFile()
    m_StorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync("sample.log", CreationCollisionOption.OpenIfExists);
    private async void Page_Loaded(object sender, RoutedEventArgs e)
    createFileOrGetFile();
    if (m_StorageFile != null)
    try
    string fileContent = await FileIO.ReadTextAsync(m_StorageFile);
    outputTxt.Text = fileContent;
    catch (FileNotFoundException)
    // do something!
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • Safari file attachments from same Finder Folder?

    Hello,
    I am attaching multiople files from the same folder to different emails using gmail. I do not use any email programs on my iMac. Everything is virtiual.  I don't want to  have go through all my file toggles to get to the folder I am working from every time, which is what I am doing.I want the computer to remember and default to that folder. How can I set this up?
    Thanks,
    Claire

    I have figured out that I can open the file folder in a different window and just drag in drop. This better. However, I would be interestred in being able to modify Finder settings for file management.
    Cheers,
    Claire

  • LUMIERE created XML files to 'facilitate the migration of project in FCP.'

    I recently purchased Lumiere so that I could work with material shot on the JVC GY-HD100U camera in FCP. I understand that FCP is due to for an update soon, but alas, I'm unable to wait. That being said, I have followed the various steps to create mov files from the compressed MP2 files generated through Lumiere. The supposed last step before beginning the edit in FCP is to decide whether or not to 'create FCP XML' or not.
    1. What purpose does using XML files instead of the .mov files serve in FCP? It is an option in the import files drop down... What gives? For that matter why and what are xml files function here? Pretty Green, I know
    2. Can I edit using the custom 24p Apple Intermediate Codec I was told to create usinf the mov files instead, and then online, or convert the timeline to full resolution just the same using the mov files?
    3. If I am getting an error message when trying to import the XML files and am therefore unablr to do so... any ideas why? I had one file with 'acceptable errors'. The log read that there was a path problem with the audio files, which I was unable to fix. The other files would not import at all. Why?
    4. What is the best way/codec for editing HDV - outputing te best image resolution without a Xserve raid or the like...
    I know this probably reads like questions for a Lumiere forum, but I have tried and received no answers... Any insights appreciated, as my deadline is fast approaching.
    -Thanks
    Tom.

    Maybe this will help from the Lumiere HD forum on their site (http://www.lumierehd.com/forums/showthread.php?t=576) :
    720p EDITORIAL WORKFLOW USING JVC-GYHD100 AND FCP5.0
    By Jon Farhat
    CAPTURING AND EDITING
    JVC GY-HD100 720p > LUMIERE HD > FINAL CUT PRO 5.0
    Workflow Steps:
    1. Launch Lumiere HD and begin with the CAPTURE/PRINT tab.
    2. Enter your Logging information into the fields labeled REEL, DESC., SCENE and SHOT. The program with create a name for you based on this information and place it in the NAME field.
    3. You can also check AUTOINCREMENT. Doing this will create a Name based on the Scene Name and will add a Shot number starting with 1. Each time you capture a new take, the shot number will increase as well as appear as an extension to the file name as indicated in the Name field.
    4. Click on the DESTINATION button to choose a folder for your raw Transport streams. The files placed in this folder will have the naming convention, DESCSCENE1.m2t. Note that these files have the Audio and Video multiplexed together.
    5. Use the toggle controls to line find your desired take and back up a while to add a little pre-roll. (Note: LHD does not do Batch Capturing so you have to click the CAPTURE and STOP CAPTURE button for each take.
    6. Once you have captured all your takes and placed them in your working folder, click on the PROGRAM STREAM tab.
    7. Click on the DESTINATION button in the PROGRAM STREAM VIDEO area. When the navigation window opens, click on NEW FOLDER and create a folder called “Video”. Select OK to choose your new folder.
    8. Click on the DESTINATION button in the PROGRAM STREAM AUDIO area. When the navigation window opens, click on NEW FOLDER and create a folder called “Audio”. Select OK to choose your new folder.
    9. Now click on the SELECT M2T FILE(S). IMPORTANT NOTE: If you have used the Autoincrement function, or have sequentially numbered files, no not select the folder housing your m2t’s but rather drag select across all your takes, starting from the lowest number to the highest. Then click OK.
    10. Now you are read to split the raw m2t transport streams into a separate AIFF audio file, which will be placed in the Audio directory you created and and M2V video file which will be placed in the Video Directory. It is important that the audio files and video files are in these separate directories.
    11. Choose the PRESETS pull-down menu In the REALTIME TIMELINE CODEC window. Select OTHER.
    12. In the COMPRESSION TYPE Pulldown menu, select APPLE INTERMEDIATE CODEC.
    13. Select the FRAMES PER SECOND pull-down menu and select 23.98.
    14. Select the OTHER button in the COMPRESSOR > PRESET.
    15. In the SIZE section, choose the SOURCE button. Note that you can also create a smaller dimension such as 720 x 406 (16:9 aspect ratio) since this is only used as a proxy in FCP to edit with. But if you have the memory and speed, working in the full 1280 x 720 is preferable. These files will not be rendered into your final master. After you edit with this proxy codec, you will use Media Manager to build a new timeline from the full size raw capture images. It is on this new full-size timeline that you will color correct your movie as well. (Discussed later in this document)
    16. In the FINAL CUT AUTOMATION section, check the CREATE FCP XML box, and UN-CHECK the ANAMORPHIC box.
    17. Click on the AUDIO FILES? Button and either double-click on the AUDIO directory you created which houses your AIFF’s and then click OPEN or simply select the directory once and then click OPEN.
    18. Now click on the SOURCE button in the SOURCE/DESTINATION section. Open the Video folder which houses your de-multiplexed m2v video files.
    19. Click on the DESTINATION button in the SOURCE/DESTINATION section and select NEW FOLDER and call this “project name”_REALTIMES. This is where your .mov files which are compressed with the AIC (Apple Intermediate Codec) will be placed.
    20. You are now ready to hit the GO button. So, what are you waiting for, hit the GO button now!
    21. When the Quicktime settings dialog opens, confirm your SETTINGS, FILTER and SIZE settings under the VIDEO sections. IMPORTANT NOTE: Make sure to select the SOUND > SETTINGS button and change the SAMPLE RATE to 48kHz, 16 bit, Stereo.
    22. After Lumiere HD creates your file(s), another window will open asking you to input your XML FILE NAME. Do this then click OK.
    23. When you view your “REALTIMES” directory, you will notice that you now have matching files to your demultiplexed Video files. For instance, if your file was named, DESCSCENE1.m2t then then Realtime file you use for editing will be named DESCSCENE1.mov. The XML file will also appear in this destination directory.
    24. Open Final Cut Pro. Let’s start by creating a new EASY SETUP preset. (You will only have to do this one time since no Easy Setup setup exists for AIC 24p in FCP. From then on, you will start FCP and simply go to Easy Setup and select this Project Preset before you import your XML skipping to item 29 below) Select AUDIO VIDEO SETTINGS. Under the SEQUENCE PRESETS tab, select APPLE INTERMEDIATE CODEC 720p30 from the scrolling menu. Note that we are going to create a preset for 23.98 from this one by changing the frame rate. All other settings are the same as the 720p30 preset.
    25. Select the DUPLICATE button. In the SEQUENCE PRESET EDITOR change the NAME to “Apple Intermediate Codec 720p24” Go ahead and also change 30 to 24 in the DESCRIPTION text box.
    26. Confirm the following settings in the GENERAL tab.
    a. FRAME SIZE: 1280 X 720
    b. ASPECT RATIO: HDTV 720p (16:9)
    c. Make sure the ANAMORPHIC (16:9) box is UNCHECKED.
    d. PIXEL ASPECT RATIO: Square
    e. FIELD DOMINANCE: None
    f. EDITING TIMEBASE: 23.98
    g. TIMECODE RATE: Same as Editing Timebase
    h. QUICKTIME VIDEO SETTINGS: Apple Intermediate Codec.
    i. QUALITY: Desired setting based on your system capacity.
    j. AUDIO SETTINGS: 48kHz, 16-bit and a Default Config:
    27. Click OK, then select this new Preset once you return to the AUDIO/VIDEO SETTINGS dialog and then click CREATE EASY SETUP.
    28. When the EASY SETUP dialog opens up create type in the NAME field, “HDV-Apple Intermediate Codec 720p24” Enter a description and then click the CREATE button. Save in the CUSTOM SETTINGS pull-down menu.
    29. Let’s start by closing all open Projects and stay in FCP. It’s always good to have a separate 720p project for all your JVC HD-100 sequences. Select EASY SETUP and select your new “HDV-Apple Intermediate Codec 720p24” Of course you will still be in the basic program now with no Projects or Sequences, but your system is now configured to import the XML and the sequence presets will match perfectly. (Keep in mind we did all this to circumvent a bug in FCP5.0)
    30. Now go to FILE > IMPORT > XML and select the XML file you created in Lumiere HD. Select CHOOSE. When the IMPORT XML window opens, select the CREATE NEW PROJECT in the DESTINATION pull down menu. Make sure your DEFAULT is APPLE INTERMEDIATE CODEC 720p24. Make sure all buttons are checked, including OVERRIDE WITH SETTINGS FROM XML. You should be able to simply check this override box when importing into any open FCP session and create a new project with the XML settings once the bug is fixed in FCP.
    31. This will create a new project named after your XML, and a directory of all your real-time clips called “project name”_REALTIMES.
    32. You will also notice that the clip names do not end with .mov but rather end with .m2v. These names actually access the AIC compressed .mov files as this naming convention in the browser is simply a means to locate the uncompressed transport streams later with Media Manager once you have finished editing.
    33. Now you can start editing. When you drag a clip to the Timeline, the corresponding AIFF audio file will also travel with it and be locked to the Video. However, until Timecode sync is offered in LHD, you may need to re-sync via the Clapper slate as mentioned above. However, unless you are using very long takes, the sync is within fractions of a frame and isn’t perceptible.
    34. Edit away but avoid doing things like color correction or final rendering of effects until you are done with the need to work in real-time.
    35. Once you are finished editing, move to the next section.
    GOING ONLINE
    FINAL CUT PRO 5.0 > LUMIERE HD > JVC GY-HD100 720p
    CONNECTING ORIGINAL MEDIA: ONLINE OPTION #1
    1. Select sequence in your browser.
    2. Choose FILE > MEDIA MANAGER.
    3. Media Manager Settings:
    a. Media: CREATE OFFLINE
    b. Set Sequence to CUSTOM
    c. 1280 X 720
    d. Pixel Aspect Ratio: SQUARE
    e. Anamorphic Box: UNCHECKED
    f. Editing Timebase: 23.98
    g. Timecode rate: SAME
    h. Compressor: NONE or HDV720p30
    i. Audio: 48kHz, 16 bit, stereo default
    j. Project name: ONLINE 720p24
    k. Go to ONLINE 720p24 tab in the browser. Double click on the sequence. (Note: the is currently an issue in LHD’s XML function in that it will not transfer the REEL NAME to the clip. You will have to select all your clips to add the reel name, otherwise the the clips will not be made “Offline”. You can always right-click on the clip an select the MAKE OFFLINE function. )
    l. Save project name: ONLINE 720p24
    m. Go to ONLINE 720p24 tab in the browser and double-click on the sequence. (clips should be offline if the reel name is added in the brower.)
    n. Select all the clips in the browser in the ONLINE 720p24 sequence and choose RECONNECT MEDIA.
    o. Point to the original digital negative clips that you demuxed in LHD. (ignore mismatch warning and all your clips should reconnect.
    IMPORTANT NOTE: The above routine for going online worked will with FCP4 but now there exists a BUG in FCP5 in the Media Manager function.
    BUG REPORT: When doing an offline and choosing "based on clip names" (which are NAME.MOV), Media manage will add .MOV to the source name resulting in NAME.MOV.MOV.
    This is happening in FCP5. It never happened in FCP4. We've used this freature extensively before for online/offline editing workflow. The advantage of using clip name vs. file name in the browser is that you can edit a proxy and always keep track of its online version by naming the clip the same name as the online version. Now that it ads .MOV to the name, it's unusable - or you have to reconnect by hand rather than using hte "connect the clips based on relative paths" option.
    CONNECTING ORIGINAL MEDIA: ONLINE OPTION #2
    STICKING WITH APPLE INTERMEDIAT CODEC.
    For now, it is possible to stick with the Apple Intermediate codec when going online and back through LHD to the JVC HD-100. If so, choose NONE compression when exporting a Quicktime from FCP for use in LHD. However, the best case will be to use the above option #1 when Apple gets around to fixing their bug with Media Manager.
    Otherwise, you will have to reconnect all your clips to the original m2v’s manually to avoid the codec altogether.
    About the Apple Intermediate Codec
    The Apple Intermediate Codec is a high-quality video codec that Apple developed for use as an alternative to native MPEG-2 HDV editing in an HDV workflow. Instead of editing the MPEG-2 HDV data directly, you can capture video from the tape source and then transcode it with the Apple Intermediate Codec to optimize the video data for playback performance and quality.
    Working with the Apple Intermediate Codec is less processor-intensive than working with native HDV. Unlike MPEG-2 HDV, the Apple Intermediate Codec does not use temporal compression, so every frame can be decoded and displayed immediately without first decoding other frames. The drawback of this codec is that it requires three to four times as much bandwidth and hard drive storage space as MPEG-2 HDV.
    Data rates for the Apple Intermediate Codec are variable; the data rates and storage needed may vary slightly, depending on the complexity of your footage. Images with a lot of detail have a higher data rate, while images with less detail have a lower data rate.
    Format and Data rate
    MPEG-2 HDV 720p30……….2.5 MB/sec. (equivalent to 9 GB/hr.)
    MPEG-2 HDV 1080i60/50……….3.3 MB/sec. (equivalent to 12 GB/hr.)
    Apple Intermediate Codec HDV 720p30………. approximately 7 MB/sec. (equivalent to approximately 25 GB/hr.)
    Apple Intermediate Codec HDV 1080i50………. approximately 12 MB/sec. (equivalent to approximately 42 GB/hr.)
    Apple Intermediate Codec HDV 1080i60………. approximately 14 MB/sec. (equivalent to approximately 49 GB/hr.)
    Frame Aspect and Dimensions
    MPEG-2 HDV and Apple Intermediate Codec feature a 16:9 widescreen aspect ratio for all resolutions.
    The 1080i format features 1080 lines (1440 pixels per line), interlaced, using non-square pixels to display a screen ratio of 16:9 (equivalent to 1920 x 1080). The 720p format features 720 lines (equivalent to 1280 x 720) with a progressive scan.
    Color Recording Method
    Both MPEG-2 HDV and Apple Intermediate Codec HDV record a 4:2:0 component (Y´CBCR) digital video signal. Each sample (pixel) has a resolution of 8 bits.
    Note: This article was based on information from the HD and Broadcast Formats document (in Final Cut Pro 5, choose HD and Broadcast Formats from the Help menu).
    EXPORTING QUICKTIME TO LUMIERE HD > JVC GY-HD100
    1. Use the following settings when feeding a Quicktime file back to Lumiere HD if you plan on generating a 720p24 transport stream to the JVC GY-HD100 or BR-HD50.
    2. Quicktime settings:
    a. Resolution: 1280x720
    b. Frame Rate: 23.976 (23.98)
    c. Progressive
    d. Audio on whole track.
    e. Audio Settings: 48kHz, 16bit, stereo
    f. Square Pixel.
    3. Open LHD and select the TRANSPORT STREAM tab.
    4. Select JVC 720p/24 (GY-HD100, BR-HD50) in the pulldown menu.
    5. Select the HDMASTER tab and then choose your .MOV file.
    6. Select the DESTINATION BUTTON under the TRANSPORT STREAM section.
    7. Now return to the CAPTURE/PRINT tab in LHD and select the print to tape button. Choose your new edited TS (transport stream) file and Click OPEN and it will print to tape automatically.
    Special Thanks to the following for their input to this document:
    Frederic Haubrich
    Neil Boone
    Apple Docs: Article number 301599
    Jerry

  • View the .rtf file not display the data in BI Publisher Enterprise.

    Hi,
    Platform: OBIEE 10g in NT XPsp2
    View the .rtf file not display the data in BI Publisher Enterprise.
    Step 1, I created Answer-request, create .rtf file with Word and add the request name, Add bar chart and table, preview PDF is working fine with data, Upload this template to Answers, View Template from Answer is working fine with data.
    Step 2, Answers – More Products > BI Publisher > My Folders > Create a new report > Edit > Data Model > New > Type: SQL Query > Data Source: Oracle BI EE > Query Builder > from SupplierSales assign Customer, Periods, Sales Facts (select Region, state, Year, Units Shipped) > Results > Save > Save
    Click Layouts > New > enter Name ….. > Click Layouts > borrows .rtf file in Manage T file > Upload > Save > Click View
    It is showing only the .rtf file without data. Why there is no data?
    Please guide me to solve this issue.
    Thanks,
    Jo

    Thanks for you reply,
    Our scenario is this report is basically a dissconnected mode report... we are developing these reports for mobile clients.
    We dint face this kind of issue while developing other reports.
    So please let us know if you have any idea on why we are facing this issue.
    Regards,
    Maneesh

  • Can applescript search one file for non-matches in another file?

    I'd like to know if it's possible for Applescript to do the following:
    Take a text file with 600+ URLs and compare it to another text file with 100,000+ URLs and set out as a result any URL from the first small list that is NOT included in the second larger list?
    If it is possible to do this, is there anyone out there willing to create such a script for a modest fee?

    Hard to read the screenshot. next time cut and paste the test into the reply. Also select Replies as the display for the window in Applescript.
    The error you get, the no such file or directory are you sure that the file exists? Looks like the file is called List and it is in your desktop?
    Just tried it here and it is working OK
    Here is another copy just in case something got messed up in the first one:
              The patteren file is the smaller file with the URLs that we will lok for in the URL file
    set file1 to POSIX path of (choose file with prompt "Select patteren file:" default location alias (the path to desktop folder as text))
    set file2 to POSIX path of (choose file with prompt "Select URL file:" default location alias (the path to desktop folder as text))
    do shell script "grep -o -E '(https?|ftp|file)://.+' " & file1 & " > ~/patternFile"
    do shell script "grep -o -E '(https?|ftp|file)://.+' " & file2 & " > ~/urlFile"
    do shell script "grep -v -f ~/patternFile ~/urlFile > ~/missingUrlFile"
    --- stop copying above this line
    Just so you can see what the output in the Replies window of Applescript will look like:
    tell current application
      path to desktop as text
      --> "Mac OS Lion:Users:frank:Desktop:"
    end tell
    tell application "AppleScript Editor"
      choose file with prompt "Select patteren file:" default location alias "Mac OS Lion:Users:frank:Desktop:"
      --> alias "Mac OS Lion:Users:frank:Desktop:f1"
    end tell
    tell current application
      path to desktop as text
      --> "Mac OS Lion:Users:frank:Desktop:"
    end tell
    tell application "AppleScript Editor"
      choose file with prompt "Select URL file:" default location alias "Mac OS Lion:Users:frank:Desktop:"
      --> alias "Mac OS Lion:Users:frank:Desktop:f2"
    end tell
    tell current application
      do shell script "grep -o -E '(https?|ftp|file)://.+' /Users/frank/Desktop/f1 > ~/patternFile"
      --> ""
      do shell script "grep -o -E '(https?|ftp|file)://.+' /Users/frank/Desktop/f2 > ~/urlFile"
      --> ""
      do shell script "grep -v -f ~/patternFile ~/urlFile > ~/missingUrlFile"
      --> ""
    end tell
    Result:
    Message was edited by: Frank Caggiano - See Tony's post below

Maybe you are looking for

  • HT4972 How do you restore your Iphone

    My iphone will not turn back on after i accidently said quit on the IOS5.0.1 update and i cant find out how to restore it

  • Making a web gallery type photo viewer in encore

    Ay guys, so I'm relatively new with the whole encore thing. I know enough that I can make menu's, buttons, put in animations etc. the basics really. I'm wondering if theres a way to make one of my menu's a photo gallery kind of like this one http://w

  • Changes after transport are not reflecting in QA and Production

    Hi All, We changed two table settings in developemnt system  table names are ALMBCADM & ALMBCDATA. We modified the table technical settings as "buffering allowed but de-activated". After we transported the change requested in QA Prod enviornment ,the

  • SUS PO document number same as ECC PO number

    Hi Experts, We are on SRM 7.0 with ECC EHP4, SUS4.0 with SRM on single client. The requirement is to have the same SUS PO document number as the ECC PO number so that supplier would not require to refer to another number and avoid confusions. Else ca

  • Help! Trying to redirect a website currently hosted by 1

    Hi I created a website in iWeb for a friend of mine but I want his old webaddress(currently hosted by a company called 1&1 who's customer support is almost non existent) to redirect to the new iWeb created page.I've tried logging into the control pan