Quark Script Problem

Hi All

I am using Quark 6.5. I am developing a script and in the below line I am getting error. Please have a look.


make new document at beginning with properties {automatic text box:false, bottom margin:"3p", facing pages:true, horizontal measure:points, inside margin:"3p", outside margin:"3p", page height:"99p", page width:"70p", top margin:"3p", vertical measure:points, view scale:"100%"}

Thanks
MacRajee

Hi All

In this code “facing pages:true” is showing the error. I have removed it and run it works fine.

There is an another problem I am facing:


tell application "QuarkXPress"
	activate
	set templateName to make new document at beginning with properties {automatic text box:false, bottom margin:"3p", horizontal measure:points, inside margin:"3p", outside margin:"3p", page height:"99p", page width:"70p", top margin:"3p", vertical measure:points, view scale:"100%"}
	set myDoc to the front document
	tell myDoc
		set horizontal measure to points
		set vertical measure to points
	end tell
	set pageInfo to (properties of page 1 of spread 1 of document 1) as list
	set topMargin to item 14 of pageInfo as point units as real
	set pageLeftMargin to item 9 of pageInfo as point units as real
	set bottomMargin to item 5 of pageInfo as point units as real
	set rightMargin to item 13 of pageInfo as point units as real
end tell

I am getting problem in the below line:


	set pageLeftMargin to item 9 of pageInfo as point units as real

Thanks

Hi All

Below are the error message:

Thanks

Hi All

I sloved that error, that was my fault.

I am getting error for the below syntax.


		tell picture box 1
			set colorbarImage to barPath & "bar.eps"
			set image 1 to colorbarImage
			set colorbarBounds to bounds of image 1
			set colorbarWidth to (item 3 of colorbarBounds) - (item 1 of colorbarBounds)
			set colorbarHeight to (item 4 of colorbarBounds) - (item 2 of colorbarBounds)
		end tell


			set image 1 to colorbarImage

Error is:

Thanks

I believe you need to tell Quark an alias, not a path string, to place an image. Try adding “as alias” to the set colorbarImage line. Also, make sure the vaiable barPath ends with a “:”.

tell picture box 1
           set colorbarImage to (barPath & "bar.eps") as alias
           set image 1 to colorbarImage
           set colorbarBounds to bounds of image 1
           set colorbarWidth to (item 3 of colorbarBounds) - (item 1 of colorbarBounds)
           set colorbarHeight to (item 4 of colorbarBounds) - (item 2 of colorbarBounds)
       end tell

Model: G5 Tower (not Intel) - Script Editor ver 2.1.1
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Hi MacRajeev

Matt-Boy is saying right.

Thanks