in

Quark Forums

Removing Paste Board Items

Last post 07-17-2009 10:20 PM by prabu. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 07-15-2009 10:53 PM

    • prabu
    • Top 200 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Removing Paste Board Items

    How can i remove paste board items from the Q7.5 Document? Suggest me.
    Regards
    Prabu
  • 07-16-2009 4:51 AM In reply to

    Re: Removing Paste Board Items

    All paste board items have page number 2001 & 2002 given to them as the app only goes to 2000 pages. Here is a script that I made for doing this…

    001    tell application "QuarkXPress"
    002         tell document 1
    003              set Page_Names to name of every page
    004              if Page_Names does not contain "2002" or Page_Names does not contain "2002" then
    005                   set Spread_Count to count of spreads
    006                   repeat with i from 1 to Spread_Count
    007                        tell spread i
    008                             set Generic_Box_List to every generic box
    009                             repeat with j from (count of Generic_Box_List) to 1 by -1
    010                                  set Box_Page to name of page 1 of (item j of Generic_Box_List)
    011                                  if Box_Page = "2002" or Box_Page = "2001" then
    012                                       delete (item j of Generic_Box_List)
    013                                  end if
    014                             end repeat
    015                        end tell
    016                   end repeat
    017              else
    018                   display dialog "Can't do this…"
    019              end if
    020         end tell
    021    end tell 

  • 07-16-2009 6:44 AM In reply to

    • prabu
    • Top 200 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Removing Paste Board Items

    Thank you . My document having 50 to 100 pages only. Now how can i solve this problem?
    Regards
    Prabu
  • 07-16-2009 7:30 AM In reply to

    Re: Removing Paste Board Items

    Did you run the script? I probably did NOT explain very well but all pasteboard items that do NOT enter a page's bounds any where in a document belong to pages 2001 & 2002 it does NOT matter how many pages the document has to be able to run the script. Anything that enters a page anywhere belongs to that page by number. Just test it out for you self.
  • 07-16-2009 8:22 AM In reply to

    Re: Removing Paste Board Items

     WARNING!!!

    Any left bleeding element will appear to be a paste board item.

    The "location" of a box is determined by its Top Left corner

    Michel Lemieux
    Click here --> to visit my PUBLISHING & SCRIPTING FORUM

  • 07-16-2009 10:01 AM In reply to

    Re: Removing Paste Board Items

    Are you sure I can NOT replicate this? This script has nothing to do with the objects TL position? Just name of page.
  • 07-16-2009 10:22 AM In reply to

    Re: Removing Paste Board Items

     Well, I did not test this lately but it used to be that the "Page" property of a box returned the page located at its top left coordinate.

    I just tested this and it seems you are right, at least for pasteboard items. Try it with a box stradling two facing pages and you will see the behaviour I was talking about.

    Michel Lemieux
    Click here --> to visit my PUBLISHING & SCRIPTING FORUM

  • 07-16-2009 10:27 AM In reply to

    Re: Removing Paste Board Items

    I will try that. Never use facing pages never have. possibly why I could not find any issues with the script.
  • 07-17-2009 10:20 PM In reply to

    • prabu
    • Top 200 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Removing Paste Board Items

    Thank you very much larsen. The above script working superb.
    Regards
    Prabu
Page 1 of 1 (9 items)
Powered by Community Server (Commercial Edition), by Telligent Systems