Applescript with quicktime and Lame encoder

Hi there, I´m using Quicktime Pro 7.1.3 on OS X 10.4.8 and I´m wondering if it´s possible to use Apple script to export a new recorded sound directly to mp3 using the lame encoder, like:
tell application "QuickTime Player"
set theFilename to (choose file name)
set theExportName to (theFilename & ".mp3") as Unicode text
new audio recording
start first recording
delay 100000
stop first recording
export movie 1 to theExportName as ??? using most recent settings
quit saving no
end tell
has anybody a suggestion?
Thanks in advance
Mac Mini   Mac OS X (10.4.2)  

tell application "QuickTime Player"
activate -- Launch and / or bring forth 'QuickTime'.
set tList to {} -- List to contain obtained date.
tell movie 1 to copy name to end of tList -- Place name of current movie into tList.
repeat
set {tFlag, tResult} to {0, display dialog "(Start Time) ... Subject letter: " default answer "A" buttons {"OK"} default button 1}
-- Place Subject Name and scaled Start Time into tList.
tell movie 1 to set {tSubject, movie_Name, start_time, time_scale} to {text returned of tResult, name, current time, time scale}
copy {tSubject, start_time / time_scale} to {end of tList, end of tList}
if ((button returned of (display dialog "End time of Subject: " & tSubject buttons {"Completed", "Continue..."} default button 2)) is "Completed") then set tFlag to 1
tell movie 1 to set end_time to current time
copy (end_time / time_scale) to end of tList -- Place scaled End Time into tList.
if (tFlag = 1) then exit repeat -- Exit infinite loop when 'Completed' button is selected.
end repeat
tell application "Microsoft Excel"
activate -- Launch and / or bring forth 'Excel'.
if (not (document 1 exists)) then make new document -- Create a new document, if needed.
-- Add header information to Worksheet.
set (value of cell 1 of row 1) to "Movie Title: "
set Column_Titles to {"Subject", "Start Time", "End Time", "Difference"}
repeat with i from 1 to (count Column_Titles)
set (value of cell i of row 3) to (item i of Column_Titles)
end repeat
-- Add contents of tList to the worksheet.
set tInc to 1
repeat with i from 1 to (((count tList) - 1) / 3)
repeat with j from 1 to 3
set tInc to (tInc + 1)
set (value of cell j of row (i + 4)) to (item tInc of tList)
end repeat
set (value of cell (j + 1) of row (i + 4)) to ((item tInc of tList) - (item (tInc - 1) of tList))
end repeat
end tell
end tell
  Mac OS X (10.4.4)  

