Change styles in Pages 2.0 - Apply to Current Paragraph?
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