Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Script to alter Line Spacing, on selected paragraphs

Featured Replies

Hi Everyone,

I've a script to change the colour of some selected text, and in that vein I'd like to make one that changes the line spacing so that I can have indented paragraphs that look like bullet point lists, is this possible?

The way to do it long hand is to go Format > Line Spacing > Other, and in my case it would be Left 0.8 and First -0.3 (as attached screen grab), but I can't figure out or find any answers on the web if it's possible to do this via a script, for the selected paragraphs / text?

My FM version is 19.6.3

Many thanks for any ideas :)

Screenshot 2025-01-06 at 09.30.03.jpg

  • Author

Thanks for getting back to me Fitch, and I guess I'll just keep going to the menu to do it!

All the best :)

I have a vague recollection of a method that kept a formatted character in a global text field and somehow inserted this character in front of a text in order to apply the character's formats to that text. I am afraid I don't know the details.

 

  • Author

Thanks Comment, I'd found this:
https://community.claris.com/en/s/question/0D53w000054L1ihCAC/setting-line-spacing-with-a-script-possible
Which was similar, though it's about being able to format whole fields and I'm trying to just use particular sections within a field's text.

and you might have been thinking of this:
https://community.claris.com/en/s/question/0D53w000069UD1tCAG/soft-return-in-calculated-field-text
which is about using a calculation field, which doesn't work for me (though I don't really understand it!)

Thanks though, and all the best,

I don't think those links are relevant to what I had in mind. Alas, I don't remember anything beyond what I already told you.

I'll try and do a search later if I have the time.

 

  • Author

wow Comment, you have an incredible archival knowledge of FM! 🙌
I've had a look at it, and it mainly seems out of my understanding, but I'll come back to it over the weekend and see if I can get things going!
All the best :)

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.