Similar Messages

  • Applescript with quicktime and excel2004

    I would appreciate any help on the following.
    I have a lot of quicktime videos I need to look at. Each movie contains many subjects doing diffferent things. Subject A say begins to talk, and I can get the time code of this point by looking at the quicktime time info window.
    When this subject finishes, I can do the same. And, I can get the time this subjectA was talking. The subject A might speak at different times in the movie, and I need to record all this start-end times, and the differences each time, and get a cumulative sum.
    I know to get the time stamp using applescript from a currently open movie.
    tell application "QuickTime Player"
    activate
    try
    --I check if i have qt pro -not shown here
    set this_movie to the name of movie 1
    set this_time to the current time of movie 1
    set movie_scale to the time scale of movie 1
    set this_timecode to my time2timecode(this_time, movie_scale)
    display dialog "Current time of “" & this_movie & "”:" & ¬
    return & return & this_timecode buttons {"Clipboard", "OK"} default button 2
    if the button returned of the result is "Clipboard" then
    set the clipboard to this_timecode
    display dialog "The timecode is now on the clipboard." buttons {"•"} default button 1 giving up after 2
    end if
    end try
    end tell
    Now, the time stamp is in the clipboard, How can I take it into columns in Excel2004 -- using applescript.
    subjA startTime endTime diff
    subjA startTime endTime diff
    subjB startTime endTime diff
    subjA startTime endTime diff
    subjC startTime endTime diff
    subjA startTime endTime diff
    Any help is appreciated. Right now, I want to do this for a ppc running osx tiger and using excel for office 2004, and quicktime 7.x pro.
    Will the script be differrent if this were performed on an intel-mac?
    Rand on PowerMac PPC G5
    PowerMac PPC G5- excel 2004- qtpro7 -- Tiger   Mac OS X (10.4.7)  

    tell application "QuickTime Player"
    activate -- Launch and / or bring forth 'QuickTime'.
    set tList to {} -- List to contain obtained date.
    tell movie 1 to copy name to end of tList -- Place name of current movie into tList.
    repeat
    set {tFlag, tResult} to {0, display dialog "(Start Time) ... Subject letter: " default answer "A" buttons {"OK"} default button 1}
    -- Place Subject Name and scaled Start Time into tList.
    tell movie 1 to set {tSubject, movie_Name, start_time, time_scale} to {text returned of tResult, name, current time, time scale}
    copy {tSubject, start_time / time_scale} to {end of tList, end of tList}
    if ((button returned of (display dialog "End time of Subject: " & tSubject buttons {"Completed", "Continue..."} default button 2)) is "Completed") then set tFlag to 1
    tell movie 1 to set end_time to current time
    copy (end_time / time_scale) to end of tList -- Place scaled End Time into tList.
    if (tFlag = 1) then exit repeat -- Exit infinite loop when 'Completed' button is selected.
    end repeat
    tell application "Microsoft Excel"
    activate -- Launch and / or bring forth 'Excel'.
    if (not (document 1 exists)) then make new document -- Create a new document, if needed.
    -- Add header information to Worksheet.
    set (value of cell 1 of row 1) to "Movie Title: "
    set Column_Titles to {"Subject", "Start Time", "End Time", "Difference"}
    repeat with i from 1 to (count Column_Titles)
    set (value of cell i of row 3) to (item i of Column_Titles)
    end repeat
    -- Add contents of tList to the worksheet.
    set tInc to 1
    repeat with i from 1 to (((count tList) - 1) / 3)
    repeat with j from 1 to 3
    set tInc to (tInc + 1)
    set (value of cell j of row (i + 4)) to (item tInc of tList)
    end repeat
    set (value of cell (j + 1) of row (i + 4)) to ((item tInc of tList) - (item (tInc - 1) of tList))
    end repeat
    end tell
    end tell
      Mac OS X (10.4.4)  

  • Internal Microphone not working with Quicktime and some other apps, yet it does for Skype.

    Internal Microphone not working with Quicktime and some other apps, yet it does for Skype. 
    Microphone works fine with Quictime on another mac, so I do know how to use it. The one where it is not working (A) had an external microphone and camera attached earlier, and indeed it does work with that external microphone, but not with the internal microphone selected; and (B) had RealPlayer installed previously.
    Any suggestions, please?

    Hi,
    Download Audio driver from here.
    Intructions how to install it in Vista/Win7.
    Extract this driver with Winrar.
    Open Device manager and expand the Sound, video and game controllers section.
    Right click on Either the High Definition Audio Device if you have the generic Microsoft drivers, or the Conexant High Definition SmartAudio 221 if you have older Conexant drivers and choose "Update Driver Software..."
    Click Browse my computer for driver software, then click "Let me pick from a list of device drivers on my computer"
    Click "Have Disk..." then Browse to the folder where the drivers were extracted  .......\V64 for 64-bit Vista/Win7. Click OK.
    Select one of the "Conexant High Definition SmartAudio 221" models in the list, there will be multiple identical entries.
    Click Next, and you're done.
    I'm not sure which one from the list will work for You.
    This drivers weren't test. So if You will try them and it will work for You let us now about.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Problems Installing FFMpegX for use with QuickTime and other software

    Okay I don't know whether I should be posting this here or under the board for Using Mac OS X Panther and earlier operating systems but I used to have the FFMpegX video and audio conversion software installed on my Mac an Apple 12' PowerBook G4 but recently had a system OS reinstall when my hard disk became defective and I was unable to make repairs.
    I backed up all my files but of course I couldn't back up the software I had downloaded. Was fortunately able to redownload some of my apps but this is a case where an app of mine I want back won't come back.
    I download the installer and it fails to mount the disk image even on my desktop. I am running Mac OS 10.3.9 Panther -- I tried searching for an older version of ffmpegX I could download but that didn't work either. Since when is ffmpegX shareware? When I used it the software was freeware.
    Anyways, it is such an essential program foir me that I would pay the fee just to get it back but I can't even download the trial software to begin with. I have tried downloading from the main website www.ffmpegX.com and a few other links I found on Google but to no alas none have seemed to work.
    I have plenty of videos I like to encode and re-encode from time to time using my Mac from VOB 2 .DAT 2 AVI 2 MPEG 2 M4V (iPod format) 2 WMV 2 MOV etc and vice versa using Divx and XviD codecs I NEED FFMPEGX what can I do?
    I have Mac OS 10.3.9 Panther with QuickTime 7.1.2, iTunes 6.0.5 the Apple Security Update 2006-003, Virex 7.2 virus protection software and Microsoft Office X with the latest patches for that software product and VLC Media Player. I need FFmpegX and/or (in either case actually drop the or) software for Mac OS X that allows users to convert video .DAT files from VCD to AVI.
    I have Divx codec for Mac and 3ivx software with Divx Doctor II -- an AVI 2 MOV video conversion software + D Vision 3 also installed. I currently have installed Safari 1.3.2 also.
    Any suggestions! Please help any way possible. I just have to get FFmegX working again.

    http://www.squared5.com/svideo/mpeg-streamclip-mac.html (free).
    http://apple.com/quicktime/mpeg2 ($20). Needed for MPEG-2 conversions.
    http://flip4mac.com for the WMP conversions (prices vary based on features).

  • STILL no real answer to problems with QuickTime and Flash Player

    The reply to Problems with QuickTime really didn't answer or solve the basic problem. Some sites to work at all require you to have working Flash Player 8 so when I try to use these sites I get the QuickTime logo with a question mark and then nothing. For all you experts on Apple and Mac; what is going on? Apple is the parent of QuickTime and I assume they want their customers happy with their work. So why is it so hard for these apparently small updates to their programs causing entire sites being blocked off? I have OS x 10.3.9 on a G4 iMac 855mHrz .... It seems that even though we, the customer by default become Apples program testers;the actual programers are never given the go ahead to actualy look at these problem posts. Has anyone ever gotten a solution for a problem they posted here from one of the programmers of the product? It would be nice to know we aren't left to our own devices when it comes to program gliches from the source. If the powers that be in apple are watching and willing to help; any time now is a good time to just but in on the conversation and help solve some of the problems us little people keep on running into.--------------
    While online I run into sites that will NOT work without Flash Player 8 (which costs over $150.00) which is told to the viewer with a QuickTime logo with a question mark in it.
    This leads the web surfer to try to upgrade or at least investigate Flash Player in their computer and it's version.When said web surfer looks at Flash player upgrade for bucks and the fact that in some way it is tied to QuickTime, web surfer gets real curious. Do the web masters for those sites know that their site is now blocked off? If any major portion ( say 30 or 40 % ) of the web surfing crowd is required to purchase an upgrade to Flash Player even though it doesn't look like Apple is the parent of said Flash Player; those web masters are going to be upset with Apple. Their income is tied to actuall access and browsing of a site, even if it is only to actually just get the Home page. With no access to the site due to no Flash Player 8, the web master is going to find those all important Hits going down to nil. -------
    This post is way to broad for any one answer so I don't really expect one. But for you people who have run into similar problems with other programs and sites; I would love to hear if you got any help from other web surfers or from the parent people of those programs and/or sites. I know that my isp earthlink has helped out with problems faster than other groups involved. Anyway.. Any help or comment on this post ( or gripe if you prefer ) would be greatly appreciated. Thank you.

    Sorry, but you are completely misinformed. Flash Player 8 doesn't cost one red cent; it's only the Flash creation package that you have to pay for. You can download the free Flash Player 8 here.
    QuickTime can natively handle some Flash content, which is why with the lack of the Flash player the browser defaults to the QT plugin. But Flash 8 is a relatively new format from Macromedia and I'm not sure QT supports it yet. Install the Flash 8 player and things should work just fine.
    And just FYI, for questions about the Mac version of QuickTime, you'll be better off asking them in the QuickTime for Mac forum.

  • Problems with Quicktime and DV25

    Can any one help me? I keep getting a big white stripe at the right of the frame when exporting from HD (XDCAM HD 422) to DV. It makes itself visible when you watch the DV in  full screen mode. It covers the whole screen from top to bottom. Any Ideas?

    Yes, I have this problems too.
    Since I have done this Updates, the Audio Sync is not OK and my Songs going demadged by using -Audio Groups-.
    Before this Updates, my recordings were ever perfekt.
    In the last record-session - everything sounds good while recording, but the playback was in a absolutly wrong timing. First I thought it is just a 2 sec. delay in the records, but NO it becomes slower and slower and in the end of this audiofile it was totaly crazy.
    I tried to record again, but nothing worked. It was on Tiger 10.4.6, Logic Pro 7.1.0 and Quicktime 7.1 with RME HDSP 9652. Now I'll try the new Updates Logic 7.1.1 with Quicktime 7.1.1. Maybe this solves my problems. If not, then I only can try to go back in the versions of Tiger, Logic Pro and Quicktime.
    I am wondering why nobody else got this problems, because I have this problems on two PMacs G4 + G5. Both very good PMacs. They worked very well before this Updates.

  • Is there something wrong with Quicktime and TIFFs?

    I've been trying to see with Firefox the TIFF images of patents at the USPTO site and I can't. The browser advises me to install the missing plug-in although Quicktime is already installed. I wonder if it's a Quicktime problem or a Firefox one. I have a reason to believe there's something wrong with Quicktime though. Read on to see why.
    On my system the *TIFF Image Test* (from mozdev.org) fails although I have the latest Quicktime plug-in. This happens regardless of the browser I use, all latest editions: Firefox 3.6, Internet Explorer 8 (both 32-bit and 64-bit versions) and Chrome 4. All seem to fail to recognize the presence of the installed Quicktime although my Windows OS is set to open TIF/TIFF files with Quicktime/PictureViewer.
    Running about:plugins on my Firefox does show the Quicktime plug-in for a variety of files but NOT for opening embedded TIF/TIFFs. Also, when I open *Tools -> Options -> Applications* I see there is no registered handler for TIF/TIFFs. They don't appear on the known Content Types.
    Is there something wrong with the installation of Quicktime? I can see USPTO TIFF images only with Safari which appears to have an integrated TIFF viewer. I haven't tried to install alternatiff or any other alternative TIFF handler.

    DocBAZ,
    I tried to visit the "test site" above. I'm not really sure it's an embedded image on a HTML page because I get a Firefox download window and a suggestion to open it with PictureViewer, which is the expected behavior for downloadable images. The mozdev.org test page on the other hand had an embedded image that needed the plugin, which is what is bugging me.
    If you want a real complex test page with both an embedded TIFF and a downloadable one check AlternaTIFF here: http://www.alternatiff.com/testpage.html
    Indeed the changes I made were in the QuickTime preferences, not PictureViewer which has no settings to change. And yes, Windows 7 has a unique place to deal with file types and MIME settings.
    You will find some interesting suggestions over the problem at SuperUser.
    http://superuser.com/questions/107142/uspto-site-asks-for-quicktime-plug-in-whic h-i-already-have-installed-why

  • Problems with Quicktime and flash player

    Whenever I try to play a flash file the quicktime symbol comes up and has a questionmark in the middle. I have already tried uninstalling Quicktime and reinstalling it and it didn't work... I even got it to work by changing the prefrences but then it stopped working again. this all started when I downloaded the latest version of quicktime. is there a way to stop quicktime from playing flash files at all?

    is there a way to stop quicktime from playing flash files at all?
    QuickTime preferences -> File types -> Miscellaneous. Uncheck the setting for Flash Media.
    (note: the exact location of this setting may be different depending on the version of QT you have; the above is valid for QT7. So you may have to hunt about a bit in the preferences if you have an earlier version of QT).

  • Quicktime and media encoder problem

    I am trying to make a quicktime movie with Premiere CS4. The project is 870 still frames rendered from 3DS MAX. Everything works fine when I export and it sends the movie to Media Encoder's Queue. When I hit "Start Queue". the project starts to encode then quickly finishes with a green check mark next to the project, however no video is made. Please note I have tried other file formats such as AVI and it works fine. This seems to be am issue with QT. I have tried just about every QT codec as well and nothing seems to work. The codec I normally use is animation.
    I have successfully done this many times in the past with no problems. Unfortunately, I recently had to replace my main harddrive which died that stored Windows XP, therefore I had to re-install Adobe Master Collection CS4. After the reinstall media encoder won't make Quicktime movies anymore.  And yes I have QT installed. I had ver 7.6.2. I read somewhere that 7.5.5 works better with premiere CS4 so I found that, uninstalled 7.6.2,  and installed 7.5.5, however, unfornuately it did not fix the problem. Anyone know how to fix this or having the same issues? Please see my specs below. Please let me know if you need more info. Thanks for help in advance.
    Intel Quad processor
    4 GIG Ram
    Nvidia 8800 GTX video card
    OS: Windows XP SP3
    Adobe Premiere CS4
    Media Encoder 4.1.0
    Quicktime 7.5.5 (also tried 7.6.2 - the most recent)

    There was someone having a similar problem on the www.weddingvideodoneright.com forums,and others were having various issues with ME not creating files and so I've copied this from that thread and hope it helps. Also, check out the Adobe link at the bottom-
    Re:  Another miserable issue with Premiere 'Pro' CS4 Any advice?
    « Reply #11 on: June 04, 2009, 12:46:49 PM  »
    Quote Modify Remove Split  Topic
    Digging further, this is the "official" solution  from adobe  -
    Quote
    Do one or both of the following solutions:
    Solution 1:  Create a shortcut to the Premiere Pro executable file, rename the shortcut to  Premiere, and move the shortcut to C:\Program Files\Common  Files\Adobe\dynamiclink.
    Close all Adobe applications.
    In Windows  Explorer, navigate to C:\Program Files\Adobe\Adobe Premiere Pro CS4. (If you  installed Premiere Pro CS4 in a location other than the default of C:\Program  Files\Adobe, then navigate to your custom installation location.) 
    Right-click on Adobe Premiere Pro.exe (which might appear without the .exe  extension) and choose Create Shortcut.
    Rename the newly created shortcut to  just Premiere.
    Important: The name of the shortcut must be exactly  Premiere with no other characters.
    Open a second Windows Explorer  window, and navigate to C:\Program Files\Common Files\Adobe\dynamiclink. 
    Move the Premiere shortcut that you created into the dynamiclink folder. 
    Solution 2: Remove and reinstall all Premiere Pro CS4 components or all  Adobe Creative Suite 4 components.
    Do one of the following:
    Windows  XP: Choose Start > Control Panel > Add or Remove Programs.
    Windows  Vista: Choose Start > Control Panel > Programs and Features.
    In the  list of installed programs, select Adobe Premiere Pro CS4, Adobe Creative Suite  4 Production Premium, or Adobe Creative Suite 4 Master Collection.
    Click  Change/Remove (Windows XP) or Uninstall (Windows Vista).
    Follow the  on-screen instructions to remove all components of Premiere Pro CS4 (including  Adobe Encore CS4 and Adobe OnLocation CS4) or to remove all components of your  edition of Adobe Creative Suite 4.
    Re-install your Adobe software.
    The url is: http://kb2.adobe.com/cps/407/kb407106.html

  • Black screen with Quicktime and VLC, no codec?

    I'm trying to view a mov file with QT Pro 7.5 or latest VLC and both show no video, only sound. In QT, when I ask for info to see codec, only says
    16-bit Integer (Big Endian), Stereo (L R), 48.000 kHz
    Uncompressed 10-bit 4:2:2, 720 x 486 (640 x 480), Millions
    Any clues?

    There is a near-incomprehensible explanation here:
    http://developer.apple.com/quicktime/icefloe/dispatch025.html
    Further investigation reveals this:
    Common file formats and their endian order are as follows:
    • Adobe Photoshop -- Big Endian
    • BMP (Windows and OS/2 Bitmaps) -- Little Endian
    • DXF (AutoCad) -- Variable
    • GIF -- Little Endian
    • IMG (GEM Raster) -- Big Endian
    • JPEG -- Big Endian
    • FLI (Autodesk Animator) -- Little Endian
    • MacPaint -- Big Endian
    • PCX (PC Paintbrush) -- Little Endian
    • PostScript -- Not Applicable (text!)
    • POV (Persistence of Vision ray-tracer) -- Not Applicable (text!)
    • QTM (Quicktime Movies) -- Little Endian (on a Mac!)
    • Microsoft RIFF (.WAV & .AVI) -- Both
    • Microsoft RTF (Rich Text Format) -- Little Endian
    • SGI (Silicon Graphics) -- Big Endian
    • Sun Raster -- Big Endian
    • TGA (Targa) -- Little Endian
    • TIFF -- Both, Endian identifier encoded into file
    • WPG (WordPerfect Graphics Metafile) -- Big Endian (on a PC!)
    • XWD (X Window Dump) -- Both, Endian identifier encoded into file
    I also discover that PowerPC processors are big-endian (most significant byte first); Intel x86 processors are little-endian (least significant byte first). AIFF is like PowerPC - it's big-endian. WAV is like x86 - it's little-endian.
    Which leads me to suggest that Flip4Mac might be able to convert those files, although as you have a PPC processor you should be able to play them!
    http://www.macupdate.com/info.php/id/17787
    Ty installing that and report back!

  • AppleScript with QuickTime

    I am trying write an AppleScript Folder Action to convert MP3s to AIFF.
    Here is the QT portion of the script:
    tell application "QuickTime Player"
    activate
    set openedFile to open (f as alias)
    export front document to aiff_path & f & ".aif" as AIFF
    quit application "QuickTime Player"
    end tell
    The folder action (which I didn't include above) works ok, but nothing happens.
    SyB

    tell application "QuickTime Player"
    activate -- Launch and / or bring forth 'QuickTime'.
    set tList to {} -- List to contain obtained date.
    tell movie 1 to copy name to end of tList -- Place name of current movie into tList.
    repeat
    set {tFlag, tResult} to {0, display dialog "(Start Time) ... Subject letter: " default answer "A" buttons {"OK"} default button 1}
    -- Place Subject Name and scaled Start Time into tList.
    tell movie 1 to set {tSubject, movie_Name, start_time, time_scale} to {text returned of tResult, name, current time, time scale}
    copy {tSubject, start_time / time_scale} to {end of tList, end of tList}
    if ((button returned of (display dialog "End time of Subject: " & tSubject buttons {"Completed", "Continue..."} default button 2)) is "Completed") then set tFlag to 1
    tell movie 1 to set end_time to current time
    copy (end_time / time_scale) to end of tList -- Place scaled End Time into tList.
    if (tFlag = 1) then exit repeat -- Exit infinite loop when 'Completed' button is selected.
    end repeat
    tell application "Microsoft Excel"
    activate -- Launch and / or bring forth 'Excel'.
    if (not (document 1 exists)) then make new document -- Create a new document, if needed.
    -- Add header information to Worksheet.
    set (value of cell 1 of row 1) to "Movie Title: "
    set Column_Titles to {"Subject", "Start Time", "End Time", "Difference"}
    repeat with i from 1 to (count Column_Titles)
    set (value of cell i of row 3) to (item i of Column_Titles)
    end repeat
    -- Add contents of tList to the worksheet.
    set tInc to 1
    repeat with i from 1 to (((count tList) - 1) / 3)
    repeat with j from 1 to 3
    set tInc to (tInc + 1)
    set (value of cell j of row (i + 4)) to (item tInc of tList)
    end repeat
    set (value of cell (j + 1) of row (i + 4)) to ((item tInc of tList) - (item (tInc - 1) of tList))
    end repeat
    end tell
    end tell
      Mac OS X (10.4.4)  

  • Help with quicktime and mpeg2 add on

    Hi guys, im a newbie to this forum, so im hoping u can all lend a hand. I have some video files in mpeg2 format which when i play in quicktime (after the addition of the mpeg2 add on) the first 3 seconds seems to play not quite at 25 fps, it seems to skip a few frames (but the audio is fine) and once it gets to the three second mark it plays brilliantly. Can anyone please help?

    Try this
    Go to Control Panel
    Double Click on quick time
    -Go to Advanced - Then Select Safe Mode GDI only. And apply that and try videos again
    If I remember correctly it had something to do with Outdated Direct X Drivers but not 100% sure

  • Issue Using C# to Get RTF Text From Clipboard to Outlook With Formatting and Without Encoding Tags

    I have created a little application that gathers data from various text boxes and then combines the data into a formatted richTextBox.  A person using the tool asked if I could then add a button that would allow that text (with formatting) to be copied
    and pasted into an Outlook Email.  When I do this, I can get the text into an email, but I either strip out the formatting or I get all the RTF encoding tags to come along with it. 
    I have tested to see that the copy of the data from the richTextBox has indeed made it to the clipboard correctly.  This has been verified by the fact that I can manually press "ctrl" + "v" and I can past the text with proper
    formatting into the mail body.
    I do know that I can brute force things by trying to manually wrap HTML tags around my textBox fields and then pipe that into an HTMLBody property.  In fact I can get a lot of things to work with the HTMLBody property, but while it is nice that will
    work, I feel that I must be missing something really simple while trying to work with RTF.
    I currently am pasting (using the Clipboard.GetText(TestDataFormat.RTF)) the RTF data into the Body property of the mail item.  This is bringing in all the RTF encoding tags.  I have tried to paste this directly into the RTFBody of the mail item,
    yet an execption gets thrown when executed.  Oddly, though, if I change RTFBody to HTMLBody, I do not get the exception, but I still have the RTF encoding tags in it.  Though if I feed the HTMLBody property straight, HTML text with the encoding tags,
    it will render properly.
    This has me confused then why if I feed HTMLBody HTML text with the encoding tags that it will render, but if I try and do the same for RTFBody and feed it RTF text with encoding tags it still throws an exception.  Any help in the matter would be greatly
    appreciated.  I have included the code snippet below for sending the richTextBox information to the clipboard and then attempting to retrieve it and paste it into an Outlook email.
    Thanks for the help.
    Some pertinent information:
    Blend for Visual Studio 2015 CTP6 (I switched from VS2012 as intellisense was added to Blend in 2015)
    Because of this Systems.Windows.Forms is not in use
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    myNewMailIoI.To = " "; //An attempt to ensure that the focus moves down to the body field
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Pasting data into body of email
    myNewMailIoI.Body = Clipboard.GetText(TextDataFormat.Rtf); //This will past the text with encoding tags into email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This stinks!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>different font and color</p>";
    myNewMailIoI.Display(); //Allow for window to be minimized
    myNewMailIoI.Display(true);

    Ok, I found the solution.  Part of the issue was caused by the confusion of the HTML body property acting as a text encoder for HTML text when a string is passed in vs the RTF Body property needing to have a plain text file taken and encoded into a
    byte stream.  Even though the RTF text is in readable text (albeit with the RTF Encoding Tags) it needs to be reencoded into a series of bytes. 
    This is where I failed to understand the previous answers.  I knew that RTF Body needed to have a array of bytes, and the previous answers seemed to indicate that the data in the clipboard was already in this byte format (this may have just been my
    misunderstanding) and that I needed to somehow take this byte array and do something with it.  My misunderstanding was that all the methods for getting values from the clipboard returned strings and not bytes.
    after some digging last night and with the few hints that were offered before, I came across a post on CodeProject (apparently I cannot post links, so I will try and include this so that you can find the postcodeproject(DOTCOM)/Questions/766917/How-to-convert-richtextbox-output-into-bytearray). 
    This showed that I needed to take the raw, RTF text with its RTF encoding tags from the clipboard and and encode it to a byte array and then pass this into the RTF Body property.  Included below is the final code such that I hope that it helps some other
    person as there seem to be a lot of searches for this on the web, but not a lot of direct answers.
    using System.Text;
    using Outlook = Microsoft.Office.Interop.Outlook;
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    //Add Subject
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    //Set Body Format to RTF
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Converting RAW RTF data from string to bytes. THIS IS THE FIX THAT WAS NEEDED TO MAKE IT WORK
    string myNewText = Clipboard.GetText(TextDataFormat.Rtf);
    byte[] myNewRtfBytes = Encoding.UTF8.GetBytes(myNewText); //This line cost me way too many hours of lost sleep!!!
    //Inserting RTF bytes into RTFBody property
    myNewMailIoI.RTFBody = myNewRtfBytes;
    myNewMailIoI.Display(); //Displays the newlycreated email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This works for the HTMLbody property!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>this renders properly</p>";

  • Possible issue with Quicktime and VLC

    OK,I had updated my Quicktime(7.4)a couple weeks ago and ever since I can't seem to play any avi or mov files with VLC player. Most of the time I get audio but no picture. The error I get after about 5 seconds is "macosx: QT doesn't support any appropriate chroma" Anyone have an idea on how to remedy the problem? I try playing the avi and mov files in Quicktime but they're very choppy.

    Suggest that you also post over in the VLC Forums.

  • Problems with Forms and character encoding

    I'm having problems trying to read unicode data inputted into a Form on my JSP page.
    I've used the meta tag <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> to set the charset of the page to UTF-8. I've inputted some chinese characters inot my form and when I try to read the subsequent request parameter in my servlet using request.getParameter() the string returned is this
    "&#26469;&#28304;" which is the escape sequence required by HTML to display these characters.
    From what I've read on the subject this doesn't seem like the expected value. I've tried other ways of getting the correct string value such as setting the character encoding request.setCharacterEncoding("UTF-8") and then converting the bytes using this encoding value but it doesn't seem to work.
    I could write a method to split up the string using the ; as a token and working out the correct unicode character but this doesn't seem like the right thing to do.
    Any help on how to pass the correct information from the Form in the JSP page to the servlet would be greatly appreciated

    I don't believe that is correct, but if it's returning HTML escapes instead of URL Encoded characters, then it's the browser doing it. This is my test page for playing with Chinese...
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title></title>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body bgcolor="#ffffff" background="" text="#000000" link="#ff0000" vlink="#800000" alink="#ff00ff">
    <%
    request.setCharacterEncoding("UTF-8");
    String str = "\u7528\u6237\u540d";
    String name = request.getParameter("name");
    %>
    req enc: <%= request.getCharacterEncoding() %><br />
    rsp enc: <%= response.getCharacterEncoding() %><br />
    str: <%= str %><br />
    name: <%= name %><br />
    <form method="GET" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="GET Submit" />
    </form>
    <form method="POST" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="POST Submit" />
    </form>
    </body>
    </html>

Maybe you are looking for

  • Ps CS5 crashes when opening a new document.

    I have not downloaded any new fonts or software. I have checked for any recent updates, and I used the clean my Mac application to guarantee I have enough memory to run Ps. I also do not have any other program running while I try and open a new docum

  • O2C PIP with Microsoft SQL Server Based Siebel server

    Hi, We are trying to install AIA 2.2 with PIP for Order to Cash cycle. This integrates Siebel with Oracle for O2C cycle. We have done installation till AIA foundation pack successfully. Now when I looked at PIP installation guide it asks for Siebel d

  • Can I add reverb to just snare and toms with Roadhouse Kit?

    I'm a real novice to Logic (although very experienced in engineering with tape machines and mixing desks). We've knocked together our first song using logic and I drummed a pattern in using a keyboard to trigger MIDI drums which has been recorded int

  • Upgrading from CRYSTAL REPORTS XI TO X1 RELEASE 2

    Post Author: speed_champ CA Forum: Migration to XI R2 Hi there We have crystal reports XI running on our production server. We have now our application converted to Visual Studio 2005 and in order to use crystal reports with Visual Studio 2005 we nee

  • Mac OS X Lion Image from VM

    Hello, I am currently working on an image for Macintosh computers. If I install Mac OS X Lion in VMWare Fusion, do not install VM Tools, and created a new image from that, would I have a problem installing that image on Macintosh Intel Computers? Tha