Symont Posted November 25, 2005 Posted November 25, 2005 Ok, i have script with a copy/paste step... When i paste, i'd like to paste "with style". The field in wich i'm copying it is in 12 size font and i want the paste text to be in 10 size font. I know that scriptmaker lets me paste "without style", but how can i paste "with style"? Help from FMP says that "Paste without style tells FileMaker Pro to ignore all text style and formatting associated with the Clipboard contents." So, how do i change style and formatting associated with the clipboard? Thanks p.s. i'm using fmp7 btw
Lee Smith Posted November 25, 2005 Posted November 25, 2005 It's a check box option with the script Step highlighted. Manually, on a Mac, you hold down the Opt Key, probably Alt on the Windows. HTH Lee
Symont Posted November 25, 2005 Author Posted November 25, 2005 (edited) The check box option is "paste without style" and that's what i don't want! I want to paste "with style" and there is no option for that.... Edited November 25, 2005 by Guest
Lee Smith Posted November 25, 2005 Posted November 25, 2005 Paste without style tells FileMaker Pro to ignore all text style and formatting associated with the Clipboard contents.
Symont Posted November 25, 2005 Author Posted November 25, 2005 The text that i want to copy has capital letters and is in size 10. When I copy, the caps are still there, but it's now in size 12 (probably because the field i'm pasting in is in 12). What i want is for the pasted text to stay in 10..... How can I do that?
Lee Smith Posted November 25, 2005 Posted November 25, 2005 Copy Paste should be the same as the original. Deselecting of the Button should give you the size, style, etc of what you are copying. Lee
Symont Posted November 25, 2005 Author Posted November 25, 2005 Then how come it doesn't work? The caps are ok, but not the size. There is text already in the field i'm pasting in.... can that make a difference?
Lee Smith Posted November 25, 2005 Posted November 25, 2005 Post a sample of your file, and a Link of what you are coping and I'll test it for you
Symont Posted November 25, 2005 Author Posted November 25, 2005 This is not my file, but it shows what i'd like to do. Thanks sample.zip
comment Posted November 25, 2005 Posted November 25, 2005 The text that you are copying is not size 10. Nor is the text pasted as size 12. You are simply moving UNSTYLED text from one field to another. You have the source field formatted to DISPLAY text in size 10, and the target field is formatted to DISPLAY text as size 12. These sizes are not attributes of the text itself. If you want the size of the text to be part of the text (i.e you want it to be styled text), you will have to expressly add styling to the text. Use the Set Field[] step (always preferable to copy/paste) like this: Set Field [ targetField ; targetField & "¶¶" & TextSize ( sourceField ; 10 )]
Symont Posted November 25, 2005 Author Posted November 25, 2005 Duh! Ok, i think i'll be able to do what i want with what you told me.... Thanks a lot, it really helps!!! Symont
Recommended Posts
This topic is 7003 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now