Skip navigation
Studio1540
Currently Being Moderated

Apply Stylesheets with AppleScript

Jun 1, 2012 12:01 PM

I've been trying to apply paragraph style sheets using AppleScript, but nothing I try works the way I expect it.

 

Here's what I'm trying:

apply paragraph style using paragraph style "Stylesheet Name" of paragraph x of parent story of myFrame with clearing overrides

 

but no formatting is applied to the paragraph. As far as I can tell, I'm following the specifications in the dictionary, but am not getting the results I expect.

 

Any ideas?

 
Replies
  • Currently Being Moderated
    Jun 1, 2012 12:29 PM   in reply to Studio1540

    I know this much -> . <- about AppleScript, but I *do* know it's based on regular English.

     

    Are you sure the syntax in "paragraph style "Stylesheet Name" OF paragraph x" describes what you want to do?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 12:33 PM   in reply to [Jongware]

    Uh, wait. Perhaps you should explain what you want to do first.

     

    Is it, perchance, apply "the applied paragraph style of paragraph x to paragraph y"?

     

    (My comment above was because I thought you meant "TO".)

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2012 5:55 AM   in reply to Studio1540

    G'day

     

    Try :

    set applied paragraph style of paragraph x of parent story of myFrame to paragraph style "Stylesheet Name"

     

    m.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points