Scripting Indent Levels in iWorks Pages

I'm getting inconsistent results from
tell application "Pages"
tell front document
set theIndent to indent level of paragraph 1 of body text
end tell
end tell
When it works, it returns an integer 1 greater than the indent level (i.e., 1-10 for indent levels 0-9, respectively. But that I can of course easily compensate for.
But frequently I get what seem to be random results. With the example above executing on a simple document, I can get change the result report by changing the indent level of paragraph, then changing it back.
I'm moderately new to AppleScript. Am I missing something, or is this a bug?
Thanks,
Bryan

Thanks for taking the time to reply.
I suspect I have a corrupt file. I can't reproduce the problem on any other document. I exported the ill-mannered doc to plain text, plugged it into a new document, and so far it's behaving itself.
Unfortunately, it's 1,300 pages long. At least I can script resetting the 8 different paragraph styles it uses according to content.
Which would go much faster but for this quandary...
http://discussions.apple.com/thread.jspa?threadID=473505&tstart=0
Care to comment?
Thanks again,
Bryan

Similar Messages

  • AppleScript of Indent Levels in iWorks Pages

    I'm getting inconsistent results from
    tell application "Pages"
    tell front document
    set theIndent to indent level of paragraph 1 of body text
    end tell
    end tell
    When it works, it returns an integer 1 greater than the indent level (i.e., 1-10 for indent levels 0-9, respectively. But that I can of course easily compensate for.
    But frequently I get what seem to be random results. With the example above executing on a simple document, I can get change the result report by changing the indent level of paragraph, then changing it back.
    I'm moderately new to AppleScript. Am I missing something, or is this a bug?
    Thanks,
    Bryan

    Thanks for taking the time to reply.
    I suspect I have a corrupt file. I can't reproduce the problem on any other document. I exported the ill-mannered doc to plain text, plugged it into a new document, and so far it's behaving itself.
    Unfortunately, it's 1,300 pages long. At least I can script resetting the 8 different paragraph styles it uses according to content.
    Which would go much faster but for this quandary...
    http://discussions.apple.com/thread.jspa?threadID=473505&tstart=0
    Care to comment?
    Thanks again,
    Bryan

  • Scripting Bookmarks & Hyperlinks in iWorks Pages

    Am I correct in assuming the AppleScript dictionary for iWorks Pages has no hooks for scripting either bookmarks or hyperlinks?
    Tell me I'm senile, unobservant, need another latte and have missed something obvious... Please.
    Regards,
    Bryan

    Yes, it looks that way. Similarly, there's no support for page numbers, page count, date/time, placeholder text, address book fields, or comments.

  • Shift-Tab to decrease indent level in list not working.

    I really can't say it any clearer: when I press Shift-Tab to decrease the indent level (for example in an outline-style list), it is not decreasing the indent level.
    This is for Pages 5.1/Mavericks 10.9.1
    This used to work in iWork '09 but I just tried it in Pages '09 and I get a error beep.
    The only thing I can think of is that there is some accessibility or other command that is overriding this but I can't figure out what.
    Any ideas?

    PeterBreis0807 wrote:
    It is working for me. I tried Numbered, Letter and Harvard lists.
    The only place it doesn't work is in tables where it jumps cells.
    What do you actually mean by "Outline style list"?
    Peter
    I'm using a Harvard list. It simply is not working.
    Just called AppleCare and they had not seen this issue but I got bumped up to iWork support (or whatever they are calling it now). They are calling me back tomorrow.
    Command-] works for indenting as well but Command-[ does not work for outdenting.
    My guess is it is a conflict but I thought maybe someone had run into this before and there might be a quick fix.

  • Set default Microsoft office 2008 word indent level

    Do you know how to set the default Microsoft office 2008 word indent level? Every time I make a new list, it indents it at 1/4 inch, but I want it to not be indented, like in Pages. Anyone know how to do it?

    Since Word is not an Apple product, you should be posting your question on Microsoft's own forums for their Mac products, as Apple discussions only provide support for Apple products:
    http://www.officeformac.com/productforums

  • In iWork Pages 5.1, how do I eliminate "text" in the Text Box?

    In iWork Pages 5.1, how do I eliminate the word "text" which appears in the Text Box, when I've used a color filler and no words?

    Select the text and delete.
    If you don't want text in the box, don't use a text box ie in Shapes there are various shapes. Select one without 'T'.

  • Can't open com.apple.iwork.pages..alt-document

    Just updated my iMac to Mavericks along with from iWork '09 to the newest Pages (5.2), Numbers (3.2) and Keynote (6.2). Somehow the vast majority of all my iWork documents got  converted to "com.apple.iwork.pages.alt-document".  Nothing but Preview will open them. Same for the Numbers documents. For instance, when I try to open the Pages Document called "Cleaning Requirements", I get a pop-up box that says... "\U201CCleaning Requirements\U201Dcan\U2019t be opened."  I've right-clicked on the document and tried to open it with the older iWorks Pages app (4.3) with no luck.
    Any help would be greatly appreciated. Thank you...

    Really strange.
    Any other details you can give?
    Did any Pages '09 files translate successfully?
    Do you still have your original files? You will be much better off continuing working in Pages '09 even if you did not have these problems, Pages 5.2 is a PITA.
    Peter

  • I 'm using ipad 2 and am using iwork pages.  how can i set up iwork pages so that a page scroll left to right or right to left instead of just scrolling up?

    I am using ipad 2 and am using iwork paged.  how can i set up iwork pages so that a page will scroll left to right or right to left instead of just up?

    Here you are in a forum dedicated to Pages for OSX.
    Most of us don't use Pages for iOS.
    Better ask in the iWork for iOS forum :
    https://discussions.apple.com/community/app_store/iwork_for_ios
    Yvan KOENIG (VALLAURIS, France) lundi 18 juillet 2011 22:38:20
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • My iWork (pages and keynote) are not communicating with the iCloud. I haven't changed anything and all of the sudden there is no sync happening.  My iCloud account is fine as i can create documents on my iPad and they appear on iCloud.

    my iWork (pages and keynote) are not communicating with the iCloud. I haven't changed anything and all of the sudden there is no sync happening.  My iCloud account is fine as i can create documents on my iPad and they appear on iCloud. However, when i change documents on my mac (documents that are supposed to be in the iCloud), the changes do not sync with my other devices nor with iCloud.  Even when i create new documents on my mac and save them to iCloud, all seems okay and i can access them from my mac, however they do not show up in the iCloud and i can't access them with my other devices.
    Most recent version of mountain lion updated over a month ago.  New iPad in use for over a month.
    thanks

    The same thing is happening to me, Mail was fine about an hour ago and now is rejecting correct password.  Typical when today I'm waiting some important emails!

  • What is the point of having indented levels in course outlines?

    What is the point of having indented levels in course outlines? It's not possible to add any materials or posts to this. I want to avoid having simply a long list of topics that are difficult to manage. When I create a topic in the outline, I can indent it, but then I can't add any posts to it as it doesn't even show up as a heading in course manager.
    I've been trying to have some kind of logical organisation of materials, but the only thing you seem to be able to do is have a long list of topics.
    Which makes me wonder why the possibility of indenting levels is there at all - it seems to be a completely worthless item.

    I guess the point of the indented lists is to provide the user with some description of the topic’s contents. It's a standard convention in the table of contents of books. It might pay to break your course down into a number of courses if the list of topics is getting too unwieldy.

  • Best practice for java script placement on a BC page?

    Hi guys just a general ask about where the best place for java script is on a BC page.
    I just watched the this very good video on optimization http://bcgurus.com/tutorials/how-to-do-website-performance-optimization and in it it says how you should try and load the scripts at the bottom of the page so that it loads quicker.
    now I want to do this but with it being a BC site i dont know if certain scripts have to be in the head of the doc. For instance the validate script I have? Does anyone know what I can and cant move from the head?
    I was going to do what kiyuco like to practice and add all my scripts to a content holder and then add that to my pages/templates. Will BC like me adding this to the bottom of the page and not the head?
    Thanks
    Dave

    http://forums.adobe.com/docs/DOC-2964

  • Spell check function in my iworks pages does not work, how do I fix this?

    I have a new IMac (intel) and I am struggling learning to use the ipage part of the iwork suite.  There does not appear to be a spell check feature working, since I'm trying to create some new documents, this is a real hassle.  And does anyone know how to do a cut and paste of images from the web.  I'm doing a presentation, have permission to use the photos and can't get it to work!!  sigh  I beginning to think I should have paid the xtra bucks and bought the window suite version, at least I know where they hid the bells and whistles in that one. 
    Thanks any help would be greatly appreciated.
    doccat5

    Greetings,
    For questions on Pages post in the Pages forum: https://discussions.apple.com/community/iwork/pages
    -- You can read about the various spell check features in Pages by typing in the word "spelling" in the Pages help menu.  This entry should get Spell check up and running for you: http://docs.info.apple.com/article.html?path=Pages/4.0/en/sl150c96ab.html
    If there is an image on a website you want to use locally on your computer usually just dragging the image from the web page anywhere on your desktop is enough to copy the image.  You can then drag the image from the desktop anywhere you want.
    Alternatively you can right-click (or hold down the control key and regular click on the image) on the image and then choose "Copy Image.  You can then perform an Edit > Paste into a Pages document for example.
    Hope that helps.

  • The toolbar in the adobe app that allows you to choose the brightness level and the page layout doesn't hide. Because of that, i of course am unable to read the top part of the page...[Android]

    The toolbar in the adobe app that allows you to choose the brightness level and the page layout doesn't hide. Because of that, i of course am unable to read the top part of the page. I cannot find anything in the settings that will make it go away. What do i do? I use Samsung Ace.

    What is the Acrobat DC version and the android version that you are running? You can find the Acrobat version here: How to find the Acrobat DC version installed on your Android device

  • HT204394 how to rename a document created with iwork pages

    how do one rename a document created with iwork pages?

    So the "Rename" command is not supposed to work?  It is a dead link and crashes Pages.
    Where did Pages save the file that I wanted to put into the folder of related documents.  Please bring back "save as" or ask where we want the file saved.  How else can I find it later?

  • Table pop-ups don't work in iWork Pages, any ideas?

    Pop ups in Numbers tables work when transferred to Pages on the Mac but don't appear to work in iWork pages On the iphone and iPad. I produce approximately 20 reports a week in Pages. Not sure if I'm missing something, or this feature just doesn't exist yet. Any help would be greatly appreciated.

    Pop ups in Numbers tables work when transferred to Pages on the Mac but don't appear to work in iWork pages On the iphone and iPad. I produce approximately 20 reports a week in Pages. Not sure if I'm missing something, or this feature just doesn't exist yet. Any help would be greatly appreciated.

Maybe you are looking for