Setting default paragraph style (InDesign CS4, AppleScript)

I'm trying to set the default paragraph style to [Basic Paragraph], but this produces an error.
Setting other styles does work, what's wrong with "[Basic Paragraph]"?
tell application "Adobe InDesign CS4"
tell active document
tell text defaults
set applied paragraph style to "[Basic Paragraph]"
end tell
end tell
end tell
Thanks,
Peter

Alternatively you could use:
                              set applied character style of text defaults to character style 1
                              set applied paragraph style of text defaults to paragraph style 1
Cheers
Tobias

Similar Messages

  • AppleScript Pages: How to set "following paragraph style"?

    How do you set "following paragraph style" for paragraphs or paragraph styles using AppleScript?
    I've tried several approaches, and all cause a run-time gag with the netorious error -10000
    More generically, what is the syntax for changing a property of a paragraph style that was user created?
    TIA!

    JonRKibler wrote:
    How do you set "following paragraph style" for paragraphs
    Here's an example that changes the following paragraph style of the first four paragraphs :
    tell application "Pages" to tell front document
          set following paragraph style of paragraphs 1 thru 4 to paragraph style "Heading 1"
    end tell
    JonRKibler wrote:
    How do you set "following paragraph style" for paragraph styles using AppleScript?
    Here's an example that changes the following paragraph style  of the paragraph style "Heading 1" :
    tell application "Pages" to tell front document
          set following paragraph style of paragraph style "Heading 1" to paragraph style "Heading 2"
    end tell
    JonRKibler wrote:
    More generically, what is the syntax for changing a property of a paragraph style that was user created?
    If you know the name of the style, here's an example that changes the value of the space before :
    tell application "Pages" to tell front document
          set space before of paragraph style "xyz" to 14
    end tell

  • Change default paragraph style!!

    How do I change the default paragraph style? I can't stand double spaces but that's what I am stuck with
    I want freeform, not body
    Application is Pages 2.0.2
    Message was edited by: Spprrw

    Welcome to the Apple forums
    By default, the Pages developers chose to use 12 point after paragraph spacing which will make it appear as a double space between paragraphs. You need to create your own default template. Set up your document with the line spacing, margins, headers, etc. as you'd like. Redefine all of the paragraph & character styles to have your desired font.
    While you're at it, you might want to set default styles for all objects, text boxes, tables, paragraph styles, etc. Start with a blank document & insert an object. Change the color, wrap, etc. to your choosing & then go to Format > Advanced > Define Default Shape Style then delete the object. Repeat with an image/photo, a text box & a table.
    Now, save this as a template then, in Pages > Preferences, select this template as the default for new documents. All of your new documents will have these settings for inserted objects, images & tables. Unfortunately, the settings won't apply to any other templates or "foreign" documents you open with Pages.

  • How do I change the default paragraph style from Body Text?

    The default paragraph style in my email setup is Body Text. This does not wrap properly for some recipients, but Paragraph does. How do I change the default so that Paragraph is automatically used when I start a new email?

    There are two types of defaults: defaults for all new documents and defaults for the current document. To change the default for any open document make sure no text frame is active and change the formatting as desired in either the Control panel or the Character and Paragraph panels. To change default formatting for new document (those not yet created) do this while no file is open. You can’t change the defaults for several documents at once without a script.

  • Problem applying Paragraph styles in CS4 InDesign

    I boughtCS4 InDesign for Windows perhaps six months ago, and it worked fine with Windows XP. I have recently installed Windows 7 and find that the paragraph styles won't always work. Of ten when I try to use the shortcut for paragraph style the paragraph in question turns pink with small squares in it. If I undo the application of paragraph styles it goes back to text. I am using Times New Roman as the major font. However, I have tried other fonts and they won't work in paragraph style either.
    I tried changing several pages of the manuscript to Times New Roman Special G1, but it won't do the commas, quotes, etc. (special characters).
    Has anyone else had this problem? What can I do to fix this mess?
    Thanks for any help.
    Earl Davis

    Well, here's the situation now. But before describing it, let me thank Peter
    Spier and Bob Levine who have endeavored to help me. Now, here's where we
    are:
    I copied a document over from Pagemaker into InDesign using Times New Roman
    font. (I did the same for two other book manuscripts this past summer,
    shortly after purchasing InDesign and had no problem). Suddenly a couple
    weeks ago I found that the shortcut I set for the paragraph styles did not
    format the paragraphs, etc., but rather turned the paragraph in which I
    placed the cursor into a series of pink squares highlighted in pink. I have
    tried the suggestions you fellows have given, such as copying the fonts
    presently in the Windows Font Directory into the Adobe/InDesign/Fonts
    directory, and then right-clicking on them and installing them. By the way,
    the InDesign font directory only had the Times New Roman and Times New Roman
    Special 1 and Renaissance font in it, until I copied all my fonts there and
    installed them. Another oddity, I make the first letter of the first
    paragraph of each chapter a decorative Renaissance font, spanning two lines.
    I now find that when I do that, I may get a black square, which may turn
    into the correct font after I adjust the size to two lines.
       But on the general problem, I have tried changing the font in the
    paragraph styles to Amerigo BT, and I sometimes get the shortcut to work,
    and sometimes it still turns it into Times New Roman Special or black
    squares. Also, I have opened a new file and put another copy of the text in
    it, setting up the paragraph styles, etc. and still have the same problem.
       So I'm at a loss what to do.  I do think it's possible I am doing
    something wrong with fonts or setting up the paragraph styles, but I don't
    see any errors there. All my computer fonts show up in the fonts panel of
    the document.  Any more ideas?

  • Having trouble with paragraph styles in CS4?

    Let me start by saying that I am recently switched from Quark, so I am very much a newbie at InDesign. I have been watching as many videos as possible, but can't seem to find the answers in them to specific questions like this.
    I have been taking old brochures that were created in ID3, and pasting type and photos into a new format that was created in ID4. The new format has paragraph styles created already, with updated fonts and other formatting as well.
    When I flow in all the new type, and click on the style sheet, it does change the type to the correct font and size, but there are formats within the paragraph that are not being updated. For instance: the whole paragraph (according to the style applied) should be Gotham Book, but even after applying the style to it, part of it stays Gotham Bold. It was bold in the earlier version of the document, but needs to be unbolded in this one.
    Why, when I apply the style, does it not affect the whole paragraph?

    The latter: InDesign CS3 files are being changed to a new design in InDesign CS4. I did not create either of these files, but am just making the changes from old style to new style, on about 15 different brochures.
    I guess I need to find a quick way to undo any character styles that were applied previously throughout the whole brochure. I want to be able to flow in the old copy, select all of the body copy for instance, and apply the new paragraph styles, without worrying that there is some other formatting in there that I don't even know about. I thought that applying the new paragraph styles would undo ANY of the previous formatting, but that turns out not to be the case.
    I think the poster who suggested doing a find/change might be onto something, but my brain hurts right now, so I am quitting for the day and having a lovely glass of chardonnay... I'll start again fresh in the morning.

  • INdesign Cs4 applescript/java script

    hello scripter..
    any body help find all the "enter" in indesign spread and delete it

    just realized I was grouping same item. New code below... but still does not work ... error "cant make class group."
    tell application "Adobe InDesign CS4"
         tell active document
         set mySelection to item 1 of selection
         set mySelection2 to duplicate mySelection
              tell mySelection2
              bring to front
              end tell
         tell active document
         make group with properties {group items:{mySelection2, mySelection}}
         end tell
         end tell
    end tell

  • Paragraph styles indesign

    assigned font in paragraph style does not assign to test when style is applied

    just checked and there was a character style. Not sure how I did that one. Thank you very much.

  • Set default printer in Photoshop CS4

    I'm a long-time Photoshop user (since Photoshop 3), upgraded to CS4 many months ago, and just updated my printer.  It is one of these all-in-one jobs that prints, copies, and faxes.  It has two printer device drivers: one for normal printing and one for the fax function.  The problem is (I think) that it seems to default in Photoshop to the fax function.  Therefore, when I try to print out a 4x6 photo @ 200ppi, it still defaults to 8 1/2 x 11 format (that you would get with a fax machine).
    In CS4, from the main menu, File > Print.  In the pop-up it says 8.5 ins x 11in.  I checked [X] Scale to fit Media, and now it says print resolution 109ppi (yikes ... I wanted 200ppi).  "Bounding Box" was checked as a default, so I left it checked (what is that, anyway)?  The 8.5 x 11 does not go away.  Clicked [Print].
    A Print menu pops up.  It says, for some strange reason, HP Officejet Pro 8500 A909g Series fax ... yikes ... in last screen it didn't say fax, so I selected the 8500 option without fax (presume that is the printer). Clecked Preferences, and got "Printing Preferences" popup.  My default printing shortcut was selected (which is for mornal B&W draft-quality text) -- so I checked Photo Printing-Borderles.  Paper size defaluted to Borderless 4x6in, HP Advanced Photo Papers, Best Quality, grayscale off, and changed orientation from landscape to Portrait.  Under "Features" Basic Options were HP Advanced Photo Papers, Best Quality, Portrait (instead of Landscape) ... paper size was set to Borderless 4x6in.  Print in Color.  Clicked OK. That closed the Popup and returned me to the Print panel.  Clicked "Print"
    Got a 1.25" wide by 2" high print ... NOT a 4x6.
    As I dig down into the menus, it appears to be initially defaulting to the "FAX" drivers for CS4, not the printer drivers.  That's probably why it keeps coming up 8 1/2 x 11 at 109ppi.
    What did I do wrong?
    Thanks !!

    Photoshop CS4 uses an old (introduced in Win16?) printing API that limits the printer name length to 30 or 31 characters. With your printer name, that gets you halfway into "Series" and anything past that will be ignored.
    The simple solution is to rename your printer to something shorter. Go into the control panel, printers and faxes, and right-click on the printer and choose "Rename" and rename the printer. That should resolve the problem.

  • How do I make Indesign CS3 the default rather than Indesign CS4?

    Indesign 6.0.2 is driving me crazy, that spinning ball spins for every character I type.  It takes 5 minutes to write one word.  I want to use CS3 instead, which works great with dynamic spelling, which I have turned off in CS4, but don't want to dump CS4.  How do I make CS3 the default?  When I open CS3 and save, it saves it as CS4 so to open it I can't click on it I have to open CS3 first.  Illustrator in CS4 works great.

    bdquilts wrote:
    Indesign 6.0.2 is driving me crazy, that spinning ball spins for every character I type.  It takes 5 minutes to write one word.  I want to use CS3 instead, which works great with dynamic spelling, which I have turned off in CS4, but don't want to dump CS4.  How do I make CS3 the default?  When I open CS3 and save, it saves it as CS4 so to open it I can't click on it I have to open CS3 first.  Illustrator in CS4 works great.
    The only way to make a mac recognize CS3 as default would be to completely remove CS4.
    In OSX new version trumps older versions. you can however have both apps open drop files you know are cs3 on the CS3 dock Icon or an Alias on your desktop. CS3 does not save as CS4 its just that the OS makes all ID files look like the newest version.

  • How about setting default layer styles to 90 degrees by default?

    Who ever really uses 120 degrees for anything? If I could count the number of times I've had to change my layer styles to 90 or 180 from the junky 120, I'd reach a number which doesn't exist because it's so damn big.
    Fix this, or give users an option to set a default and designers will LOVE YOU.

    There's also the "Make Default" button at the bottom of the Layer Styles dialogue box if you tend to use certain settings often.

  • Setting grouped paragraph style with app.findTextPreferences.properties

    I am trying to set my app.findTextPreferences using the .properties object...  In particular, I need to set the appliedParagraphStyle property.
    So I create an object like this:
    {findWhat:"some text", appliedParagraphStyle:"ParagraphStyleX"}
    but it does not work because "ParagraphStyleX" is in a Group....  I have tried "GroupX:ParagraphStyleX", "ParagraphStyleX(GroupX)" and everything else I can think of....  but have not been able to get it to work.
    Does anyone know the proper form to use?
    Thank you,

    try
    appliedParagraphStyle:myDoc.paragraphStyleGroups.itemByName("theGroupName").paragraphs.ite mByName("paraName")
    where myDoc is a ref to active doc.

  • Paragraph style issue when opening imdl (CS5) file in CS4

    Sending a CS5 file to a printer using CS4.  When they open the imdl file in CS4, it changes the paragraph style in the pull quotes. The initial character, whether a letter or a quote, appears tiny.  It looks like a paragraph style issue.  The 'quote' paragraph style in CS4 has a drop cap set on it. 
    Has anyone else had this problem or have a suggested fix? Certainly, we can check our files in CS4 before sending each time, but what a pain!

    IDML is meant as an interchange format, and is far from "the same file but in another version".
    If your printer wants a CS4 file, send them a CS4 file. Better yet, ask them why you have to send them native files anyway and what's their problem with a PDF?

  • How do you change the default font in indesign cs3 on a mac?

    Hi, I have tried closing all indesign docs and then changing the font in the font menu to helvetica (from times), then opening a new document and it still gives me [Times (TT)] when i draw a new text box and write something in it.
    I have tried quitting indesign and reopening it and its still the old default font of [Times (TT)] - which is also not an available font on my machine.
    I have also changed my basic paragraph style to helvetica from times, and it still doesnt change the default font when i open a new document.
    When i open a new document in indesign it comes up with helvetica in the character pallet as the font, its just when i go to draw a text box and write something in it that it writes it in Times.

    Is it possible you have more than one text frame object style, or that you have some default paragraph style set other than [Basic Paragraph]? If you are only editing Basic Paragraph and your default text frame is set to another syle, or you have another paragraph style selected when you begin typing, you might see this behavior.
    If not, try resetting your preferences. Replacing InDesign Preferences

  • [AS] How to change a paragraph style within any folder in Find Grep?

    I want to change both text and paragraph style
    I do that job very easily until I put paragraph styles in a folder
    How to express the paragraph style "passage" within the folder "1st" in AppleScript?
    In line 18 below, "1st:passage" may be wrong... so I've tried and search for an hour, but I can't get the answer..
    sorry for bad english
    my main()
    on main()
      mySnippet_test()
      myTeardown()
    end main
    on mySnippet_test()
              tell application "Adobe InDesign CS5.5"
                        set myDocument to document 1
                        set find grep preferences to nothing
                        set change grep preferences to nothing
                        set include footnotes of find change grep options to false
                        set include hidden layers of find change grep options to false
                        set include locked layers for find of find change grep options to false
                        set include locked stories for find of find change grep options to false
                        set include master pages of find change grep options to false
                        set find what of find grep preferences to "\\n"
                        set change to of change grep preferences to "\\r"
                        set applied paragraph style of change grep preferences to "1st:passage"
                        tell myDocument
      change grep
                        end tell
      --Clear the find/change preferences after the search.
                        set find grep preferences to nothing
                        set change grep preferences to nothing
              end tell
    end mySnippet_test
    on myTeardown()
    end myTeardown

    Replace the red line with… Replacing name strings to yours…
    set myStyle to paragraph style "Style A" of paragraph style group "Style Group 1" of myDocument
    set applied paragraph style of change grep preferences to myStyle

Maybe you are looking for

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine. Though, while navigating between pages, using browser back button , it is not redirecting the url properly Should Redirect it to : http://<hostname>:<po

  • Is there any way to bypass MacBook Pro passwords?

    Hi everyone! I have the newest model MacBook pro and me and my moms side of the family are currently fighting and my stepdad decided to take my MacBook pro from me (which I worked all summer for to buy) and threatened me that if I don't give them the

  • Move to another country

         Hi       8 months ago, I bought an IPad3 at Vancouver Canada. So, I made an Apple ID at that time at the Apple store.       However, I'm in South Korea now, and I bought an Iphone5 in Korea. Now, I am using Icloud between Ipad and Iphone with sa

  • Mountain Lion Finder has no boolean operators?  Where?  When?

    Mountain Lion Finder has no boolean operators?  If so, where?  If not, when?  THANKS

  • Name not shown

    Once i Plug in my ipod my name is not shown where it is somewhere near genius on itunes and then their is something else that pops out that supposed to say "my name device" etc.... but it says someone else's.