ejpvi Posted August 27, 2009 Posted August 27, 2009 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!
Lee Smith Posted August 27, 2009 Posted August 27, 2009 (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 August 27, 2009 by Guest
ejpvi Posted August 27, 2009 Author Posted August 27, 2009 Thank you very much! Brilliant! Worked like a charm!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now