Move Pages in Indesign using Applescript

How to set page ranges for "move pages" command in apple script.

Fromthe pages panel flyout menu make sure Allow Document Pages to Shuffle is checked, and also Allow Selected Spreads to Shuffle for any spreads that show the numbers in brackets if you want them to be able to rearrange as well (in this case you have two pages numbered 2, and that's a problem since by default ID wants to arrange even numbered pages tothe left of the spine and odds to the right).

Similar Messages

  • How to set xml tag to nothing in indesign using applescript?

    Hi guys,
    I need set xml tag to nothing(for tables)  in indesign using applescript.
    Please help me.

    Hi,
    tell application "Adobe InDesign CC 2014"
        tell active document
            if (count of story) > 0 then
                tell story 1
                    if (count of tables) > 0 then
                        tell table 1
                            set tag_name to associated XML element ----------------> i can't get xml  tag, i am receiving the  xml tag is nothing.
                            if (tag_name = nothing) then
                                display dialog ("This table has no tag")
                            else
                                set markup_tag to markup tag of tag_name
                                set n to name of markup_tag
                                display dialog ("Tag name is " & n)
                            end if
                        end tell
                    end if
                end tell
            end if
        end tell
    end tell
    I can't get xml tag for table,  i am received nothing

  • How to enable the script label of a text frames in indesign using applescript

    hi all,
    am using Indesign CS2 with applescript..
    Using script I have to open a template in indesign and flow the word document into it...
    I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
    I need the script labels to be enabled...
    can anybody help me
    thanks in advance

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • Pages 09 Saving using applescript automatically makes a package

    I can manually save a document as a flat file, but when I run my applescript, it saves as a package, even though "Save new documents as packages" in the Preferences is unchecked.
    Is this the same issue as this thread? http://discussions.apple.com/thread.jspa?threadID=2141532&start=15&tstart=0

    OK, I am using Pages 09
    Here is a sample letter I want to save:
    Marcus Welby, M.D.
    666 Hemingway
    Kansas City, KS 66111
    Re: Joe Jones
    5/3/80
    Dear Dr. Welby:
    I appreciated the opportunity to see your patient in the office today
    Thank you very much for letting me help with the patient’s care.
    Sincerely,
    Dr. Doolittle
    Here is a sample from the script I run to save, print, organize my dictation for the day:
    --sets the date as a string yymmdd
    set theyear to (year of (current date)) - 2000
    if theyear < 10 then
    set theyear to "0" & theyear
    end if
    set themonth to (month of (current date) as integer)
    if themonth < 10 then
    set themonth to "0" & themonth
    end if
    set theday to (day of (current date) as integer)
    if theday < 10 then
    set theday to "0" & theday
    end if
    set datefolder to theyear & themonth & theday
    set datefolder to datefolder as string
    --gets the patient's name from the document (all my documents have "Re: patient's name" at the top of the page
    tell application "Pages"
    set newdoc to front document
    set AppleScript's text item delimiters to "Re: "
    set ptdoctext to text of newdoc as string
    set ptname to 1st paragraph of 2nd text item of ptdoctext
    set AppleScript's text item delimiters to ""
    --save the document in datefolder under ptname
    set filen to ":Users:[home folder]:Documents:Dictation:" & datefolder & ":" & ptname & ".pages" as string
    save newdoc in filen
    end tell
    If I run this script on the document, it saves as a package
    If I save the document manually, it saves as a flat file (because the preference to save as a package is not checked)
    It's not a big deal to save as a package, just takes up more disk space.
    Please try running the script on your system with Enregistrer les nouveax documents comme pacquets not checked. I bet it still saves as a package.
    Merci

  • Find character of table in indesign using applescript

    Hi ,
    I have one story and it contains 5 tables.
    I need index of character  for table 4 in story 1. Please help me.
    my code is shown in below. this is right or not please check .
    tell application "Adobe InDesign CS6"
        tell active document
            set indx to index of character 1 of table 4 of story 1
        end tell
    end tell
    if any wrong in my coding please tell me.

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • Trying to make new text item in Pages 5.2 using Applescript

    I am trying to upgrade(?) from Pages 3 to Pages 5 and have a script that used to make a new document with text boxes. Previous line was:
      make text box with properties {object text:receiptDD, vertical position:6.9, horizontal position:2.7, height:0.5, width:1, extra space:0}
    Have the line changed to:
                                  make new text item with properties {object text:receiptDD, position:{6.9, 2.7}, height:0.5, width:1}
    but fails with error "Pages got an error: Don't know how to create TMAScriptInfoProxy" number -2763
    Not sure where to go from here,  searched various forums but cannot find a solution, any guidance gratefully received.

    Does your Photoshop menu bar have a 3D item? If not make sure you machine meets CC requirements and thatou GPU is enabled in you Photoshop preferences performance section

  • Can't Move pages in InDesign CS6

    I have a 24 page workbook that I had to renumber the pages to start with page 2. After doing this, my pages aren't showing up next to each other. And I'm unable to move them. I've included a screen shot for reference.
    Any advice?

    Fromthe pages panel flyout menu make sure Allow Document Pages to Shuffle is checked, and also Allow Selected Spreads to Shuffle for any spreads that show the numbers in brackets if you want them to be able to rearrange as well (in this case you have two pages numbered 2, and that's a problem since by default ID wants to arrange even numbered pages tothe left of the spine and odds to the right).

  • Movie frame in Indesign

    I want to delete movie frame from Indesign using Indesign Javascript. It is giving problem in exporting the jpg files so i want to delete the movie frames.
    Can anyone help me on this please....

    If you're using Director MX2004 or 11 then _movie.frame should work fine - it always does for me anyway. the frame is the verbose syntax equivalent.
    Do you generally use Lingo's dot-syntax or its verbose syntax? If the latter then I'm wondering whether the problem is occurring because the dot-syntax _movie.frame is causing an ambiguity within your verbose-syntax code.
    Also, the problem may be that you're using the put command - this outputs a value to the message window, but doesn't make that value available to the rest of your handler or script.
    The following should work just fine from a behaviour, then:
    on printFrame me
         printFrom(_movie.frame, _movie.frame)
    end
    (look-up printFrom() in the scripting dictionary to find out more about it)

  • Setting options in "Printer" section using Applescript InDesign CS

    How can i set define supplementary options found in the "Printer" section of the InDesign dialog box in a print preset using Applescript?
    I would like my script to set duplex option with the proper binding, according to the page orientation.
    When creating print presets manually, these extra options are stored in the print preset, but I can't find how to access them thru Applescript.
    Thanks,
    Peter

    Shane,
    Thanks for your reply, but it is not yet clear to me.
    I know you can set some print properties in the Apple Print event, such as copies, collating, target printer ...but how can I adress the printer-specific options, such as duplex printing? Could you give me a sample line of code?
    And next step, how can I include this "Apple -print" setting in an InDesign Print preset using Applescript? I suppose I have to set the apple printer prefs before creating the InDesign preset. Right?
    Thanks in advance,
    Peter

  • Indesign Move Pages

    When using the Move Pages to move from Document A to B and before closing  B are the images still linked to the Document A folder or do they assume the linkage to the same graphic name in the Document B folder.

    You could try resetting preferences: Troubleshooting 101: Replace, or "trash" your InDesign preferences

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • Can a Photo page be used as thumbnail links to movie pages?

    I've made a photo page with say 20 or so photo thumbnails. I have made separate movie pages for each movie. Dragged each movie page link to the related picture on the photo page and sized the button to be the same size as the thumbnail image. Checked that the button is linking to the correct movie page.
    In iWeb, when I "make links active", everything works properly. But once it's uploaded, the thumbnails/buttons, when clicked, open up a new browser window with just the jpg thumbnail.
    Any ideas to get this to work? Or do I have to start over, and lay it all out maually?
    G5 DP 1.8 & PowerBook G4 15"   Mac OS X (10.4.6)  

    I think the problem may be related to the Photo page template. When you click on the thumbnail, I think there is some built-in functionality to open a new slideshow window or something.
    Instead of using the Photo gallery template, try using a plain page...one of the templates with as few elements as possible...maybe the movie template. Then manually add your movie thumbnails and size them to your liking. then add the hyperlinks to your movie pages to each thumbnail. I think you might find that this works better.
    ==> www.DirtDoog.com <==</a>    
    Place A Virtual Pin On Putt-Putt's GuestMap!

  • I'm on Firefox 3.6.8 running on a 2008 IMAC with OS 10.5.8 yet every click to move pages, from start-up, to return to Home Page takes minutes, not seconds! If I use Safari that's greatly faster on this same set-up. How do I get Firefox to be as fast ?

    I'm on Firefox 3.6.8 running on a 2008 IMAC with OS 10.5.8 yet every click to move pages, from start-up, to return to Home Page takes minutes, not seconds! If I use Safari that's greatly faster on this same set-up. How do I get Firefox to be as fast ?
    == Some time back, beggining with Firefox updates, at least three, or more updates ago.

    Thanks for the tip. I took the following steps:
    1) Backed up the existing profile (presumably corrupted somewhere);
    2) Deleted the existing profile;
    3) Moved the existing Firefox to the Trash and downloaded a fresh copy;
    4) Started Firefox (thus allowing it to create its default profile)
    5) Copied the following files from the backup copy of the previous profile: places.sqlite, key3.db, signons.sqlite, permissions.sqlite, persdict.dat, cert8.db ---
    I'm posting this from a Firefox browser, so I guess I'm OK now.

  • How can I use the scroll wheel to move page by page

    I have Adobe Acrobat 8 and I would like to be able to use the scroll wheel in my mouse to move page by page instead of the page icons in the tool bar.  I recently had my computer updated from Windows XP to Windows 7 and I used to be able to do that in XP.  I do a lot of moving around in documents and it's easier to move page by page if I don't have to be moving the cursor all the time.
    Any help would be greatly appreciated as I don't want to everything else (like Office 2007 Word) to move whole pages with the scroll wheel, just Acrobat.

    Make sure that View - Page Display - Single Page View is selected in
    Acrobat.

  • How to set unequal columns using master pages in InDesign CS3?

    How to set unequal columns using master pages in InDesign CS3?

    I don't have CS3 anymore but I don't think this has substantially changed in the last few versions of InDesign.
    Choose View > Grids & Guides > uncheck Lock Column Guides. Then drag the column guides to the position you want.

