//Hello! This is a nice and simple script that just resizes a selected object to take up the full size of the current page, not counting bleed. If it's an image, it'll only resize the container and not the image itself. Sorry. //Useful for: Setting out ebook text frames, and that's about it. var selectedObject = app.selection[0]; var document = app.activeDocument.documentPreferences; var docWidth = document.pageWidth; var docHeight = document.pageHeight; app.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN; app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN; app.activeDocument.zeroPoint = [0,0]; var page = app.activeWindow.activePage; var startPosX = 0; var endPosX = docWidth; var startPosY = 0; var endPosY = docHeight; selectedObject.geometricBounds = [startPosY, startPosX, endPosY, endPosX];