![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to creat a script that will automate font and size formatting of all the contents in a field. I copy and paste info from websites and I need to reformat all to keep some consistency in the appearance of my data. I am thinking of a button. Paste grab into a field, press the button and all is 10 pt Verdana, black. |
#3
| |||
| |||
|
|
On 2010-08-03 13:59:46 -0700, Buckbuck <buck.matthew74 (AT) yahoo (DOT) com> said: Is it possible to creat a script that will automate font and size formatting of all the contents in a field. I copy and paste info from websites and I need to reformat all to keep some consistency in the appearance of my data. I am thinking of a button. Paste grab into a field, press the button and all is 10 pt Verdana, black. Yes, use SetField and the TextStyleRemove () functions. It will remove all styles and the text will be the default of the field. The Help has all the syntax you need, and listings of the available functions and script steps. |
)
#4
| |||
| |||
|
|
"Lynn Allen" <lynn (AT) NOT-semiotics (DOT) com> wrote in message news:4c58b5f7 (AT) news (DOT) bnb-lp.com... On 2010-08-03 13:59:46 -0700, Buckbuck <buck.matthew74 (AT) yahoo (DOT) com> said: Is it possible to creat a script that will automate font and size formatting of all the contents in a field. I copy and paste info from websites and I need to reformat all to keep some consistency in the appearance of my data. I am thinking of a button. Paste grab into a field, press the button and all is 10 pt Verdana, black. Yes, use SetField and the TextStyleRemove () functions. It will remove all styles and the text will be the default of the field. The Help has all the syntax you need, and listings of the available functions and script steps. I've never tried it, but I seem to vaguely recall reading that you can use one of the modifier keys when doing a paste (e.g. Option paste or Ctrl paste) that would mean only the plain text is pasted rather than the formatted text. Once you get used to it it would negate the need for a separate Script of button click. |
)
#5
| |||
| |||
|
|
"Your Name" <your.n... (AT) isp (DOT) com> wrote in message news:i3b175$6k5$1 (AT) lust (DOT) ihug.co.nz... "Lynn Allen" <l... (AT) NOT-semiotics (DOT) com> wrote in message news:4c58b5f7 (AT) news (DOT) bnb-lp.com... On 2010-08-03 13:59:46 -0700, Buckbuck <buck.matthe... (AT) yahoo (DOT) com> said: Is it possible to creat a script that will automate font and size formatting of all the contents in a field. I copy and paste info from websites and I need to reformat all to keep some consistency in the appearance of my data. I am thinking of a button. Paste grab into a field, press the button and all is 10 pt Verdana, black. Yes, use SetField and the TextStyleRemove () functions. It will remove all styles and the text will be the default of the field. The Help has all the syntax you need, and listings of the available functions and script steps. I've never tried it, but I seem to vaguely recall reading that you can use one of the modifier keys when doing a paste (e.g. Option paste or Ctrl paste) that would mean only the plain text is pasted rather than the formatted text. Once you get used to it it would negate the need for a separate Script of button click. Another way is to paste the text into a Global Field and then have the Script / button simply use the Set Field command to copy that across to the current record's normal Text Field. i.e. * Set Field [NormalText; g_GlobalText] Helpfull Harry * ) |
#6
| |||
| |||
|
|
On Aug 3, 11:32 pm, "Your Name" <your.n... (AT) isp (DOT) com> wrote: Another way is to paste the text into a Global Field and then have the Script / button simply use the Set Field command to copy that across to the current record's normal Text Field. i.e. Set Field [NormalText; g_GlobalText] Presumably that would copy into all the records in the table. |
)![]() |
| Thread Tools | |
| Display Modes | |
| |