Deborah
If you're using Mac OS, holding the Option button when pasting,
pastes without style (on Windows I believe there is a Paste
special... menu item).
If you're using Advanced you can define custom menus, in which case
you could...
EITHER change the action (under Override behavior) of the Paste menu
item to execute the script step "Paste", where you have various
options including "Without style". Note, however, that if you leave
the Paste COMMAND (as opposed to action) assigned to the item (at the
top of the Menu item properties panel), this would make it impossible
to ever Paste with style; on the other hand if you assign no command
to the item then pasting via the toolbar or keyboard shortcut will
still operate as before (ie with style) - ONLY pasting via the menu
will be changed.
OR add a new "Paste without style" item to the Edit menu. Again set
the action to execute the script step as above but assign no command
to the item so that normal pasting can be done by any of the normal
methods
If you want Paste Without Style only to apply to specific fields and/
or specific layouts you could change the Paste action to execute a
script which checks the active field name and/or layout and Pastes
with or without style as appropriate. (Once you have a script
assigned to a menu item the possibilities are endless... for example
you could have a dialog ask the user whether to paste with or without
style)
BTW, on functions: see http://en.wikipedia.org/wiki/Function_
(computer_science)
Personally I think of a function as a calculation of some sort which
simply returns a result, this probably comes from a mathematical
background. In programming, the code to do the calc may do all sorts
of things but (in my view) it affects nothing outside itself, the
result is simply passed back to wherever the function was called
from. This seems to me to be pretty much in accord with FMP's use of
the word. Therefore I would say that Menu actions are not functions,
but actions (others may disagree on this)
cheers
Tom
On 20 Feb 2007, at 17:53, Deborah Tinsley wrote:
I read that you could create a custom menu action (or are they
considered
functions?) to paste something with the "wrong" style into a field
in the
"correct" style.
Say you copied something from a web page that was in 14 pt.
Helvetica Red,
bold, you could design a custom menu function that would revert it
to the
field default - i.e. 10 pt, Verdana, Black, plain when pasting.
I know this can be done with a script for a specific field using
the Set
Field and the formatting commands, I've done that, but I'm
interested in a
command that would change the style in any field of my choosing on the
layout.
Any thoughts?
Deb
Deborah Tinsley
Assoc. Librarian of Visual Resources
Kansas City Art Institute
[EMAIL PROTECTED]
816 802 3395