• 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
Re: Does it exist in the library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Does it exist in the library (From: email@hidden)

  • Prev by Date: Calling VBA Functions Embedded In AppleScript
  • Next by Date: Re: Calling VBA Functions Embedded In AppleScript
  • Previous by thread: Does it exist in the library
  • Next by thread: Calling VBA Functions Embedded In AppleScript
  • Index(es):
    • Date
    • Thread