• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Change styles in Pages 2.0 - Apply to Current Paragraph?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Change styles in Pages 2.0 - Apply to Current Paragraph?


  • Subject: Change styles in Pages 2.0 - Apply to Current Paragraph?
  • From: Wes Brown <email@hidden>
  • Date: Tue, 31 Jan 2006 10:43:26 -0800

Hi,

I want to set up an Applescript that will tell Pages 2.0 to change the style of the current paragraph I'm typing in to a different (named) style.  Based on Scott Lindsay's post, I came up with:


tell application "Pages"
    tell document 1
        set newStyle to a reference to paragraph style "Normal"
        tell body text
            set paragraph style of last paragraph to newStyle
        end tell
    end tell
end tell

This script changes the style on the last paragraph in the document to "Normal."  And using Quicksilver to trigger the applescript with a keystroke, that gets me halfway to where I want to be.  But half the time I'm editing in the middle of a document.  

My question is, how do I change this script so that it will apply to the current paragraph I'm tying in?  The answer might be right in front of my face; I'm new to Applescript.

Thanks,

Wes Brown
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: beginner question
  • Next by Date: Re: beginner question
  • Previous by thread: Re: beginner question
  • Next by thread: Re: Change styles in Pages 2.0 - Apply to Current Paragraph?
  • Index(es):
    • Date
    • Thread