I’m trying to create a new QuarkXpress document from within a RealBasic app using AppleScript. I need to set the name and some parameters like width and height but for some reason (well prolly coz I don’t know anything about applescript :lol: ) it won’t work
my first attempt was
tell application “QuarkXPress Passport”
set myDoc to make new document
tell myDoc
set name to “test”
end tell
end tell
but since name is read/only (it took me 20 mins to figure that out alone…) this didn’t work. So I figured out the only way to do it is save the document.
tell application “QuarkXPress Passport”
set myDoc to make new document --with properties {name:{“test”}}
save myDoc as “test”
end tell
but then I got the error : some parameter wasn’t understood
Can someone tell me how to do this and also tell me how to set the width and height of the document and/or create a text box with a specified width and height.
sorry if this is basic but Applescript is new and very weird to me.
Mucho TIA