Maybe you are looking for

  • Start Routine: Syntax error in routine 2LIS_03_BF Transformations

    Hi experts, I enhanced the 2lis_03_bf data source, and replicated the data source in bw system, i have mapped the transformations and when i try to activate the transformations it is giving the below error. Start Routine: Syntax error in routine when

  • Positioning Multiple pdfs on array of 6 large screens when each pdf is restarted

    I am setting up an array of 6x 42" screens connected to a single windows computer using 2 x nVidia NVS 510 4 port graphics cards. nView ver 141.00 is installed. we are using Adobe reader X Our challenge is how to run multiple pdf displays each starti

  • Cannot select Get Info for multiple tracks

    I  just updated to Lion 10.7.3 and iTunes 10.6.1 and imported my Leopard iTunes Library. I can Get Info on individual tracks but when I shift select or command select multiple tracks the iTunes window turns gray and nothing can be selected. iTunes ju

  • 7.01 trial nstall still running after 4 Hrs ???? 2GB RAM XP machine

    Hi all The latest trial netweaver 7.01 seems to take AGES and AGES to install. I Am loading this up on to a 2GB  Windows XP Pro machine After 4 hrs I'm STILL in Phase 18 of 27  Import ABAP Mesage underneath -- Import Monitor  jobs running 3 , waiting

  • Can't Login to FaceTime for Mac

    On my MBP I click on the "sign in" button and it flips back to the same login screen on FaceTime and asks again to sign in.  It will not sign in at all.  It's been like this for over a month now but used to work just fine (using the exact same login)