Copy and paste user formatted text from Filemaker to...

I need to copy user formatted text from Filemaker to any text program that will maintain the formatting. Subsequently it will be going to an rtf. I have limited knowledge of Filemaker and Applescript (and I am not sure that Applescript is the right approach). This is a repetitive process with frequently changing data and users who use italics on a word one day and then decide to bold it the next day. I have created an Applescript that copies and pastes the text into either TextEdit or Microsoft Word but the user formatting is always lost. It is frustrating that I can use Apple-C and Apple-V and the formatting is maintained. But I need to automate this process. Here is a copy of my humble attempt at an Applescript to do the job. it copies the text but not the formatting.
tell application "FileMaker Developer"
open "MacintoshHD:Users:stuart:Desktop:Practice.fp7"
set the clipboard to record 2 of table 1 of database 1 as styled text
end tell
tell application "TextEdit"
activate
set the text of document 1 to (get the clipboard as text) as string
end tell
tell application "Microsoft Word"
activate
set myRange to create range active document start 0 end 0
insert text (get the clipboard) at myRange
end tell

I'm not familiar with 'styled text'- which does not mean much other than it's on a very long list of things I don't know. But I do know you can cut several steps out here:
If your script works so far then you can clean it up:
tell application "FileMaker Developer"
open "MacintoshHD:Users:stuart:Desktop:Practice.fp7"
set mytext to record 2 of table 1 of database 1 as styled text
end tell
tell application "Microsoft Word"
activate
set myRange to create range active document start 0 end 0
insert text (mytext) at myRange
end tell
Also try:
set mytext to contents of record 2 of table 1 of database 1 as styled text
Reese

