Re: applescript-users digest, Vol 2 #244 - 5 msgs
Re: applescript-users digest, Vol 2 #244 - 5 msgs
- Subject: Re: applescript-users digest, Vol 2 #244 - 5 msgs
- From: Super Julio <email@hidden>
- Date: Fri, 19 Jan 2001 10:34:40 +0100
Super Julio dixit:
>
QuarkXPress scripting question
Mattias:
This should be useful:
tell app "QuarkXPress"
activate
open (file) use doc prefs yes remap fonts no do auto picture import no
tell document 1
tell print setup
set printer type to "LaserWriter 16/600 PS"
set adjust horizontal tile to false
end tell
print copies 1
close document 1 saving no
end tell
If it doesn't, try with keyboard emulators. Prefab Player:
tell print setup
...
end tell
tell app "Prefab Player"
disable user input
do menu menu "Print" of menu "File"
repeat 2 times
click button "Save" -- "print dialog" + "save dialog"
end repeat
try
click button "OK" -- broken image links
on error
end try
enable user input
end tell
Or Sigma's additions
tell print setup
...
end tell
type text "p" holding down command
type text (ASCII character 3) -- enter (now we are talking about ASCII code)
type text (ASCII character 3)
try
type text (ASCII character 3)
on error
end try
(Sdndi's additions -> TypeText " " with command/option...)