Make masterpage items in indesign....

How can I get my automatic design on the master page?
set Vbreedte to (text returned of (display dialog "width?" default answer "")) as string
set Vhoogte to (text returned of (display dialog "Height?" default answer "")) as string
set Vbleed to (text returned of (display dialog "bleed? document?" default answer "3")) as string
tell application "Adobe InDesign CS4"
set the user interaction level of script preferences to never interact
tell view preferences
set horizontal measurement units to millimeters
set vertical measurement units to millimeters
end tell
--make new document
set myDocument to make document with properties {document preferences:{page width:Vbreedte, page height:Vhoogte}}
tell myDocument
-- document preferences adjusted
tell document preferences to set facing pages to false
set zero point to {0, 0}
set properties of guide preferences to {guides shown:false}
tell layout window 1
zoom given fit page
end tell
set ruler origin of view preferences to page origin
--make spot-color
set myColor to make color with properties {name:"spot", color value:{100, 0, 100, 0}, model:spot}
--maak background layer + ill-box
set myLayer1 to make layer with properties {name:"background"}
set myFrame1 to make rectangle
set geometric bounds of myFrame1 to {"-6", "-6", Vhoogte + 6, Vbreedte + 6}
set stroke weight of myFrame1 to 0
set fill color of myFrame1 to "None"
set stroke color of myFrame1 to "None"
tell application "Adobe InDesign CS4" to activate
end tell

Budgie, Thanks for the sugestion. I've tried it like it was discribed but no result.
The tutorial refers to Masterspreads, but I do not work with Spreads but with pages. I can not find the exact syntax to refer or go to the masterpage.
--my script--
set Vbreedte to (text returned of (display dialog "width?" default answer "")) as string
set Vhoogte to (text returned of (display dialog "Height?" default answer "")) as string
--set Vbleed to (text returned of (display dialog "bleed document?" default answer "3")) as string
tell application "Adobe InDesign CS4"
set the user interaction level of script preferences to never interact
--make new document
set myDocument to make document with properties {document preferences:{page width:Vbreedte, page height:Vhoogte}}
tell view preferences
set horizontal measurement units to millimeters
set vertical measurement units to millimeters
tell myDocument
--Get a reference to the first master spread.
set myMasterSpread to master spread 1 of myDocument
--Get a reference to the margin preferences of the first page in the master spread.
tell margin preferences of page 1 of myMasterSpread
end tell
end tell
tell myDocument
-- document preferences adjusted
tell document preferences to set facing pages to false
set zero point to {0, 0}
set properties of guide preferences to {guides shown:false}
tell layout window 1
zoom given fit page
end tell
set ruler origin of view preferences to page origin
--make spot-color
set myColor to make color with properties {name:"spot", color value:{100, 0, 100, 0}, model:spot}
--make background layer + ill-box
set myLayer1 to make layer with properties {name:"background"}
set myFrame1 to make rectangle
set geometric bounds of myFrame1 to {"-6", "-6", Vhoogte + 6, Vbreedte + 6}
set stroke weight of myFrame1 to 0
set fill color of myFrame1 to "None"
set stroke color of myFrame1 to "None"
tell application "Adobe InDesign CS4" to activate
end tell
end tell
end tell
--end script--

Similar Messages

  • Override masterpage items

    What is the correct syntax to override masterpage items in indesign?
    I found the parameter to do so : unlink, but can not find the correct syntax.
    This is what I came up with so far, but it doesn't override the masterpage items.
    tell application "Adobe InDesign CS3"
    set the user interaction level of script preferences to never interact
    tell document 1
    unlink items of masterpages
    end tell
    end tell

    Hello
    I don't have CS3 and I only guess here.
    If I understand what you're after correctly, you might try something like this (for one page, e.g., page 1):
    tell application "Adobe InDesign CS3"
    tell document 1
    set applied master of page 1 to nothing
    end tell
    end tell
    Or this (for every page):
    tell application "Adobe InDesign CS3"
    tell document 1
    repeat with i from 1 to (count pages)
    set applied master of page i to nothing
    end repeat
    end tell
    end tell
    cf.
    http://www.adobe.com/products/indesign/scripting/index.html
    InDesignCS3ScriptingGuideAS.pdf
    pp.25-27
    Documents > Basic Page Layout > Setting up Master Spreads
    Good luck,
    H

  • How to make an index in InDesign CC 2014.1 using a topics list?

    Hi all,
    I have read the long help document on how to make an index in InDesign CC 2014.1 using a topics list, and still can't work out what to do.
    I have done a 548 page book, using a document for each chapter, and a book file to put them all together in the right order.
    I now need to make an index at the back, as the author has many quotes throughout the book at the start of each chapter and section.
    I have a list of those people quoted and want to upload this list and get the index feature in InDesign to find all instances of the name occurring in the entire book.
    After reading the help document I still cannot work out how to do this.
    My questions are:
    1. Do you have to use an InDesign document as a source for the list of topics? If so, should the document be added to the book file or outside it?
    It seems a bit recursive to have the list of topics in an ID document that is in the book file.
    2. Once you have uploaded the topics into the Index feature, how do you get it to look for all instances of that 'topic' througout the entire book? I can't figure that out from the help documents. What do I select? Do I do it from the Index panel? Do I highlight the text in the source document? Not sure how to do this...
    3. I need the names to list surname first of the quoted authors in the index. This command seems to be different between various editions of ID. For ID CC 2014.1 is it ctrl+alt+shift+]
    4. To make the surname show first, what do I highlight? The topic? and then do ctrl+alt+shift+] and select find all as well? Or do I have to just go through the text and manually do this and ditch the idea of uploading topics first?
    I am confused as you can see and any help with this is appreciated.

    Sorry 007, I really thought you were posting a trick question as on the OCP tests.
    Anyway, as Justin mentioned, if you have an index on ename, it may be used when doing a comparison predicate statement with the ename value.
    What it depends on are several other things: stats, how many rows in the table, use of an index hint, etc.
    Rather than questioning the group on this, why not just turn on autotrace and run the query for the different scenarios.
    The output will show you if it used the index, number of rows returned, blocks read, etc.
    SQL> create table emp (ename  varchar2(40));
    Table created.
    SQL> insert into emp select username from sys.dba_users;
    25 rows created.
    SQL> commit;
    Commit complete.
    SQL> set autotrace on
    SQL> select * from emp where ename != 'SYSTEM';
    Execution Plan
    Plan hash value: 2951343571
    | Id  | Operation        | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |           |    24 |   528 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX FULL SCAN | ENAME_IDX |    24 |   528 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("ENAME"<>'SYSTEM')As you can see, the above used an index, even though there were only 25 rows in the table.
    You can test each of your scenarios, one by one, including use of a hint.

  • How to Add a page Item in Indesign Library Panel

    Hi All,
    I am trying to add page Item in Indesign Library Panel using
    ILibraryCmdUtils::ProcessLibraryAddItemCmd()
    But it shows the message of Heap corrupt while processing the commmand.
    Can any one help me out with some code snippet ?
    Pete. M. Mitchel

    Hi,
    Iwas also suffering fro the same problem.
    Better to use "ILibrarySuite::DoAddToLibrary()" method.
    Hope it will help you.

  • Make a item flexfield mandatory at running time

    Hi everybody,
    I am going to ask something that maybe is not very normal, but, my client really want it.
    I have a descriptive flexfield with several itmes. We want to make one ot these items mandatory at running time based on one condition but in the flexfield definition this item is not mandatory.
    We hava tried by personalization but is not possible.
    Thank you very much,.

    Duplicate post, possible solution on this thread:
    Make a item flexfield mandatory at running time
    Regards,
    Gareth

  • Ordering of Page Items in Indesign

    Hi,
    I need to find the ordering (send to Back / send Backwards / Bring to Front / Bring Forward) of page items in Indesign using Apple script.
    I couldn't find any solution . In which preferences i need to get this?  Any Ideas about this?
    Thanks,
    Jacintha

    The "page items" collection gives you the objects in their stacking 
    order, so the index of the item in the collection will be the 
    placement in the stacking order.
    Harbs

  • Make detail items in master/detail form read only

    I want to make detail items in master/detail form read only for certain conditions (master STATUS = Closed). I see how to do this on the master record items but not on detail items.

    Take a look at this thread: Re: Conditionally make a tabular form uneditable
    You will need to modify the code, but it should help since a master detail is just a standard form with a tabular form attached to it..
    Thank you,
    Tony Miller
    Webster, TX
    Time flies like the wind, but fruit flies like bananas.

  • How to make new item show in ASCP Plan workbench.

    Item ATT.BVL3AHY is a new item without any demand. At item master, it is set as Planned so it is collected by ASCP. The item can be found in msc.msc_system_items with Plan_id -1. Plan id -1 corresponds to Collection. Planner needs to manuallty add planned order for this item at ASCP workbench of plan WIRELINE (PLAN_ID 3002) as attached but as the item cannot be found in WIRELINE plan, planner cannot add it. Please let me know how to make this item show in WIRELINE Plan workbench.

    Run this query:
    select mrp_planning_code from msc_system_items where item_name like '<Item_Name>' and organization_id = <Org id> and plan_id = -1
    If this returns 7 you dont need to run any collections.
    If this returns other than 7 then,
    create a simulation set under Item Attributes Mass Maintenance and then update the attribute MRP Planning method for this item to MRP/MPP Planning. Assign Simulation set to plan name and then rerun the plan. It should work.
    If you are still facing an issue, then raise an SR with Oracle.

  • Possible to make an item editable for certain users and read only for other

    Is it possible to make an item editable for certain users and read only for others?
    I've been able to accomplish this by taken the select statement that I used to define an authorization scheme, placing it in the Read Only condition of the item. However, I would like to simply reference the authorization scheme to utilize caching, and to help keep things cleaner for future maintenance.
    Is it possible to reference an authorization scheme in an item condition similar to the way another item can be referenced by preceding it with a colon (i.e. :P1_First_Name)?

    Thank you, your suggestion worked.
    It would be nice on a future release of APEX if a drop-down box existed under the Ready Only section that would allow an existing Authorization Scheme to be selected or negated when applying the Read Only attribute to a form item.

  • How to make an item be remembered once the page is changed?

    Hi,
    For my school project I am trying to create a drag and drop product on Adobe Flash CS4 using Action Script 3.0.
    I have three keyframes:
    - The first one has tops to be dragged and dropped onto the model
    -The second one has skirts/trousers to be dragged and dropped onto the model
    -The third has shoes to be dragged and dropped onto the model
    But once the top has been dragged and droped and the next button is selected displaying the skirts/trousers, the top which has been dragged and dropped onto the model is no longer displayed.
    Does anyone know what coding I need to add to get each item of clothing to be remembered once it has been dragged and dropped onto the model, so it is visible on the following pages?
    Many Thanks

    Thank you very much for your response.
    I'm so sorry, this is probably a really silly question but how can I make the items of clothing hidden on the layers where I don't want them seen?
    I am also having real problems with my 'next' button in the second key frame.
    I am recieving two errors for this button and have tried everything that I can think of, so was wondering if you were able to have a look at my coding for this button and tell me if it is correct bearing in mind that the button is on the second keyframe but should take you to the third.
    The first error I am recieving is:
    'TypeError: Error #1010: A term is undefined and has no properties'
    for the line
    'femaleDragAndDropPage.femaleMenu.nextButtonBottoms.addEventListener(MouseEvent.CLICK, onNextButtonBottomsClick);'
    -The nextButtonBottoms is the button leading from the second to the third key frame-
    The second error I have is:
    'TypeError: Error #1034: Type Coercion failed: cannot convert NextButton@246159c1 to PinkNextButton.
    at flash.display::MovieClip/gotoAndStop()
    at Main/onNextButton3Click()'
    for the line
    'femaleDragAndDropPage.femaleMenu.gotoAndStop(2);'
    -This line is for my next button on the first keyframe which leads to the second one and only appears when it is selected-
    On the first keyframe, there is also a next button (with a different instance name) which leads to the second keyframe which works fine so I used the same coding for the next button leading from the second to third keyframe but changed the instance name. This is where I then recieved the errors so cannot view the rest of my pages which come after this one.
    Thank ypu so much for your help!

  • How can I make both Items recurring in a promotional modifier

    I need to create a modifier for the scenario such as:
    If Item A is bought 10 pcs
    and
    Item B is bought 5 pcs
    then
    promotional free Item C should be given 2 pcs.
    Now both Item A and Item B needs to be recurring because only if Item A becomes 20 pcs and Item B becomes 10 pcs, then get Item C becomes 4 pcs.
    Thanks,
    Anindya.

    Pl do not post duplicate threads - How can I make both Items recurring in a promotional modifier
    Srini

  • How to make the item in different color in a choice?

    if I have a choice and different items, how to make the item in different color?
    like:
    Choice ColorChooser = new Choice();
    ColorChooser.add("100");
    ColorChooser.add("200");
    ColorChooser.add("300");
    I want to show green, red and blue color for item 100, 200 and 300.
    I do not know how to do that, anyone can help?
    Thanks

    Please don't double (and now your up to triple) post. I realize that to you, your problem is the most important thing in the world and it would be nice if you could get several people working on it at the same time. However, the people answering your question do not get paid for it. They are doing it because they want to help someone. Posting several times only shows that you have no respect for them and are only concerned with your problem.

  • Can I make a project in InDesign CS6 for Mac but then use it on a PC that is running CSCloud?

    Can I make a project in InDesign CS6 for Mac but then use it on a PC that is running CSCloud?

    Yes.
    Mylenium

  • How i can make text item as read only

    hi
    im trying to make a text item as read only so no one can write on it i tried to make it as display item but i neeed also to call lov when i double click on the text item in display item case u can not double click
    so please how i can make text item as read only
    and another thing
    how i can change an item properties by code i mean when i click in one button the text item become visibile how i can change its property by code
    thank u

    You can set a text item's property to be non-updateable
    You can change this programmatically with set_item_property()
    :)

  • Is there any way to make work item invisible in the SAP inbox?

    Is there any way to make work item invisible in the SAP inbox?
    If yes , How?
    How can we delete a work item without using SAPLSINWP program?Is it possible???

    Thanks suresh, But I was a looking for a solution where as soon as the work item is created should be made invisible in the SAP inbox, is there any way for this or any other alternative?

Maybe you are looking for