Similar Messages

  • Most compatable file type to use when copying and pasting specially formatted text into html pages?

    Hello,
      I have a simple web site at http://www.psychicmeatloaf.com which is an online poetry journal site. I use files people send me (mostly .doc or .docx) and cut and paste the text from those files into html pages in an older version of Dreamweaver and some of the text has special formatting (like this page: http://www.psychicmeatloaf.com/Chang-poetry.htm ). The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver. Even using this method, some text will not maintain it's special formatting and for those I just save the page as a .jpg file and use that, because I have no other choice.
      My question is, is there a better way and is there a better file type to work from other than .docx?
    Thanks a milliom,
    George

    neophyte weaver wrote:
    The best way I have found to maintain the special text formatting is to open the .docx files and "save as a web page" in Word and then open the web page from Dreamweaver and then "Preview the page" in Explorer and copy and paste from the preview into an html page in Dreamveaver.
    That's a lot of steps to get to a single end that could be done with a simple copy & paste of the text into code. Like Photoshop and Fireworks, Word writes some very bulky and dirty code. I wouldn't recommend it for direct copy by the method described above.
    I personally copy the text and paste it into code view. It takes a little more work, but I don't get dozens of lines of inline styles added with it and using a preformatted post div (saved and hidden in the code (<!--post block code goes inside-->), I can quickly put title, date, byline and links up with a cut & paste.
    That's just my $0.02 worth
    Also, since nearly EVERYONE will use a different formatting in a Word doc, putting a bunch of differently formatted posts into a page will make it look like one of those ransom notes made of cut out text from different newspapers and magazines.  Better to keep everything in a single format (your format) so it doesn't become an eyesore.
    Message was edited by: Curtis_E_Flush

  • How do I copy and paste only the text from a cell?

    Hi -
    Every time I want to move text to a different cell, copy and paste copies all styles as well.  How do I just copy and paste the text while leaving the style of the receiving cell in tact?
    Thanks.
    Chris

    Christopher.  If the alternating row color is the obstacle, I suggest selecting the table, then setting the background color to white, then check the "Alternating Row Color" check box in the Table Formatter:
    Now sorting will not affect row color

  • How can I copy and paste the art work from album covers?

    How can I copy and paste the art work from album covers?

    I don't think the list style transfers. Copy and paste the text in to Mail, select it and then choose "Insert Numbered List" as a work around.

  • Is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    In iTunes, is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    Thank you. I have heard of Logic Pro 7, but I have never personally used it. I'm still growing in the world of Composition, and I know that it is something I will be studying in one of my Computer Music classes coming up for my degree. I think it is something I will look into getting once I can justify the price of it. I guess for the time being, I will continue to play and grow in my ability to use and take advantage of GB, and then see what I can do about or with Logic Pro when I'm ready. The thought of spending $1000 for a program is hard to bite, because I've already spent a lot to produce my music, not only electronic music, but also chamber music and so on. I had no idea it would be so expensive to dive deep into the world of composition! lol.
    Finale 2007: $500
    Sibelius 4: $500
    Jam Packs: $400
    Midi Keyboard Interface: $100
    PowerBook: $1700
    Printer for printing scores and analysis: $150
    Logic Pro 7: Oy!
    As you can see it adds up very quickly...that doesn't even include my personal instruments and study materials.
    Thank you for your input, as I haven't really worked much with LP, and therefore didn't know which features are available. I will talk with some of my Composition buddies, and professors and see what they have to say as well, and who knows, I may be able to get the express version through one of them.

  • How to copy and paste web design styles from the web

    I am not doing so well with the web style templates provided in the latest versions of IWeb.
    Is there a way to copy and paste the html code from some site who's design I like then paste it into my Iweb and then put in my content to the style that was up?
    I used to be able to do do this about 10 years ago with a Claris Homepage program, don't see how to do it with IWeb.
    It's like I have to do everything from scratch, draw background boxes, don't see frames.
    Thanks everyone..
    Jack E.

    Welcome to the Apple Discussions. No you can't copy the code form a site and use it in an iWeb page. To use frames you would use an HTML snippet and this code:
    <IFRAME SRC = "URL OF PAGE YOU WANT TO FRAME" WIDTH="XXXpx" HEIGHT="XXpx" FRAMEBORDER="0" --if "0" no border, otherwise "1" with border MARGINWIDTH ="0px" MARGINHEIGHT="0px" SCROLLING="no" --"no" no scrolling bar, "yes" show always, "auto" showed when need > Your browser does not support IFRAME </IFRAME>
    You can get more info at this site:iFrame code.
    I've creates a demo site which describes many of the features and tricks I've learned from this forum. This iWeb FAQ site is a wealth of information on using iWeb and all of it's capabilities.
    OT

  • Copying and pasting e-mail addresses from excel

    I have always copied and pasted e-mail addresses from an excel file into the "to" field on the e-mail. This has always worked fine. Now for some reason, if there is a blank row on the excel field between e-mail addresses, when copying over it is now adding commas to the e-mail addresses meaning that the address fails. Something must have changed in my settings but I do not know where. Appreciate any help please

    ''caberryman [[#question-1044192|said]]''
    <blockquote>
    I have always copied and pasted e-mail addresses from an excel file into the "to" field on the e-mail. This has always worked fine. Now for some reason, if there is a blank row on the excel field between e-mail addresses, when copying over it is now adding commas to the e-mail addresses meaning that the address fails. Something must have changed in my settings but I do not know where. Appreciate any help please
    </blockquote>
    Just to add some info, it works just as bad if you copy from your own address-book. If there is a missing line it will show up as an extra comma and the recipient after that comma will fail.

  • Copy and paste ignores track text edit preview settings?

    Hi all,
    Working with FM9 and another editor that requires me to copy and paste from FM9 into the other.
    Enable and use tracking text edits in FM9.
    Preview Final to hide the edits.
    Copy and paste a paragraph that contains edits.
    When I paste into the target text editor, the "deleted" text is also displayed.
    Any way to prevent text hidden with a condition tag (which is how the tracking changes are marked) from being copied?
    -g

    I'm pretty sure the answer is no, not in FM itself. The only way would be to create a finalized FM doc with the changes accepted prior to copy / paste.
    It would be possible with a Framescript, though -- something like this:  the user copies the text,  hits a specified function key, the script pastes the text onto a special reference page, deletes the "deleted" text, recopies the text and then it beeps so that the user can then paste into the target editor.
    More info about Framescript at http://www.framescript.com and on the user group at
        http://groups.yahoo.com/group/framescript-users/

  • How do I copy and paste an address list from an Excel file to an email on my iPad2?

    I am using Dropbox to maintain email and text lists. How do I copy and paste these lists into the email "to" box on my iPad2 and iPhone?

    I do not fully understand your question. However, you can use the GoodReader app to download and excel file from DP and open it is GoodReader. Then copy the address abd paste it in the email.

  • How to copy and  paste the data directly from the excel to the PDF?

    hi,
    I have found the same question on the link:
    How to copy excel sheet to pdf form?
    But I didnt get my answer through that forum.
    My requirement is dat I should copy the data from excel sheet and directly paste it to PDF form.
    When I am trying to copy and paste ..all the data is getting pasted into a single block only.
    Kindly help.
    Thanks & Regards,
    Lina

    So you want the user/person to do the "cut&paste" action (ie. ctrlc ctrlv) and have the data paste itself across rows correctly much like Excel does. I don't think this "intelligence" is built into Adobe table controls as it is in Excel (and Excel is smart enough to even handle it different ways depending on how the user selects cells).
    The only thing I can think of is that you could "capture" the user trying to paste into a cell/row in your table (maybe in the onFocus or onClick events), then grab the data, parse it out (but looking for some character) and then have your code distribute the data across the rows. However, I personally think that would be a lot of overkill and prone to other issues and errors.

  • Can't Copy and Paste into Illustrator CS3 from Firefox 3!

    I read these things all the time, but first time posting, so you KNOW this problem is annoying me.
    I could always copy and paste from Firefox 2 into Illustrator CS2/CS3. However, once I upgraded to Firefox 3 I no longer can! I get the annoying "Quicktime and a decompressor are needed to see this picture." I can't believe more people aren't complaining more about this. Save your time posting about "Illustrator is a vector program, and Photoshop is pixel based," I know I have been able to do it before so that is not the issue. Any light that could be shed on the situation would be great! Thanks in advance.

    I found that FF3 originally renamed .jpegs to the JFIF format when draging and dropping to the desktop, and it was not until March when the code was finalized that that you could drag and drop to your desktop without the conversion. You get around the illustrator CS3 problem a number of ways...drap and drop to the desktop and then to illustrator CS3, Drap and drop to photoshop CS3 and then to Illustrator CS3 or save as to the desk top, or use an older version of Firefox. I am currently tyring to determine if the JFIF renaming issue is what is preventing the direct drag and drop to Illustrator, and if there is a fix for issue. Any help out there or ideas would be helpful.

  • How do I display, copy, and paste a web address from an open Safari window please?

    I'm new to Mac and Safari. 
    I'm used to being able to just cut and paste a web address from a page I'm on into a discussion, but I don't see an address bar to copy from.
    I'm sure it is there somewhere, which toolbar or keyboard shortcut am I missing, please?
    Gordon_M

    Hello:
    While Safari is open, go to the menu bar>view.  Select "customize toolbar."  You may use the default, or customize it to yoru liking.
    Then when you wish to copy an address, you simply click on the favicon and go to edit>copy.
    Barry

  • Copying and pasting Garageband track data from a project file to another?

    I am recording my music using an iBook and Garage band in the room where I havemy musical instruments and MIDI equipment. Then, using a one Gb Kingston memory stick, I move the files to my brand new 24" Intel iMac in another room. When the files are on the iMac hard disk I copy and paste tracks from the recorded files to the final project file for adjustment.
    Initially this works but after saving the final project file and reopening it again many tracks have been lost?
    Questions:
    1. How to avoid this problem in Garageband? Is it a bug?
    2. Is it possible to extract the aif-files from the Garageband file and move them to another file by mouse dragging?
    3. Or is it better to record the music track by track using another program (like Audacity) and mouse drag the tracks then into the Garageband?
    Topias
    Intel iMac 24"   Mac OS X (10.4.8)  

    1. The way you are doing that, you are only copying pointers to the original file into your final project. As soon as you remove one of the single-track files, you'll get an error msg, and the recording is gone. To avoid this, you have to "Save as Archive" the final project each time you inserted a new recording!
    2. Yes, it's possible, but a bit tricky, and you risk damaging you projects:
    - Locate the source project in the Finder.
    - Ctrl-click it and select "Show Package Content".
    - Open the folder called "Media", and you'll see your recordings.
    - Pick the ones you want and drag them into your opened targed project.

  • Cannot copy and paste in Firefox, text or graphics

    recently updated to ver 22, , and started noticing that I can no longer copy and paste from sites I visit since the update. I can copy and paste from Chrome, IE, and other software within my PC. This appears to be only a problem with Firefox. Have used all of your suggestions for troubleshooting and none of these work for me. I am using Windows XP Pro, with an AMD dual processor, 4gB memory and plenty of available disc space. Any suggestions would be appreciated. Do not know if the update had any thing to do with the problem. Thanks

    I am using the latest updates of Windows 7 and Windows 8 on three separate computers, each with the latest update to Firefox and with the latest update to ZoneAlarm. Just as everyone else here, I can no longer copy and paste when browsing the Internet using Firefox. IE 10 does not suffer from this issue. I have deleted ZoneAlarm from both browsers, but the problem continues in Firefox 22.0.
    Am growing more and more frustrated.

  • Copy and Paste audio track MIX from one track to another??

    Hi
    What's the best way to handle this.
    I have a video with one long music track, that I mixed using Adobe Premiere's Audio Mixer.
    The musician made a new version of the track with some very slight modifications in the music.
    Rather than having to remix the entire new track, I would prefer to either:
    1) Copy and paste the attributes of the orginal audio track onto the new music track -- retaining the Mix I did from the original mix.  Is this possible?  I tried it once and it did not seem to work.  (I used the Mixer, not keyframes, to do all of the mix.)
    or
    2)  Is there a setting in Premiere's Audio mixer to "gang" the new track to the old one -- with the new track cloning the old track's mix.
    Or would it be better to bring the two audio tracks into Soundbooth and do it there?
    Thanks,
    ...Rowby

    Thanks Colin
    I did a complicated mix on one long background music track and was not looking forward to doing that remix because of various minor music changes made by the musician scattered throughout that long track.
    Your Alt (for replace solution) worked perfectly and saved me a ton of time.
    The fact that Copy attributes for Audio doesn't work for copying audio keyframes is another reason do do audio mixes using the Mixer instead of using keyframes to adjust volume.
    ...Rowby
    P.S.   And a big LIKE to Adobe's clever programmers for including features like these.

Maybe you are looking for

  • Error VLD-0917 (unknown error)  while deploying FACT table

    Hi, I keep getting this error while trying to deploy a FACT table: VLD-0917: An unknown error occured while generating <fact table name>. An unknown error occurred while generating <fact table name>. Error details: java.lang.NullPointerException. Do

  • Problems in Vista x64

    Hi I have problem with crashes in Vista x64. I was blaming nvidia but removing my SB Fatalty card solves my problem. What happens: When enabling SLI , sound crashes in games. Even without playing I get BSOD at boot (ramdom) this is ONLY when enabling

  • If i delete iTunes off my computer will i lose all my music?

    I wanted to know this because my iTunes won't open, and I figured if I deleted and re-installed it, that might fix the problem. But I don't want to lose all my songs. Any suggestions?

  • Why can't I download Garageband off the App Store?

    So I got my Macbook Pro a few month's ago and Garageband didn't come pre-installed on it everytime I try to download it, instead of a price button there is accept but it just say's "These apps cannot be accepted on this computer." Now I did get my Ma

  • MacBook Pro won't sleep when closed

    So yesterday I closed the computer at the office and came home with it like normal and this morning the battery was dead which was unusual. I plugged in and started up, no big deal. Then I finished just now and shut the computer and noticed that the