Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5567 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

I have 2 questions.

I am writing a script that can change font, style, size...etc... so that someone can do that without having to use the quickformatting.. It will be a little bit more elaborate later, I am just getting the basics down.

in the script, I "Inserted Calculated Result".. here is the calculation

TextFont (TextSize ( TextStyleAdd ( ; "Plain Text"); 14); "Arial" )

Question 1:

where it says:

Right now I only know how to put a specific field there... what function could I put there, that would capture the field name I currently have selected?

Question 2:

I have seen the basic shortcut that your first 10 scripts can have... is there a way to specify a Shortcut key that isn't being used, like "F2"

Thanks!

Posted (edited)

try;

Set Field [ TextFont ( TextSize ( TextStyleAdd ( [color:blue]Get ( ActiveFieldContents ) ; "Plain Text"); 16); "Arial" ) ]

Note that you don't name a field in the first part, and you use the Get (ActiveFieldContents)

You would need a utility such as QuickKeys in order to have a key combination for the next script beyond 10.

HTH

Lee

Edited by Guest

This topic is 5567 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.