Re: Does it exist in the library
Re: Does it exist in the library
- Subject: Re: Does it exist in the library
- From: Shane Stanley <email@hidden>
- Date: Wed, 09 Jan 2013 09:39:13 +1100
On 09/01/2013, at 4:13 AM, email@hidden wrote:
I am looking for the syntax for "Break link to Style" in Indesign which can be found in the GUI selecting the Paragraph panel then right top click.
I have the feeling it can not be done in Applescript.
On the net I found the JS command: BreakParaStyle.invoke();
You can use something similar in AS. The problem is that there are several "Break Link to Style" menu commands: one in the Paragraph Styles panel, one in the Character Styles panel, and so on -- there are five in all. So you need some way to specify which one, something like:
tell application id "com.adobe.InDesign" invoke (menu action 1 whose name is "Break Link to Style" and area is "Panel Menus:Paragraph Styles") end tell
However, it's just glorified UI scripting, and therefore a poor choice (in AS and js). It would be much better to use the scripting interface, like this:
tell application id "com.adobe.InDesign" tell document 1 set noStyle to paragraph style "[No Paragraph Style]" tell text frame 1 apply paragraph style paragraph 1 using noStyle without clearing overrides end tell end tell end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden