πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
8 messages
8 total messages Started by Justham_Hugh Fri, 13 Feb 2009 02:57
Resize Page Possible ?
#1249
Author: Justham_Hugh
Date: Fri, 13 Feb 2009 02:57
11 lines
891 bytes
Hi

Is it possible to resize an existing page in InDesign through AppleScript (or JavaScript)? I cannot see anything in the dictionary. page bounds are read only.

I don't really want to create a new document and copy all the elements or to have to try and use GUI scripting.

I am using CS3 for testing but the final script will run on CS4.

Thanks

Hugh
Re: Resize Page Possible ?
#1254
Author: Dave_Saunders
Date: Fri, 13 Feb 2009 03:26
6 lines
908 bytes
Page bounds are like reading the rulers on the spreads in the user interface. You don't change the page size using the rulers. Rather, you have to go to Document Setup and change the width and height. Hence:

myDoc.documentPreferences.pageHeight = Your value here
myDoc.documentPreferences.pageWidth = Your other value here

Dave
Re: Resize Page Possible ?
#1284
Author: jongware
Date: Fri, 13 Feb 2009 20:14
1 lines
760 bytes
I would add that Dave's solution does not change a page size -- it changes the page size (for the Document). Changing single page sizes is not possible, for that you need a commercial plugin.
Re: Resize Page Possible ?
#1226
Author: Justham_Hugh
Date: Mon, 16 Feb 2009 06:37
5 lines
800 bytes
Thanks for this.

All the documents are single page. It seems that Javascript works fine but Applescript equivalent doesn't. Hopefully it will be possible to call the jsx script with parameters from within Applescript

Hugh
Re: Resize Page Possible ?
#1227
Author: Shane_Stanley
Date: Mon, 16 Feb 2009 06:50
9 lines
1490 bytes
On 16/2/09 5:37 PM, "Justham Hugh" <member@adobeforums.com> wrote:

> It seems that Javascript works fine but Applescript equivalent doesn't.

It works fine here -- what code are you using?

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Re: Resize Page Possible ?
#1105
Author: Justham_Hugh
Date: Tue, 17 Feb 2009 02:11
13 lines
877 bytes
using

tell application "Adobe InDesign CS3"	
	tell active document
		tell document properties
			set page height to 180
			set page height to 120
		end tell
	end tell

end tell

returns "Adobe InDesign CS3 got an error: CanοΏ½t set page height of document {b ....."
Re: Resize Page Possible ?
#1106
Author: Shane_Stanley
Date: Tue, 17 Feb 2009 02:24
9 lines
1462 bytes
On 17/2/09 1:11 PM, "Justham Hugh" <member@adobeforums.com> wrote:

> tell document properties

That should be "document preferences", not "document properties".

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Re: Resize Page Possible ?
#1107
Author: Justham_Hugh
Date: Tue, 17 Feb 2009 02:32
1 lines
648 bytes
arghhhh! thank you - too long looking at it!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads